i am just getting started with using C++ and i was wandering if somebody could tell me were i went wrong in my code and show me how it is supposed to be done any help would be great. here is the code
Code:#include<iostream.h> //declares as type int int First,Middle,Last //main program starts int main () { char first,middle,last; cout << "enter your name: \n" ; cout << "\ First: " ; cin >> First; cout << "\ Middle: " ; cin >> Middle ; cout << "\ Last: " ; cin >> Last ; cout << " welcome," "<<First <<Middle <<Last \n" ; //main program end return 0; }




Reply With Quote