28/10/16 23:51
Thejuster
Salve a tutti ho un problema relativo alle liste.
pur vedendo alcuni esempi dalla rete non riesco a capire il malfunzionamento di essa.
ho una struttura
Normalmente dichiarare una lista dovrebbe essere così
Ma ho un errore proprio li nella dichiarazione
error: 'list' was not declared in this scope
error: expected primary-expression before '>' token
error: 'linea' was not declared in this scope
se provo invece a dichiarare la lista fuori dalla funzione
ho questo errore
error: 'list' does not name a type
perché ricevo questo errore?
pur vedendo alcuni esempi dalla rete non riesco a capire il malfunzionamento di essa.
ho una struttura
typedef struct Rows { string name; bool primaryKey; Type type; int lenght; string defined; MyLDC::Attributes attrib; bool Nullable; Indices index; bool AutoIncrement; string comment; }; Rows rw; Rows* row = &rw;
Normalmente dichiarare una lista dovrebbe essere così
void MyLDC::CreateTable(string tablename,string primaryKey) { list<Rows> linea; }
Ma ho un errore proprio li nella dichiarazione
error: 'list' was not declared in this scope
error: expected primary-expression before '>' token
error: 'linea' was not declared in this scope
se provo invece a dichiarare la lista fuori dalla funzione
ho questo errore
error: 'list' does not name a type
perché ricevo questo errore?
mire.forumfree.it/ - Mire Engine
C# UI Designer
C# UI Designer