Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. // kontr2v2.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. #include <conio.h>
  7. #include <string>
  8.  
  9. using namespace std;
  10.  
  11. int main()
  12. {
  13. setlocale(LC_ALL, "Russian");
  14. int n, k;
  15. cout << "Введите n и k: ";
  16. cin >> n >> k;
  17. char **mass = new char*[n];
  18. for (int i = 0; i < n; i++)
  19. {
  20. mass[i] = new char[];
  21. }
  22. cout << "Введите строки: " << endl;
  23. for (int i = 0; i < n; i++)
  24. {
  25. cin >> mass[i];
  26. }
  27. for (int i = k; i < n; i++)
  28. {
  29. cout << mass[i] << " ";
  30. }
  31. _getch();
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement