Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- #include <Windows.h>
- int main()
- {
- SetConsoleCP(1251);
- SetConsoleOutputCP(1251);
- struct Struct
- {
- char* Vlad;
- } p;
- p.Vlad = new char;
- std::cout << "Введите компанию: ";
- std::cin.getline(p.Vlad, 50);
- std::cout << p.Vlad;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement