source code


SUBMITTED BY: Guest

DATE: March 27, 2014, 3:46 p.m.

FORMAT: C++

SIZE: 641 Bytes

HITS: 676

  1. //Haha TTpro
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6. char *a, *b, *c, *d;
  7. int x, y;
  8. cin >> x;
  9. cin.get();
  10. cin >> y;
  11. a = new char[100];
  12. b= new char[100];
  13. c = new char[100];
  14. d = new char[100];
  15. cin.get();
  16. cin.getline(a, 100);
  17. cin.getline(b, 100);
  18. cin.getline(c, 100);
  19. cin.getline(d, 100);
  20. cout << "x = " << x << endl;
  21. cout << "y = " << y << endl;
  22. cout << "a = " << a << endl;
  23. cout << "b = " << b << endl;
  24. cout << "c = " << c << endl;
  25. cout << "d = " << d << endl;
  26. delete[]a;
  27. delete[]b;
  28. delete[]c;
  29. delete[]d;
  30. }

comments powered by Disqus