@mansp
18 / 18 / 0
Регистрация: 07.11.2010
Сообщений: 136
|
20.04.2011, 15:55
|
|
Код
#include "stdafx.h"
#include <iostream>
#include "string"
using namespace std;
int main()
{
string str;
str ="hello word";
cout<<str<<endl;
string strbuf;
for(int i=0;i<5;i++)
strbuf.push_back(str[i]);
cout<<strbuf;
return 0;
}
1
|