123456789101112131415161718192021222324252627
#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { char num0,num1,num2,num3,num4,name[50]; cout<<"Give me your name: "; cin>>name; for (int i=1; i<=5; i++) { cout<<("Press a number: "); cin>>num0; } cout<<name<<" " <<num0<<endl; cout<<name<<" " <<num2<<endl; cout<<name<<" " <<num4<<endl; system("PAUSE"); return EXIT_SUCCESS; }
char num[5];
name