СЧ
Сергей Черкасов
Как в С++ ввести строку? Визуал студио. Тип стринг
Сделал так
#include "stdafx.h"
#include
#include
using namespace std;
int main()
{
string name;
setlocale( LC_ALL,"Russian" );
cout << "Введите ваше имя: ";
setlocale( LC_ALL,"C");
getline(std::cin, name);
setlocale( LC_ALL,"Russian" );
cout << "Привет ";
setlocale( LC_ALL,"C");
cout << name << "!" << endl;
system("PAUSE");
return 0;
}