摘要: #include <iostream> using namespace std; int main( ) { char str[] = "test cerr:"; cerr << "Test success!!!" << str << endl; } 阅读全文
posted @ 2021-11-18 20:53 一只狗狗 阅读(48) 评论(2) 推荐(1)
摘要: #include "stdio.h" #define OK 1 #define ERROR 0 #define Stacksize 100 typedef int status; typedef int elemtype; //元素为整型 #define SIZE 100 typedef struc 阅读全文
posted @ 2021-11-18 20:51 一只狗狗 阅读(118) 评论(0) 推荐(1)
摘要: int DFS_AM(AMgraph G,int v) { cout<<v; visited[v]=true; for(w=0;w<G.vexnum;w++) if((G.arcs[v][w]!=0)&&(!visited[w])) DFS_AM(G,w); return 0; } 阅读全文
posted @ 2021-11-18 20:48 一只狗狗 阅读(34) 评论(0) 推荐(1)
摘要: //1、设置程序的环境,将下列环境设置代码补充完整。 #include "stdio.h" #include "string.h" #define OK 1 #define ERROR 0 typedef int status; typedef struct stu{ //添加图书信息结构 char 阅读全文
posted @ 2021-11-18 20:47 一只狗狗 阅读(135) 评论(0) 推荐(1)
摘要: //1、 根据下列程序环境的设置,补充完整二叉树的二叉链表结点结构体的定义。 #include "stdio.h" #define OK 1 #define ERROR 0 typedef int status; //下面是二叉树相关的定义 #define MAX 20 typedef char T 阅读全文
posted @ 2021-11-18 20:42 一只狗狗 阅读(202) 评论(0) 推荐(1)
摘要: #include "stdio.h" #include "stdlib.h" #define MAXSIZE 15 //顺序表最大长度 #define ERROR 0 #define OK 1 typedef struct Seqlist { int data[MAXSIZE]; int lengt 阅读全文
posted @ 2021-11-18 20:39 一只狗狗 阅读(73) 评论(0) 推荐(1)
摘要: #include "stdio.h" #define OK 1 #define ERROR 0 typedef int status; typedef int elemtype; //元素为整型 typedef struct Node{ /* 定义单链表结点类型 */ elemtype data; 阅读全文
posted @ 2021-11-18 20:28 一只狗狗 阅读(39) 评论(0) 推荐(0)
摘要: #include "stdio.h" #include "string.h" #define OK 1 #define ERROR 0 typedef struct student{ //定义学生结构体 int num; //学号 char name[10]; //姓名 float score; / 阅读全文
posted @ 2021-11-18 20:27 一只狗狗 阅读(208) 评论(0) 推荐(0)
摘要: #include "stdio.h"#define OK 1#define ERROR 0#define SIZE 10typedef int status;typedef int elemtype; //元素为整型 typedef struct { //队列的顺序存储结构 elemtype *ba 阅读全文
posted @ 2021-11-18 20:23 一只狗狗 阅读(167) 评论(0) 推荐(0)
摘要: #include<stdio.h> #define ERROR 0 #define OK 1 typedef int Status; typedef int ElemType; // 顺序表的存储结构 #define MAXSIZE 100 //顺序表可能达到的最大长度 typedef struct 阅读全文
posted @ 2021-11-18 20:21 一只狗狗 阅读(118) 评论(0) 推荐(0)