еще один вопрос, мой вот этот код, будет работать на с языке или нет?
C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| #include <iostream>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <cstdio>
#include <string>
#include <sstream>
using namespace std;
int main(){
std::stringstream ss;
int a = 789;
ss<<a;
std::string str;
ss>>str;
int i = str[0] - '0';
cout<<i;
int z = str[1] - '0';
cout<<z;
int x = str[2] - '0';
cout<<x;
} |
|