cin.getline проблемы
Добавлено: 31 май 2005, 18:12
подскажите, пожалуйста почему не работает
Код: Выделить всё
#include <iostream>
void main ( )
{
using namespace std;
char p[50];
int t;
cout << "Input1 :";
cin >> t;
cout << endl;
cout << "Input2 :";
cin.getline(p,50);
cout << endl;
cout << p;
}