I need to define variables for a c++/OpenGl program. Im programming using bloodshed (www.bloodshed.net) and i need to define a few variables. Do i just use the '#define' or is there something more speific, i used #ifndef, but it requires me to terminate the function or whatever.. any help is appreciated.
thanks
dan
How do i define variables in c++?
int main()
{
int age, feet, inches, pounds;
string hair, eye;
}
int means integer, string is something like "brown", "mary had a little lamb", etc
you can also do char to define a letter varible, or char can be used as a string by declaring a character array.
Reply:I don't know?
edible flowers
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment