Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120735601
exercise01-5.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 6, 16:29
Size
729 B
Mime Type
text/x-c
Expires
Tue, Jul 8, 16:29 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27228942
Attached To
R1106 Programming Concept Rouaze
exercise01-5.cpp
View Options
/*
* exercise-template.cpp <--- The name of the source file goes here
*
* <--- Description of the program goes here.
*
* Created on: September 02, 2015 <--- Fill in the date here
* Author: Davide Forti <davide.forti@epfl.ch> <--- Fill in your name (and e-mail) here
*/
/*
* Any headers you need to include should be specified on the next lines
*/
#include <iostream>
#include <cmath>
int main(int argc, char* argv[])
{
std::string name,surname;
std::cout << "Enter your First Name and then hit Return\n";
std::getline(std::cin, name);
std::cout << "Enter your Surname and then hit Return\n";
std::getline(std::cin, surname);
std::cout << "Your name is " << name << " " << surname << "\n";
return 0;
}
Event Timeline
Log In to Comment