Does anyone know where I can pick up a few simple source codes for C++. Nothing in specific just wondering if there are any sites out there like www.vb.com for C++.
Well That did it. Thanks everybody. The following is the completed code and I would like to invite anyone or anybody to find an error or anything with it. If there are any bugs with it please let me know. I would also like to thank EVERYONE who helped me. Now after three days of working...
I tried that before and it didn't work. I tried it again as you can see and it still gives me an error. The following is where I put it in and the error I got. ____________________________________
// Declare Variables
int run = 5;
int year ;
// Perform Loop
srand ();
while (run >...
I tried that before and it didn't work. I tried it again as you can see and it still gives me an error. The following is where I put it in and the error I got. ____________________________________
// Declare Variables
int run = 5;
int year ;
// Perform Loop
srand ();
while (run >...
OKAY Thanks guys I knew there was another way to do division I just forgot about the '%' That helped a lot. How do I use the srand ??? I have no idea where to put it or how to put it in. I don't understand what the seed should be.. you guys have been extremely helpful and I almost have it...
ok I have come a long way since my last post. Now all I am have problems with is the fact that It is not finding out if a year is truly a leap year and it is not producing REAL Random numbers, instead it produces the same numbers every time. Can someone please just post the correct way to...
I have no Idea what you just said. I do not know what to do as far as writing. can you please post the code for the loop. I have no idea what a for loop is. all I know is my book has a while loop for an example. ???? I am more confused than ever.
Ok, I am kindof confused now. I took Rafe's advice but I don't know how to implement the whole Leap Year thing. So far all I have is posted below. I don't even care if you give me the answer anymore. I just want to make this program work so I can move on. Or instead of giving me the answer...
First I want to clear up the class thing. I am taking this class on my own time. I already have a BS in Computer Science and several Certifications in Networking. This is not really a class, I just bought the book and am trying to work through it. I am glad and also hope noone...
Yea. Thanks for your help. I am having trouble writing the loop. I am not that familiar with C++ Code. I knew about the leap year and how to find it. I just can't write the code for the loop. Can anyone please help me. Thanks again Chiph, I guess I should have been more specific.
Ok, I am currently in a beginners C++ Class. I need help writing the following practice problem:
Write a loop that calls a funciton to generate a year between 1895 and 2010. Test the year for being a leap year and print an appropriate statement to the screen. The loop should run at least...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.