(im bad at english)
how do u code for choice using programming c++
i.e. what shoes do u want to buy
1)heels
2)without heels
such like tht
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
char choise='\0';
cout<<"what shoes do u want to buy?"<<endl;
cout<<"1)heels\n 2)without heels"<<endl;
cout<<"Your choise: ";
cin>>choise;
if(choise=='1')
{
//u`ve selected shoes with heels
}
else if(choise=='2')
{
//u`ve selected shoes without heels
}
else
{
//invalid input.
}
return 0;
}