Код: Выделить всё
#include "stdafx.h"
#include "conio.h"
using namespace std;
int main(){
char letter;
char* str=new char[50];
int i=0;
cout << "Prodolgit? (Y/N): ";
do{
letter = cin.get();
str[i]=letter;
i++;
}
while (letter!='n' || letter!='N');
str[i]='\0';
cout << endl << "Vi vveli: " << str << endl;
}