会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hxqbbimoshuchou666
博客园
首页
新随笔
联系
订阅
管理
1
2
下一页
2024年12月24日
实验六c++
摘要: 实验任务四 源代码 Vector.hpp 1 #include<iostream> 2 #include<stdexcept> 3 using namespace std; 4 5 template<typename T> 6 class Vector { 7 public: 8 Vector(in
阅读全文
posted @ 2024-12-24 13:32 笔墨书稠
阅读(15)
评论(0)
推荐(0)
2024年12月8日
实验5c++
摘要: 实验任务三 pets.hpp 1 #pragma once 2 #include<iostream> 3 #include<string> 4 5 using std::string; 6 using std::cout; 7 class MachinePets { 8 protected: 9 s
阅读全文
posted @ 2024-12-08 15:03 笔墨书稠
阅读(26)
评论(0)
推荐(0)
2024年11月25日
实验四C++
摘要: 实验任务二 源代码 GradeCalc.hpp 1 #include <iostream> 2 #include <vector> 3 #include <string> 4 #include <algorithm> 5 #include <numeric> 6 #include <iomanip>
阅读全文
posted @ 2024-11-25 15:27 笔墨书稠
阅读(26)
评论(0)
推荐(0)
2024年11月7日
实验三 c++
摘要: 实验任务一 源代码 button.hpp 1 #pragma once 2 3 #include<iostream> 4 #include<string> 5 6 using std::string; 7 using std::cout; 8 9 class Button{ 10 public: 1
阅读全文
posted @ 2024-11-07 21:01 笔墨书稠
阅读(17)
评论(0)
推荐(0)
2024年10月27日
实验二 c++
摘要: 实验任务一 源代码 t.h 1 #pragma once 2 3 #include <string> 4 5 // 类T: 声明 6 class T { 7 // 对象属性、方法 8 public: 9 T(int x = 0, int y = 0); // 普通构造函数 10 T(const T
阅读全文
posted @ 2024-10-27 23:18 笔墨书稠
阅读(37)
评论(0)
推荐(0)
2024年10月13日
实验一c++
摘要: 实验任务一 源代码: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 using namespace std; 7 8 // 声明 9 // 模板函数声明 10 temp
阅读全文
posted @ 2024-10-13 18:27 笔墨书稠
阅读(22)
评论(0)
推荐(0)
2023年12月18日
实验七
摘要: 实验任务4 源代码 1 #include<stdio.h> 2 #define N 100 3 #define M 100 4 int main(){ 5 FILE *fp; 6 char a[N][M]; 7 int i,j=0,k=0,s=0; 8 fp=fopen("data4.txt","r
阅读全文
posted @ 2023-12-18 11:22 笔墨书稠
阅读(19)
评论(0)
推荐(0)
2023年12月13日
实验六
摘要: 实验任务4 源代码 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 double
阅读全文
posted @ 2023-12-13 00:23 笔墨书稠
阅读(44)
评论(0)
推荐(0)
2023年11月28日
实验5
摘要: 实验任务1.1 源代码 1 #include<stdio.h> 2 #define N 5 3 4 void input(int x[],int n); 5 void output(int x[],int n); 6 void find_min_max(int x[],int n, int *pmi
阅读全文
posted @ 2023-11-28 14:57 笔墨书稠
阅读(30)
评论(0)
推荐(0)
2023年11月20日
实验4
摘要: 试验任务1.1 源代码 1 #include<stdio.h> 2 #define N 4 3 void test1(){ 4 int a[N]={1,9,8,4}; 5 int i; 6 7 printf("sizeof(a)=%d\n",sizeof(a)); 8 9 for(i=0;i<N;i
阅读全文
posted @ 2023-11-20 13:32 笔墨书稠
阅读(34)
评论(0)
推荐(0)
1
2
下一页
公告