|
-
February 15th, 2010, 10:26 AM
#1
length of integer OR position of integer
for example:
how do you know the length of x? and when you print it, it print as 5. 0 is disregard.
or how do you know the position of 0 in x? unlike string, how do you traverse it?
this case is a variable, so lets say I have an array for example:
Code:
car the_car[20];
the_car[i].min
Where car is a struct data type, the_car[20] is an array, and min is a member of a struct where is a int variable example (int min);
so how do I know the length of min, if min for example is
02, how do I know the position of 2 or put it another way how I do I know that there is a 0 before 2?
thanks!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|