Дамп всех задач

This commit is contained in:
2017-05-22 13:29:43 +03:00
parent b970626fef
commit 93746b05d7
173 changed files with 2505 additions and 0 deletions

25
C++/строки/Str.cpp Normal file
View File

@@ -0,0 +1,25 @@
#include <iostream>
#include <graphics.h>
#include <conio.h>
#include <fstream>
#include <cstring>
#include <cctype>
#include <cstdio>
using namespace std;
int main() {
ifstream f; f.open("Strin.txt");
ofstream d; d.open("Strout.txt");
char s1[80]; int j, N;
f>>N;
for (j=0; j<=N; j++) {
f.getline(s1, sizeof(s1));
cout <<"Str "<<j<<" - "<<strlen(s1)<<" symbols\n";
d <<"Str "<<j<<" - "<<strlen(s1)<<" symbols\n";
}
d<<'\0';
f.close(); d.close();
system ("pause");
return 0;
}