会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
沈超超
博客园
首页
新随笔
联系
订阅
管理
1
2
下一页
2021年12月11日
实验5 模板类与多态
摘要: task2: person.h: #ifndef UNTITLED22_PERSON_H #define UNTITLED22_PERSON_H #include<iostream> #include<string> using namespace std; class Person { priva
阅读全文
posted @ 2021-12-11 12:48 沈超超
阅读(43)
评论(3)
推荐(0)
2021年11月24日
实验4 继承
摘要: task2: 程序源码: #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std::cout << "Graph::draw() : just a
阅读全文
posted @ 2021-11-24 23:08 沈超超
阅读(58)
评论(3)
推荐(0)
2021年11月8日
实验3 类和对象Ⅱ
摘要: 实验任务四: vector_int.h: #ifndef UNTITLED15_VECTOR_INT_H #define UNTITLED15_VECTOR_INT_H #include "iostream" using namespace std; class Vector_int { priva
阅读全文
posted @ 2021-11-08 21:10 沈超超
阅读(19)
评论(3)
推荐(0)
2021年10月31日
实验2 数组、指针与C++标准库
摘要: 实验任务五: info.cpp源文件: #ifndef UNTITLED11_INFO_H #define UNTITLED11_INFO_H #include<iostream> #include<vector> #include<string> using namespace std; clas
阅读全文
posted @ 2021-10-31 13:24 沈超超
阅读(60)
评论(3)
推荐(1)
2021年10月23日
实验一 类与对象
摘要: 实验任务三: Complex.hpp文件源码: #ifndef UNTITLED8_COMPLEX_H#define UNTITLED8_COMPLEX_H#include<iostream>#include<string>#include<math.h>using namespace std;cl
阅读全文
posted @ 2021-10-23 13:04 沈超超
阅读(20)
评论(3)
推荐(0)
2020年12月29日
实验七
摘要: 1.已自主验证,当前路径下生成了file3.txt,已将file1.txt中小写字母改为大写字母。 2.已自主验证。 3.屏幕上正确输出了按分数由高到低的信息,生成了file3.txt,可用记事本打开,数据信息正确,且直观可读。 4.子任务1正确输出信息,生成了二进制文件file4.dat,信息无法
阅读全文
posted @ 2020-12-29 08:45 沈超超
阅读(66)
评论(1)
推荐(0)
2020年12月20日
实验六
摘要: #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student{ int id; char name[20]; char subject[20]; float perf; float
阅读全文
posted @ 2020-12-20 00:46 沈超超
阅读(77)
评论(1)
推荐(0)
2020年12月14日
实验五
摘要: ex1. #include <stdio.h> const int 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-14 17:49 沈超超
阅读(66)
评论(1)
推荐(0)
2020年11月29日
实验4
摘要: ex1.return只能返回一个值,所以不能把多个根返回给主调函数。 ex2 #include<stdio.h> long long fac(int n); int main() { int i,n; printf("Enter n:"); scanf("%d",&n); for(i=1;i<=n;
阅读全文
posted @ 2020-11-29 22:20 沈超超
阅读(69)
评论(1)
推荐(0)
2020年11月14日
实验三
摘要: #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-14 22:25 沈超超
阅读(86)
评论(1)
推荐(0)
1
2
下一页
公告