Questions tagged as 'iteradores'

1
answer

Difference between iterable objects, iterator and containers in Python 3

I have seen that in Python 3 there are iterable objects, objects iterator and there are also containers . My questions are: What is the difference? Can everyone walk in a loop? In all of them can its elements be accessed through indexes?...
asked by 08.07.2017 / 02:40
1
answer

error when compiling binding to reference of type discards qualifiers

when executing a program in which among other functions, I minimize a finite deterministic automaton (DFA, for more information, link ), I use the set and map containers of the C ++ stl, but it gives me errors that I do not understand in that f...
asked by 29.10.2017 / 22:05
1
answer

Junk when I use a while loop in C ++ with iterators

I want to insert a number in the second position using an iterator, then I present it on the screen, but I get trash. #include <iostream> #include <vector> using namespace std; int main() { vector<int> v(4); for(int...
asked by 29.01.2017 / 15:36
1
answer

behavior of reverse_iterator with const char []

Having the following objects: const char a[]{"abcdefghij"}; // Arreglo de caracteres (longitud 11) const std::string s{"abcdefghij"}; // basic_string<char> estandar I expected these loops to behave the same: // 1) Muestra NADA,...
asked by 11.11.2016 / 11:33
1
answer

Doubt with lists

I have a question about why this error occurs in the code described below: #include <iostream> #include <list> using namespace std; class List { list<int> m_list; list<int>::iterator it; public: void load...
asked by 22.11.2018 / 01:07
1
answer

c ++ error 'const class std :: vectorNode' has no member named 'find';

I'm using a structure of set that contains a vector , which in turn contains an object of a class called Nodo , when I try to use the function find() of the vector of the stl me There is an error, consider that i...
asked by 13.11.2018 / 01:43
1
answer

c ++ error passing 'const std :: vectorNode' as 'this' argument discards qualifiers

I am implementing a minimal path search algorithm, and I get several errors that I do not understand: set< vector<Nodo>>&::iterator it; for(it=nodos_visitados.begin(); it!=nodos_visitados.end();it++){ for(int i=(*it);i&l...
asked by 13.11.2018 / 20:48
1
answer

error when compiling binding to reference of type discards qualifiers

when executing a program in which among other functions, I minimize a finite deterministic automaton (DFA, for more information, link ), I use the set and map containers of the C ++ stl, but it gives me errors that I do not understand in that f...
asked by 29.10.2017 / 22:05