@Folko
265 / 253 / 7
Регистрация: 27.09.2013
Сообщений: 877
|
11.11.2013, 20:44
|
|
Бауыржан, сейчас скину код
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| #include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
string str = "";
for (int i = 0; i < 10; i++)
{
int temp = rand()%10;
char buf[4];
sprintf(buf,"%d",temp);
str += buf;
}
cout << str << endl;
system ("pause");
return 0;
} |
|
как то так...
0
|