摘要: #include<stdio.h> #include<stdlib.h> #include<math.h> #include<windows.h> #define MY_BUFSIZE 1024 HWND GetConsoleHwnd(void) { HWND hwndFound; char psz 阅读全文
posted @ 2019-09-27 09:16 JackieDYH 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> main() { int i,j; for(i=5;i>=1;i--) {for(j=5;j>=1;j--) {if(j<=i) printf("%d",j); else printf(" "); } for(j=2;j<=5;j++) {if(j<=i) pri 阅读全文
posted @ 2019-09-27 09:16 JackieDYH 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<string.h> int main() { char s[100]={0}; int n=0,i=0,m=1,sum=0; gets(s); while(s[i++]) n++; //统计实际有多少位 for(i=0;i<n;i++) { su 阅读全文
posted @ 2019-09-27 09:13 JackieDYH 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<malloc.h> #include<string.h> typedef struct{ char chengS[10];//城市 char quH[10];//区号 }stu; stu s; int caiD()//菜单主界面 { int i; 阅读全文
posted @ 2019-09-27 09:12 JackieDYH 阅读(12) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <string.h> #include<stdlib.h> struct stu { int id; char name[10]; int subnum; char subname[10]; int score; float credit; } 阅读全文
posted @ 2019-09-26 17:34 JackieDYH 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<fstream> #include<cstring> using namespace std; struct st_list { char address[50]; char author[20]; char title[50]; char t 阅读全文
posted @ 2019-09-26 17:27 JackieDYH 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; class a{ public: a() { cout<<"\na\n"; } }; class b{ public: b() { cout<<"\nb\n"; } }; class c{ public: c() { c 阅读全文
posted @ 2019-09-26 17:26 JackieDYH 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; int cheng(int x,int y) { int sum; sum=x*y; return sum; } double cheng(double x,double y) { double sum; sum=x*y 阅读全文
posted @ 2019-09-26 17:18 JackieDYH 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<iomanip> #include<cmath> using namespace std; void input(double * x) { cout<<"0.0<=x<=40.0"<<endl; cin>>*x; } double db(do 阅读全文
posted @ 2019-09-26 17:17 JackieDYH 阅读(6) 评论(0) 推荐(0) 编辑
摘要: vim的插入方式下按A、a、O、0、1、i键进入插入模式 a:当前字符后添加文本 A:在行未添加文本 i:当前字符前插入文本 I:在行首插入文本 o:当前行后面插入- -空行 O:当前行前面插入一空行 r:替换光标位置的字符 R:替换光标开始的字符 vim的命令方式 h:光标向左移动一个字符 I:光 阅读全文
posted @ 2019-09-25 15:47 JackieDYH 阅读(4) 评论(0) 推荐(0) 编辑