题目:填空练习(指向指针的指针)。 程序分析:无。 程序源代码: 1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 const char *s[]={"man","woman","girl","boy","sister"}; 6 ...
分类:
其他好文 时间:
2020-08-01 21:17:33
阅读次数:
72
题目:找到年龄最大的人,并输出。请找出程序中有什么问题。 程序分析:无。 实例: 1 #include<stdio.h> 2 #include<stdlib.h> 3 struct man{ 4 char name[20]; 5 int age; 6 } 7 person[3]={"li",18," ...
分类:
其他好文 时间:
2020-08-01 21:15:42
阅读次数:
69
先序遍历与中序遍历的代码实现是差不多的 只是把访问节点的操作放到了入栈操作前 代码实现: #include <stdio.h> #include <string.h> #include <stdlib.h> #define ElementType char int top = -1; //定义top ...
分类:
其他好文 时间:
2020-07-31 18:04:02
阅读次数:
118
节点的结构 struct Node { int value; struct Node* next; }; typedef struct Node Node; 基本功能和操作演示 #include <stdio.h> #include <stdlib.h> struct Node { int valu ...
分类:
编程语言 时间:
2020-07-30 22:10:51
阅读次数:
73
#include <stdlib.h> #include <stdio.h> //二分查找非递归 int Binary_Search(int list[],int key,int length){ int low=0,high=length-1; while (low<=high){ int mid ...
分类:
其他好文 时间:
2020-07-30 21:44:08
阅读次数:
69
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { FILE *fp = NULL; fp = fopen("./1.txt", "w+ ...
分类:
编程语言 时间:
2020-07-30 14:34:50
阅读次数:
55
节点的数据结构 struct Node { int value; struct Node* next; }; typedef struct Node Node; 操作和演示 #include <stdlib.h> #include <stdio.h> // 建立一个节点 Node *createNo ...
分类:
编程语言 时间:
2020-07-30 01:18:43
阅读次数:
82
1、简介(基于s3c2440 linux) 在内核调试技术之中,最简单的就是printk的使用了,它的用法和C语言应用程序中的printf使用类似,在应用程序中依靠的是stdio.h中的库,而在linux内核中没有这个库,所以在linux内核中,使用这个printk就要对内核的实现有一定的了解。 p ...
分类:
系统相关 时间:
2020-07-29 21:55:06
阅读次数:
89
AcWing 830. 单调栈 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int n; int stk[N],tt; int main(){ cin.tie(0); ios::sync_with_stdio(f ...
更新包索引 apt update 安装开发工具包 apt install build-essential 查看gcc是否安装成功 gcc --version 编写hello world vim hello.c #include <stdio.h> int main() { printf("Hello ...
分类:
系统相关 时间:
2020-07-29 15:07:04
阅读次数:
61