Quote:
Originally Posted by kugrug
valex you forgot std:: in front of the cout
but you could have added
using std::cout; after you did main()
|
ummm yeah....first leason, If you can keep it simple DO IT there is no need fot std:: infront of cout Example:
#include <iostream.h>
int x;
int y;
int z;
(it is a good idea to declare all your variables before you work on functions because i have recieved alot of errors when declaring variables in ohter functions)
int main()
{
cout<<"Hello please enter 2 numbers to be multiplyed."<<endl;
cout<<"Enter the first number now."<<endl;
cin>>x;
cout<<"Now enter your seconed number."<<endl;
cin>>y;
z=x*y;
cout<<"Here is the answer."<<z<<endl;
system("pause");
return 0;
}
Hmm its been a while since i have done any type of programming as my computers been breaking down but i believe that is correct.