Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <vector>
- #include <string>
- #include <stdlib.h>
- using namespace std;
- struct Step {
- unsigned int x = 0, y = 0;
- Step * next = nullptr;
- };
- struct Irbis {
- unsigned int id;
- char description[25];
- Step * route;
- char name[15];
- };
- int main() {
- /*
- freopen("out.txt", "w", stdout);
- Step * s = new Step;
- Irbis family[3];
- for (int i = 0; i < 3; i++) {
- for (int j = 0; j < 10; j++) {
- family[i].name[j] = 'a';
- }
- }
- family[0].id = 1234;
- family[0].route = s;
- family[1].id = 123;
- family[1].route = s;
- family[2].id = 234;
- family[2].route = s;
- char * byteheap = (char *) family;
- for (int i = 0; i < sizeof(Irbis) * 3; i++) {
- cout << byteheap[i];
- }
- */
- string name;
- cin >> name;
- freopen(name.c_str(), "r", stdin);
- char c;
- int k = 0;
- bool f = false;
- while(cin.get(c)) {
- if (k >= 40 && ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))) {
- cout << c;
- }
- if (k == 55) {
- cout << '\n';
- f = false;
- k = 0;
- }
- k++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement