#include "stdafx.h"
#include<iostream>
#include<string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
string line;
while (getline(cin, line))
cout << line;
return 0;
}
輸出結果爲:
#include "stdafx.h"
#include<iostream>
#include<string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
string line;
while (getline(cin, line))
cout << line;
return 0;
}
輸出結果爲:
在C++中,排序也是一個很重要的東西,下面就對常見的排序算法進行一個總結 1.交換函數 void swap(int *a, int i, int j) //交換兩個數 { if(i==j)
1、添加CButton對象到View類(XxxView頭文件中)中class CLinkGameView : public CView { //成員