文章列表

筛选

c语言文件操作

摘要:#include<stdio.h> #include<stdlib.h> #include<string.h> //交换字母的代码  void swap(char *s,int i,int j……

删除链表中指定的值

摘要:/* 写一个函数del,用来删除动态链表中指定的节点 */ #include<stdio.h>  #include<stdlib.h> typedef struct LNod……

向链表插入数据

摘要:/* 写一个函数insert,用来向一个动态链表插入结点 */ #include<stdio.h>  #include<stdlib.h> typedef struct LN……

链表增删改查

摘要:#include <stdio.h> #include <stdlib.h> #define COUNT 5 typedef struct LNode { int num; struc……

2到36进制转换(整数)

摘要:10进制转n进制: ```cpp void system_10_n(int num, int n) {//短除法 stack s;//定义栈 while (num > 0) {//定义……
精品文章

求PI的两种常用方法

摘要:#求PI的两种方法 ##1. 正多边形逼近 这种方法就是祖冲之用的,不用多说了吧。 若一个正多边形的边长为b,边数为i,则当边长翻倍后, ``` i=2i b=sqrt(2-2*sqrt(……

严查军火 —C语言

摘要:#include <stdio.h> #include <stdlib.h> #include <string.h> int main() {     int n;     scanf("%……