1

answer

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

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

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

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

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

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

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

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