@fan_stud
0 / 0 / 0
Регистрация: 17.04.2013
Сообщений: 7
|
26.07.2013, 18:06
|
|
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| #include <fstream>
#include <string>
#include <iostream>
using namespace std;
int main()
{
string str;
ifstream fin("input.txt");
ofstream fout("output.txt");
fin >> str;
char value('8');
size_t first_value_in_str(str.find_first_of(value) + 1);
fout << first_value_in_str;
return 0;
} |
|
0
|