what should i do if i want to give a name like Luiz to the variable endereco in the text above
Code:struct database {
int endereco;
}
Printable View
what should i do if i want to give a name like Luiz to the variable endereco in the text above
Code:struct database {
int endereco;
}
what "text above" ? Maybe this is what you want? :confused:
Code:struct database {
int Luiz;
}
Make endereco a string variable. Then create a new instance of the database struct. Then assign "Luiz" to instancevariablename.endereco.
Code:struct database {
int endereco;
}
You can't. endereco is an int type. int types can only be assigned integers, e.g.Quote:
what should i do if i want to give a name like Luiz to the variable endereco in the text above
....-1, 0, 1, 2, 3....
So, follow Daved's instructions.