- 博客(10)
- 收藏
- 关注
原创 学习C++应用1
/*application 1*/ #include <graphics.h>//图形库 #include <iostream> #include <String> #include<mmsystem.h> //播放音乐头文件 #include "lesson 1.h" #pragma comment (lib,"winmm.lib")//无需加;播放音乐需导入库文件 using namespace std; int main() { // 初始化...
2021-08-02 11:40:34 129
原创 学习C/C++同步进行 第7课 EasyX_2018
/*lesson 7*/ //程序名称:简单的窗口界面 //编译环境:Mictosoft Visual Studio 2012, EasyX_2018(beta) //最后修改:2020-4-1 //学习练手 #include <graphics.h> #include <Windows.h> int main() { //初始化绘图环境 initgraph(640,480);//3个参数(环境宽度、高度、环境的样式) //背景色设置...
2021-07-29 15:33:33 149
原创 学习C/C++同步进行 第5课 Char\Short\Int\Long\Float\Double\LongDouble---hex\oct\dec
/*lesson 5*/ #include <iostream> #include <string> using namespace std; int main() { string type = "类型占用的字节数 = "; //字符串"类型"声明 cout << "char" << type << sizeof(char) << ...
2021-07-28 23:00:16 117
原创 学习C/C++同步进行 第4课 & | ~ ^
/*lesson 4*/ #include <iostream> //头文件☆文件后无需添加.h #include<iomanip> using namespace std; int main() { int X = 3, Y = 5; //按位与运算 cout << "按位与运算"; cout << X << "&...
2021-07-28 22:44:57 73
原创 学习C/C++同步进行 第3课 iomanip setw
#include <iostream> #include<iomanip> using namespace std; int main() { //6550-655 数学表达式 int X = 6550, Y = 655; cout << X << "-" << Y << "=" << X-Y << endl << endl; cout << setw...
2021-07-28 19:49:01 78
原创 学习C/C++同步进行 第2课 using namespace
#include <iostream> //头文件☆文件后无需添加.h #include <string> //C++ 字符串头文件 using namespace std; ...
2021-07-28 16:02:37 140
原创 学习C/C++同步进行 第1课 Printf Cout String
/*头文件*/ #include <stdio.h> #include<iostream> //C++语言 输入cin 输出cout #include<windows.h> //包含以下system("pause"); using namespace std;//C++ 头文件iostream的内容 //没有这句语言 cin cout endl必须前需 std::cin s...
2021-07-28 13:46:09 53
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人