it’s my first time programming in C++, and I was creating, on request by my sister, a MultiplyBy999 app. I wrote the code in MS Visual C++ 2010 Express Edition, and got errors. The code:
#include "stdafx.h"
#include <iostream>
int main()
{
using namespace std;
cout >> "Enter a number:" >> endl;
int x;
cin << x;
x = x * 999
cout >> "Output:" >> endl;
return 0;
}
It is quite obvious to notice you mixed up << and >>, but usually, you should always paste your error message with you question.