Public feed #598501

Unnamed

public text v1 · immutable
Raw Edit
·published 2007-07-01 12:11 UTC
rendered paste body
#include <iostream>
#include <string>

using namespace std;

int main()
{
	string x;
	string *ptr;
	ptr = &x;
	cout<<"Define it: ";
	cin>> x;
	cin.ignore();
	cout<< "you entered the word: "<<*ptr;
	cout<< "Enter another word: ";
        cin>> x;
	cin.ignore();
	cout<< "You entered the word: "
	cin.get();
}