Page MenuHomec4science

exercise01-5.cpp
No OneTemporary

File Metadata

Created
Sun, Jul 6, 16:29

exercise01-5.cpp

/*
* 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