View Single Post
  #2 (permalink)  
Old 08-02-2007, 04:30 PM
shanePreater shanePreater is offline
Member
 
Join Date: Jul 2007
Location: England, Bath
Posts: 47
shanePreater is on a distinguished road
yep the line where you have:
Code:
int age;
This is simply showing the compiler that you will using a variable called 'age' and it is of type int but not what the actual age is you need to modify this line to something like:
Code:
int age = 29;
This decalres it (as above) and then the = 29 bit sets age to be 29, obviously you can change this to any integer value you like.

Hope this helps
__________________
Shane Preater -
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote