leto@freecity.cn

Essential C++

Jake's Free House For Fun.

Table of Contents

Homeworks
Chapter 1

Homeworks

The aim of creating current page is to store my solution of essential c++'s exercises. When all of those solutions are good with the key provided by that book, this page probably would be deleted. As you know, why do you bother provide another key while there is key already.

Chapter 1

#include <iostream>
#include <string>

using namespace std;

int main() {

    string user_name;
    string user_surname;
    cout << "Please enter your first name: ";
    cin >> user_name;
    cout << "and your last name: ";
    cin >> user_surname;

    cout << "\n"
         << "Hello, "
         << user_name
         << " "
         << user_surname
         << " ... and goodbye!\n";

    return 0;
}

工具配置笔记

学生习作

在外网的我的窝

友情链接们