摘要: 1. DWORD dwExStyle //窗口的扩展风格(加强版专有)指定扩展的窗口样式。为以下值中的一个或多个(devc++用“|”连接):WS_EX_ACCEPTFILES 指定此样式创建一个窗口接受拖放文件。WS_EX_APPWINDOW 当窗口可见时布置一个顶级窗口到任务栏上。WS_EX_C 阅读全文
posted @ 2024-05-04 15:50 -刘佳兴- 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h> //创建窗口程序的步骤: //1.创建winMain()主函数 //2.设计窗口 //3.注册窗口 //4.创建窗口 //5.显示窗口 LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, //消息 WPARAM 阅读全文
posted @ 2024-05-04 15:15 -刘佳兴- 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1 #include<bits/stdc++.h> 2 #include<windows.h> 3 using namespace std; 4 int main(){ 5 cout<<"猜数字游戏"<<endl; 6 int max=100,in=0; 7 char d1[max+10]; 8 c 阅读全文
posted @ 2024-05-04 10:02 -刘佳兴- 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1 #include<bits/stdc++.h> 2 #include<windows.h> 3 using namespace std; 4 int main() 5 { 6 MessageBox(NULL,"你好,这是一个提示信息框","信息框",MB_OK); 7 MessageBox(NU 阅读全文
posted @ 2024-05-04 08:56 -刘佳兴- 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 //单人游戏 3 #include <iostream> 4 #include <windows.h> 5 #include <conio.h> 6 using namespace std; 7 int main(int argc, char** argv) { 8 HANDLE ha 阅读全文
posted @ 2024-04-13 15:55 -刘佳兴- 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 using namespace std; 3 int main(){ 4 int a[10]={3,6,1,5,4,8,7,10,9,2}; 5 for(int j=0;j<9;j++){ 6 for(int i=j+1;i<10;i++){ 7 if 阅读全文
posted @ 2024-04-05 08:54 -刘佳兴- 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 1 //#include <iostream> 2 //#include <cmath> 3 //using namespace std; 4 //int main(){ 5 // freopen("in.txt","r",stdin); 6 // freopen("out.txt","w",std 阅读全文
posted @ 2024-03-30 10:02 -刘佳兴- 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cmath> 3 using namespace std; 4 int main(){ 5 double x,n,h=0.0; 6 cin>>x>>n; 7 for(int i=1;i<=n;i++){ 8 if(i==1){ 9 阅读全文
posted @ 2024-03-30 08:59 -刘佳兴- 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <fstream> 3 #include <map> 4 using namespace std; 5 struct book{ 6 string name; 7 float moeny; 8 string cbs; 9 string 阅读全文
posted @ 2024-03-16 09:59 -刘佳兴- 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 using namespace std; 3 int main(int argc, char** argv) { 4 int n; 5 cin>>n; 6 //三角 7 for(int i=1;i<=n;i++){ 8 for(int t=1;t<=n 阅读全文
posted @ 2024-03-15 20:02 -刘佳兴- 阅读(4) 评论(0) 推荐(0) 编辑