- 博客(8)
- 收藏
- 关注
原创 在C程序中打开文件
#include <iostream>#include <stdio.h>#include <string.h>#include <stdlib.h>#define STD_LENGTH 20#define NUM 4=using namespace std;int main() { FILE f; FILE* fp; FILE** fpp = &fp; //指向*fp的指针(fpp此时存储的是代表fp的地址) fopen_
2021-10-26 19:51:27
198
原创 程序设计及引导-1.15.6指向结构变量的指针
// 随堂练习(程序设计).cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。//#include <iostream>#include <stdio.h>#include <string.h>#include <stdlib.h>#define STD_LENGTH 20#define NUM 4using namespace std;struct Date { int nYear; int nMont.
2021-10-26 08:13:47
140
原创 数据库作业,关于舰船、it产品数据库的基础数据输入
数据库作业关于舰船、it产品数据库的基础数据输入it产品create table Product( --创建表 maker varchar(3), model int, [type] varchar(20), primary key (model)) --drop table Productinsert into Product(maker,model,type) values('A',1001,'pc')insert into Product(maker,model,type
2021-03-21 13:19:00
502
3
原创 C++二叉树的基本操作
保平哥的第三次上机作业最后一个相似算法写的比较简陋,见谅实现功能:二叉树的基本操作(存放整形数组)1.创建一颗二叉树60 20 -1 -1 100 -12.中序遍历二叉树3.左右交换算法4.计算一下二叉树中非终端的个数5.计算结点的值小于x结点的个数遍历算法(函数原型:int countx(bitnode *天,int x)6.二叉树的树高,树叶数量7.二叉树的相似性找bug不易,点个关注,收藏再走呗疯狂暗示()手动狗头//注意:代码模板中的代码将会被复制到任何新创建的文件中,
2020-10-28 09:57:18
1197
原创 基于C++的二叉树的基本操作
代码仅供参考(手动滑稽)#include <iostream>using namespace std;typedef struct BitNode{ char data; BitNode *lchild; BitNode *rchild;}BitNode;class bitt{ private: BitNode * bt; void create(BitNode *&t) ; int countleaf(BitNode
2020-10-27 23:07:09
255
原创 C++多项式的乘法
写代码半小时,找bug两小时一个有bug的代码,错误估计出在addpnode函数上面了/**改编:苏格扯底*******/#include<iostream>using namespace std;typedef struct pnode { int coef; int exp; pnode* next;}pnode;class poly {private: pnode* head;public: poly() { h
2020-10-14 09:32:30
3388
6
原创 C++ 基于单链表的学生管理系统
这个是最基本的系统具备基本的增改删查,还有打印显示,非常原始,后期会不定期更新~~~话不多说,直接上代码:/ 数据结构_课程设计_学生管理系统.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。/*原作者:苏格扯底*首次编写时间:2020年10月5日* 完成时间:2020年10月7日 ***/#include <iostream>#include <iomanip>#define I 0 //用于初始阶段指2录入单一学科分数
2020-10-07 16:12:07
2130
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人