摘要: #ifndef PERSON_TASK_HPP #define PERSON_TASK_HPP #include<iostream> #include<string> #include<iomanip> using namespace std; using std::ostream ; using 阅读全文
posted @ 2021-12-08 23:39 鸣蜩 阅读(96) 评论(2) 推荐(0) 编辑
摘要: #include<iostream> #include<iomanip> #include<string> using namespace std; class Car { public: Car(string maker, string model, int year) { this->maker 阅读全文
posted @ 2021-12-01 01:04 鸣蜩 阅读(41) 评论(2) 推荐(0) 编辑
摘要: #include<iostream> class vector_int { public: vector_int(); vector_int(int n); vector_int(int n, int value); vector_int(vector_int &X); ~vector_int(); 阅读全文
posted @ 2021-11-05 03:25 鸣蜩 阅读(16) 评论(3) 推荐(0) 编辑
摘要: #include<iostream> #include<string> #include<iomanip> class info { public: info(std::string theName = "a12", std::string thePhone = "112", std::string 阅读全文
posted @ 2021-11-03 10:49 鸣蜩 阅读(34) 评论(3) 推荐(0) 编辑
摘要: #include<complex.h> #include<iostream> #include<cmath> int main() { using namespace std; complex<double> c1(3,4); complex<double> c2(4.5); complex<dou 阅读全文
posted @ 2021-10-24 02:36 鸣蜩 阅读(52) 评论(3) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> int main(){ FILE *fin, *fout; char ch; fin = fopen("1.txt","r"); if(fin == NULL){ printf("fail to open 1\n"); exi 阅读全文
posted @ 2020-12-30 12:20 鸣蜩 阅读(149) 评论(4) 推荐(0) 编辑
摘要: #include<stdio.h> #include<string.h> #include<stdlib.h> #define N 3 typedef struct students{ int id; char name[20];// char subject[10]; float perd; fl 阅读全文
posted @ 2020-12-22 22:25 鸣蜩 阅读(65) 评论(2) 推荐(0) 编辑
摘要: #include<stdio.h> const int N = 3; int main(){ int a[N] = {1, 2, 3}; int i; for(i = 0; i < N; i++) printf("%d: %d\n", &a[i], a[i]); printf("通过地址间接访问数组 阅读全文
posted @ 2020-12-16 14:42 鸣蜩 阅读(53) 评论(2) 推荐(0) 编辑
摘要: #include<stdio.h> #include<math.h> void solve(double a, double b, double c); int main(){ double a, b, c; printf("Enter a,b,c:"); while(scanf("%lf%lf%l 阅读全文
posted @ 2020-11-26 22:40 鸣蜩 阅读(53) 评论(4) 推荐(1) 编辑
摘要: #include<stdio.h> #include<math.h> int main(){ float a,b,c,x1,x2; float delta,real,imag; printf("Enter a,b,c:"); while(scanf("%f%f%f",&a,&b,&c)!=EOF){ 阅读全文
posted @ 2020-11-13 11:49 鸣蜩 阅读(70) 评论(4) 推荐(0) 编辑