Return to Tech/cpluplu

C/C++ Programming - string

About String
c++のstringクラスは
他の言語(java, .NET)と同じように
文字列を簡単に扱うことができます。
example
int main(void) {

	string str1 = "文字列1";
	string str2 = "文字列2";

	str1 += str2;

	cout << str1->data() << endl;

	return 0;
}
実行例
文字列1文字列2

Return to Tech/cpluplu