I am new with C. what I am attempting to do is to ask for 2 names seperated by a comma (ie. Smith, John). then trying to cout them as (John Smith). I have an idea but just have no clue how to write it...
this is what I have so far...
#include <stdio.h>
#include <conio.h>
#include <iostream.h>
#include <string.h>
main () {
clrscr();
char name[50];
cout<<endl<<"Please enter your name (lastname, firstname): ";
cin >>name;
while (
cout<<endl<<;
cout<<endl<<"press any key to exit...";
getch();