Original Post
[source lang="cpp"]#include "stdafx.h"
#include
#include
#include
#include
#include
using namespace std;
void main()
{
string a,b;
char dchoice='y';
do{
cout<<"PLease enter the string"< getline(cin,a);
cout<<"Please enter the Second String"< getline(cin,b);
cout<<"String one"< cout<<"String two"< cout<<"To continue please enter y"< cin>>dchoice;
}while(dchoice=='y');
}[/source]
okay i am trying to take the input of the two string the first time the loop iterates it take's the input accurately while the second time it misses the first input of the string can any one give me a solution and point me where i am going wrong
#include
#include
#include
#include
#include
using namespace std;
void main()
{
string a,b;
char dchoice='y';
do{
cout<<"PLease enter the string"<
cout<<"Please enter the Second String"<
cout<<"String one"< cout<<"String two"< cout<<"To continue please enter y"<
}while(dchoice=='y');
}[/source]
okay i am trying to take the input of the two string the first time the loop iterates it take's the input accurately while the second time it misses the first input of the string can any one give me a solution and point me where i am going wrong