2021年12月15日
摘要:
#ifndef _PERSON_HPP #define _PERSON_HPP #include<iostream> #include<string> using std::string; using std::ostream; using std::istream; using std::left
阅读全文
posted @ 2021-12-15 12:11
wlj23
阅读(52)
推荐(0)
2021年11月26日
摘要:
1 #include <iostream> 2 #include <typeinfo> 3 4 // definitation of Graph 5 class Graph 6 { 7 public: 8 virtual void draw() { std::cout << "Graph::draw
阅读全文
posted @ 2021-11-26 12:09
wlj23
阅读(27)
推荐(0)
2021年11月3日
摘要:
1 #ifndef VECTOR_HPP 2 #define VECTOR_HPP 3 4 #include<iostream> 5 #include<cassert> 6 using namespace std; 7 8 class vector_int { 9 public: 10 //vect
阅读全文
posted @ 2021-11-03 13:22
wlj23
阅读(83)
推荐(0)
2021年10月30日
摘要:
1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<iomanip> 5 using namespace std; 6 7 class info { 8 private: 9 string nickname, c
阅读全文
posted @ 2021-10-30 23:34
wlj23
阅读(58)
推荐(0)
2021年10月27日
摘要:
https://www.cnblogs.com/aacgll/
阅读全文
posted @ 2021-10-27 17:13
wlj23
阅读(63)
推荐(0)
2021年10月21日
摘要:
第三题 1 #ifndef cOMPLEX_HPP 2 #define cOMPLEX_HPP 3 #include<iostream> 4 #include<cmath> 5 6 class my_complex { 7 public: 8 my_complex() = default; 9 my
阅读全文
posted @ 2021-10-21 19:29
wlj23
阅读(67)
推荐(0)
2020年12月25日
摘要:
实验三正确输出数据,,,生成了dat文件,且直观可读 实验四任务一正确输出数据,,,生成了dat文件,且不可读 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #define N 10 typedef stru
阅读全文
posted @ 2020-12-25 20:44
wlj23
阅读(90)
推荐(0)
2020年12月21日
摘要:
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student { int id; /*学生学号 */ char na
阅读全文
posted @ 2020-12-21 12:29
wlj23
阅读(157)
推荐(0)
2020年12月16日
摘要:
#include <stdio.h> #define N 3 int main() { int a[N] = { 1, 2, 3 }; int i; printf("通过数组名及下标直接访问数组元素:\n"); for (i = 0; i < N; i++) printf("%d: %d\n", &
阅读全文
posted @ 2020-12-16 14:52
wlj23
阅读(121)
推荐(0)
2020年11月25日
摘要:
ex1只能返回一个返回值,或用指针返回,(sprintf可以吗???) 1 #include<stdio.h> 2 long long fac(int n); 3 4 int main02() { 5 int i, n; 6 7 printf("Enter n: "); 8 9 scanf_s("%
阅读全文
posted @ 2020-11-25 23:20
wlj23
阅读(119)
推荐(0)