刚学 C++ 就出错了
#include "stdafx.h"#include <string>
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int i ,j;
double d ;
std::string s;
i = 1;
d = 1.25;
s = "
cout<<"请输入一个整数:";
cin>>j;
cout<<"i = "<<i<<"\n";
cout<<"j = ";
cout<<j;
cout<<endl;
cout<<"d = "<< d <<"\n"<<endl;
cout<< s <<endl;
fflush(stdin);
getchar();
return 0;
}
解决了,谢谢大虾!!!
[ 本帖最后由 午夜小学徒 于 2014-9-12 17:10 编辑 ]