会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
新生代农民工
博客园
首页
新随笔
联系
订阅
管理
2021年8月31日
循环单链表的c语言实现
摘要: 1 /** 2 * 循环单链表的实现 3 */ 4 #include <stdio.h> 5 #include <stdlib.h> 6 7 typedef struct List { 8 int data; 9 struct List *pNext; 10 } *List; 11 12 /** 1
阅读全文
posted @ 2021-08-31 17:06 新生代农民工
阅读(72)
评论(0)
推荐(0)
2021年8月30日
汇编段地址的最值
摘要: 有一数据存放在内存20000H单元中,现给定段地址为SA,若想用偏移地址寻址到此单元,则SA 应满足的条件是:最小是:?最大是:? 解题思路: 物理地址=段地址x16+偏移地址 最大值可以假设不需要偏移地址也就是为0,列出方程SAx16H+0H=20000H,解之SA=2000H 最小值假设全都需要
阅读全文
posted @ 2021-08-30 23:25 新生代农民工
阅读(100)
评论(0)
推荐(0)
汇编语言只使用四条语句实现2的3次方
摘要: 1 mov ax,2 2 add ax ax 3 add ax ax 4 add ax ax
阅读全文
posted @ 2021-08-30 22:35 新生代农民工
阅读(125)
评论(0)
推荐(0)
2021年8月29日
顺序结构的单链表实现
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef struct Node { 5 int data; 6 struct Node *next; 7 } Node, *LinkList; 8 9 LinkList initList() { 1
阅读全文
posted @ 2021-08-29 09:00 新生代农民工
阅读(41)
评论(0)
推荐(0)
2021年8月18日
C语言线性表的顺序结构
摘要: 1 #include<stdio.h> 2 #include <malloc.h> 3 #include <stdbool.h> 4 5 #define LIST_INIT_SIZE 100 // 线性表空间初始分配量 6 #define LIST_INCREMENT 10 //线性表存储空间的分配
阅读全文
posted @ 2021-08-18 13:30 新生代农民工
阅读(63)
评论(0)
推荐(0)
2021年8月15日
sql常用命令
摘要: 1.查看当前所有的数据库 show databases; 2.打开指定的库 use 库名 3.查看当前库的所有表 show tables; 4.查看其它库的所有表 show tables from 库名; 5.创建表 create table 表名{ 列名 列类型, 列名 列类型, ... } 6.
阅读全文
posted @ 2021-08-15 21:23 新生代农民工
阅读(91)
评论(0)
推荐(0)
2021年4月11日
将a数的十位和个位数依次放在c数的百位和个位上,b数的十位和个位数依次放在c数的十位和千位上
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int i,j,num; 5 scanf("%d%d",&i,&j); 6 num=(i%10)*1000+(j%10)*100+(i/10)*10+(j/10); 7 printf("%d",num); 8 9 retu
阅读全文
posted @ 2021-04-11 13:56 新生代农民工
阅读(475)
评论(0)
推荐(0)
请编写一个程序,其功能是:从键盘输入字符串,将字符串中下标位偶数同时ASCII 值为奇数的字符 删除
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 char str[100]; 5 int i,j; 6 gets(str); 7 for(i=0,j=0;str[i]!='\0';i++) 8 if((i%2==0)&&(str[i]%2!=0)) //将下标为偶数元素
阅读全文
posted @ 2021-04-11 13:17 新生代农民工
阅读(948)
评论(0)
推荐(0)
字符串中的所有数字字符顺序前移,其他字符顺序后移
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 char str[100],temp[100],*ch,*p; 5 ch=p=str; 6 int i=0,j=0; 7 gets(str); 8 while(*p++) //将字母抓取到另一个数组中 9 if(*p>='
阅读全文
posted @ 2021-04-11 12:31 新生代农民工
阅读(594)
评论(0)
推荐(0)
删除字符串中空格
摘要: 解题思路:抓取非空格的元素对数组从头开始覆盖重写 1 #include<stdio.h> 2 int main() 3 { 4 char str[100]; 5 char *ch,*p; 6 p=ch=str; //一个指针进行重写 一个指针负责抓取非空格字符 7 gets(str); 8 whil
阅读全文
posted @ 2021-04-11 11:07 新生代农民工
阅读(121)
评论(0)
推荐(0)
下一页
公告