Hello. I have a pretty simple question.
Is it possible to cin >> an integer? like this:
#include <iostream.h>
int main()
{
int input[5];
cin >> input;
cout << input;
return(0);
}
I ask because I don't have my VC++ up and running yet.
Hello. I have a pretty simple question.
Is it possible to cin >> an integer? like this:
#include <iostream.h>
int main()
{
int input[5];
cin >> input;
cout << input;
return(0);
}
I ask because I don't have my VC++ up and running yet.
What will people say if they hear that I'm a Jesus freak?
What will people do if they find that it's true?
I don't really care if they label me a Jesus freak, there is no disguising the truth!
Jesus Freak, D.C. Talk
-gnu-ehacks
not really.You are declaring an array but you dont need one. this is the amended code...
Code:#include <iostream.h> int main() { int input; cin >> input; cout << input; return(0); }
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
I think no because u must put the element to input the number.