Advertisement
Milaj

Untitled

May 17th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <string>
  4. #include <Windows.h>
  5. int main()
  6. {
  7. SetConsoleCP(1251);
  8. SetConsoleOutputCP(1251);
  9. struct Struct
  10. {
  11. char* Vlad;
  12. } p;
  13. p.Vlad = new char;
  14. std::cout << "Введите компанию: ";
  15. std::cin.getline(p.Vlad, 50);
  16. std::cout << p.Vlad;
  17. system("pause");
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement