blob: 8c00d62d63289de3f9d576870b044a9a774752d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
int main()
{
int age;
int year = 2019;
std::string guy;
int mainChoice;
std::cout << "Welcome to Project Xeon! A text-based game made in C++!" << std::endl;
std::cout << "Please enter your name..." << std::endl;
std::getline(std::cin, guy);
std::cout << "Hello "<< guy << "!" << std::endl;
age = 0;
age = age+1;
year = year+1;
std::cout << "You are now " << age << " and it's " << year << std::endl;
return 0;
}
|