Graphic processing unit !!?????!!??!??!?!!?!!?
Answer:
get out there outside and get out and see what you do when you're ready for a workout or a day off and you're going through the
To indicate which program is needed to open it
Answer:
Input devices: For raw data input.
Processing devices: To process raw data instructions into information.
Output devices: To disseminate data and information.
Storage devices: For data and information retention.
Answer:
#include <iostream>
using namespace std;
int main()
{
char fullname[30];
string fname="",lname="";
int i,j;
cout<<"Enter fullname\n";
cin.getline(fullname,30); //so that blank can be read
for(i=0;fullname[i]!=' ';i++)
fname+=fullname[i]; //fistname will be saved
cout<<"\n";
for(j=i;fullname[j]!='\0';j++)
lname+=fullname[j]; //lastname will be saved
cout<<"\nFirstname : "<<fname<<"\nLastname : "<<lname;
return 0;
}
OUTPUT :
Enter fullname
John thomson
Firstname : John
Lastname : thomson
Explanation:
cin.getline() should be used instead of cin in case of strings so that space can be read otherwise after blank string will be ignored.