正解“:
#include "stdafx.h"
#include <iostream>
using namespace std;
using std::cout;
int main(int argc, _TCHAR* argv[])
{
if(false){
return 1;
}else{
cout <<"Bester city, Bester life.\n" <<sizeof(int) << endl;
printf("The best place to start is at the shanghai.");
return 0;
}
}
#include "stdafx.h"
#include <iostream>
using namespace std;
using std::cout;
int main(int argc, _TCHAR* argv[])
{
if(false){
return 1;
}else{
cout <<"Bester city, Bester life.\n" <<sizeof(int) << endl;
printf("The best place to start is at the shanghai.");
return 0;
}
}
本文展示了一个简单的C++程序示例,其中包括了条件判断、输出语句等基本元素。通过这个例子,读者可以了解到如何使用C++进行基本的程序编写。
9946





