I wrote the code below and it runs well. However, how do I make it so that 'Jeanne' enters her own name instead of the numeral 01 to get the message 'Welcome Jeanne'?
Thank you.
// This program assigns a code to 'Jeanne' (analogous to a pass code)
Actual program starts just below
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int counter=0;
int code;
cout<<"Please enter your code\n";
cin>>code;
do
{ // 'do' opens
while (code!=01)
{ // 'while' opens
cout<<"Please enter correct code\n";
cin>>code;
if (code==01)
cout<<"Welcome Jeanne\n";
} // 'while' closes
} // 'do' closes
while (counter<=4);
return 0;
}