C++函数返回一个对象学习笔记

学习中的一些代码记录:

#include 
#include 

using namespace std;
string input(const int m);
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
	int m;
	cout <<"Input m = ";
	cin>>m;
	string str = input(m);
	cout <>s1;
		s2=s2+s1+" ";
	}
	return s2;
}


 

你可能感兴趣的:(C++)