Need help in Getting Data in For Loop
|
|||
|
Rank: ? (2)
Member #: 29466 |
Hi.
I'm writing a program to show the calender of a month, which the date is enter by the user. I have to ask the user to the 2 dates, and show them 2 calender, by using for-loop. Then, i have to do a comparison between these 2 dates, to see whether which one is earlier. May i noe how to get the data (day,month,year) from a for loop? Waiting for the reply.. |
||
|
|||
|
|||
|
Rank: ? (767)
Member #: 11085 |
Getting data from within a for loop is the same as retrieving data outside of a for loop.
- relpats_eht
|
||
|
|||
|
|||
|
Rank: ? (2)
Member #: 29466 |
means?
I not very understand about ur statement... can u give me an exmaple? thx.. ^^ |
||
|
|||
|
|||
|
Rank: ? (767)
Member #: 11085 |
What I mean is that all you have to do is write the code to get the date and then put for(int i=0; i<2; i++){ above it and } below it. Of course, you may want to use an array to do it, lest you overwrite what was entered the first time.
- relpats_eht
|
||
|
Please login or register to post a reply.