OK I feel really stupid for this, but I can't get it to work. I thought you just needed #include<time.h> at the top to use it, but obviously not, so can anyone tell me what it should be instead of...
Type: Posts; User: charlybob
OK I feel really stupid for this, but I can't get it to work. I thought you just needed #include<time.h> at the top to use it, but obviously not, so can anyone tell me what it should be instead of...
Thanks again
(Sorry for the double post)
Guess it makes sense. I hadn't used dev-c++ since I updated it.
?
Never had to use std:: before. They've always worked straight away like that.
#include <iostream>
int main()
{
int aArray[12];
cin >> aArray [4];
cout << aArray [4];
Another thing I like about C++ for dummies is it has a thing of explaining what something is, why its used and how to use it. Then at the end of the chapter it shows it being used in a FULL program....
Lol, sorry. I said I'm new to it, should have expected the questions to be simple.
And thanks again.
Never use a dummies or 21 days/hours book for anything like programming.
Those books are designed for bragging rights so people can claim to know how to program, when they only actually know how...
Oh yeah, thanks a lot dude.
It's compiled now and works. Soon as it prints the two answers though it shuts down the window. I thought cin.get(); should have meant you had to press something before...
OK I've just wrote something to fill some time, and I thought I had done it all right, but when I try compile it, it gives some errors, but the errors don't make much sense to me really. It's giving...