#include <iostream>
#include <string>
using namespace std;
void james_kobe();
std::string bas() {string name;cout << "请输入您的目的地" << endl;cin >> name;cin.get(); // 消耗掉输入的换行符return name;
}std::string car() {string carInfo;cout << "请输入您的目的地" << endl;cin >> carInfo;return carInfo;
}void numStringKobe()
{// 使用两层嵌套的for循环打印九九乘法表for (int i = 0; i <=9; i++) {for (int j = i; j <= i; j++) {cout << j<< "x" <<i << "=" << (j * i) << endl;}cout << "\t" << endl;}}void welcome() {string value;cout << "请输入您的交通工具" << endl;cin >> value;if (value == "公交车") {string namebas = bas();cout << "一运行公交车函数" << endl;}else {string namecar = car();james_kobe();cout << "一运行汽车函数" << endl;}
}int main() {welcome();numStringKobe();cout << "c++运行结果" << endl;return 0;
}