C语言cout
Visual C++ 6.0#include "stdio.h"
#include "iostream"
#include "stdafx.h"
int main(int argc, char* argv[])
{
int a;
cout << "请输入一个数字,按回车结束" << endl;
cin >> a;
cout << a << endl;
return 0;
}
error C2065: 'cout' : undeclared identifier
error C2297: '<<' : illegal, right operand has type 'char '
error C2065: 'endl' : undeclared identifier
error C2065: 'cin' : undeclared identifier
warning C4552: '>>' : operator has no effect; expected operator with side-effect
warning C4552: '<<' : operator has no effect; expected operator with side-effect
页:
[1]