摘要: 类型一 #include <stdio.h>#include <stdlib.h> int main(){ int a=1,b=2,c=3; int *pa=&a,*pb=&b; int *p; *(p=&c)=*pa-(*pb); printf("%d",c); return 0;} 输出为-1; 阅读全文
posted @ 2019-04-22 20:41 鹿汐 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: 1、ls命令 就是list的缩写,通过ls 命令不仅可以查看linux文件夹包含的文件,而且可以查看文件权限(包括目录、文件夹、文件权限)查看目录信息等等 常用参数搭配: ls -a 列出目录所有文件,包含以.开始的隐藏文件 ls -A 列出除.及..的其它文件 ls -r 反序排列 ls -t 阅读全文
posted @ 2019-04-17 17:44 鹿汐 阅读(314) 评论(0) 推荐(0) 编辑
摘要: #include <stdlib.h> #include <stdio.h>#include <conio.h>#include <string.h> #define MAXIMUS 15 //定义棋盘大小 int p[MAXIMUS][MAXIMUS];//存储对局信息char buff[MAXI 阅读全文
posted @ 2019-04-17 17:22 鹿汐 阅读(493) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#include <string.h>#include <windows.h>#include <conio.h>#define LEN sizeof(struct Student)#define LEN1 sizeof(st 阅读全文
posted @ 2019-04-17 17:19 鹿汐 阅读(598) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>#define MaxSpace 100#define keylen 7#define RADIX_n 10#define RADIX_c 26 typedef char KeyType;typedef struct{ char 阅读全文
posted @ 2019-04-17 17:15 鹿汐 阅读(511) 评论(0) 推荐(0) 编辑
摘要: Description 编写递归函数,该函数可以求出裴波那契数列的任意一项 编写递归函数,该函数可以求出裴波那契数列的任意一项 Input 输入一个正整数 输入一个正整数 Output 输出数列中该项的值 输出数列中该项的值 Sample Input 3 Sample Output 2 #inclu 阅读全文
posted @ 2019-04-17 17:05 鹿汐 阅读(664) 评论(0) 推荐(0) 编辑
摘要: Description 写一函数,用来求表达式1+2+3+.....+n的值,并编写主函数。n由键盘输入。 写一函数,用来求表达式1+2+3+.....+n的值,并编写主函数。n由键盘输入。 Input 输入一个整数 输入一个整数 Output 输出表达式的值 输出表达式的值 Sample Inpu 阅读全文
posted @ 2019-04-17 16:38 鹿汐 阅读(6991) 评论(0) 推荐(0) 编辑