Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // kontr2v2.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <conio.h>
- #include <string>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "Russian");
- int n, k;
- cout << "Введите n и k: ";
- cin >> n >> k;
- char **mass = new char*[n];
- for (int i = 0; i < n; i++)
- {
- mass[i] = new char[];
- }
- cout << "Введите строки: " << endl;
- for (int i = 0; i < n; i++)
- {
- cin >> mass[i];
- }
- for (int i = k; i < n; i++)
- {
- cout << mass[i] << " ";
- }
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement