会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zjl-love-wsx
博客园
首页
新随笔
联系
订阅
管理
2024年12月21日
实验6
摘要: task4 代码: #pragma once #include <iostream> #include <stdexcept> #include <iomanip> // 模板类 Vector 的定义 template <typename T> class Vector { public: // 构
阅读全文
posted @ 2024-12-21 23:19 Alex013
阅读(8)
评论(0)
推荐(0)
2024年12月8日
实验5
摘要: task3 代码: #pragma once #include <iostream> #include <string> class MachinePets { protected: std::string nickname; public: MachinePets(const std::strin
阅读全文
posted @ 2024-12-08 14:43 Alex013
阅读(26)
评论(0)
推荐(0)
2024年11月24日
实验四 C++
摘要: task2 代码: #include <iostream> #include <vector> #include <string> #include <algorithm> #include <numeric> #include <iomanip> using std::vector; using
阅读全文
posted @ 2024-11-24 21:40 Alex013
阅读(13)
评论(0)
推荐(0)
2024年11月9日
实验3 C++
摘要: task1 代码: #pragma once #include <iostream> #include <string> using std::string; using std::cout; // 按钮类 class Button { public: Button(const string &te
阅读全文
posted @ 2024-11-09 22:48 Alex013
阅读(13)
评论(0)
推荐(0)
2024年10月28日
实验二 c++
摘要: task1 代码: task1.h: #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T
阅读全文
posted @ 2024-10-28 23:51 Alex013
阅读(16)
评论(0)
推荐(0)
2024年10月14日
实验一 现代C++ 基础编程
摘要: task1 代码: #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; // 声明 // 模板函数声明 template<typename T> void
阅读全文
posted @ 2024-10-14 01:02 Alex013
阅读(30)
评论(0)
推荐(0)
2023年12月15日
实验七
摘要: task4 1 #include<stdio.h> 2 int main(){ 3 FILE *fp; 4 long count=0; 5 char t; 6 if((fp=fopen("data4.txt","r"))==NULL){ 7 printf("error\n"); 8 return 1
阅读全文
posted @ 2023-12-15 18:32 Alex013
阅读(12)
评论(0)
推荐(0)
实验六
摘要: task4 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 sale
阅读全文
posted @ 2023-12-15 13:47 Alex013
阅读(44)
评论(0)
推荐(0)
2023年11月30日
实验5
摘要: task1.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-30 19:09 Alex013
阅读(19)
评论(0)
推荐(0)
2023年11月19日
实验4
摘要: task1 1.1 代码 1 #include <stdio.h> 2 #define N 4 3 4 void test1() { 5 int a[N] = {1, 9, 8, 4}; 6 int i; 7 // 输出数组a占用的内存字节数 8 printf("sizeof(a) = %d\n",
阅读全文
posted @ 2023-11-19 16:03 Alex013
阅读(16)
评论(0)
推荐(0)
下一页
公告