C++编写一个三维文字,姓名和学号
时间: 2024-01-18 14:01:56 浏览: 74
以下是一个使用C++编写的三维文字,姓名和学号的示例程序:
```c++
#include <iostream>
using namespace std;
int main() {
cout << " /\\_/\\ _________ ___________ " << endl;
cout << " ( o.o ) / \\ | | " << endl;
cout << " > ^ < / /\\_/\\ \\ | _____ | " << endl;
cout << " | | o o | || | _ | | " << endl;
cout << " | ( = ) || | | | | | " << endl;
cout << " \\ \\|/ / | | |_| | | " << endl;
cout << " \\ / | |_____| | " << endl;
cout << " \\_______/ |___________| " << endl;
cout << " " << endl;
cout << "Name: John Doe" << endl;
cout << "Student ID: 123456789" << endl;
return 0;
}
```
这个程序会在控制台输出一个三维文字 "CAT",并且打印出一个姓名和学号的信息。你可以根据需要修改输出的文字和姓名、学号的信息。
阅读全文