Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // apple xcode
- // paulogp
- #include <iostream>
- using namespace std;
- int main (int argc, const char * argv[])
- {
- char the_first_name[256] = {};
- char the_last_name[256] = {};
- int the_age = 0;
- cout << "first name: ";
- cin.getline (the_first_name, 256);
- cout << "last name: ";
- cin.getline (the_last_name, 256);
- cout << "age: ";
- cin >> the_age;
- cout << "your name is " << the_first_name << " "
- << the_last_name << " and your age is " << the_age << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement