摘要: 0. Introduce Random Number Generators #include <stdlib.h> 1. How to generate a random number in a given range in C. Examples: Input : Lower = 50, Uppe 阅读全文
posted @ 2020-05-19 06:16 Jasper2003 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <math.h> 4 5 #define BYTETOBINARYPATTERN "%d%d%d%d%d%d%d%d" 6 7 #define BYTETOBINARY(byte) \ 8 ( 阅读全文
posted @ 2020-05-19 01:25 Jasper2003 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 2 (1) 3 #include<stdio.h> 4 FILE * myFile = NULL; 5 myFile = fopen(“input_file.dat” , “r”); 6 /* r-> open for reading w-> writing a-> appending */ 7 I 阅读全文
posted @ 2020-05-19 01:07 Jasper2003 阅读(142) 评论(0) 推荐(0) 编辑
摘要: AsciiToBinary 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main(int argc,char *argv[]) 5 { 6 FILE *ascFile = NULL; 7 FILE *binFile = NULL; 8 dou 阅读全文
posted @ 2020-05-19 01:02 Jasper2003 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 5 6 #define UNPACKED_SIZE 160 7 #define PACKED_SIZE 120 8 9 void menu(); 10 void pack(); 阅读全文
posted @ 2020-05-19 00:55 Jasper2003 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Example 0 :Debug Scheduler.c Example 1 : Debug LAB5 <1> Using GDB to Debug Lab5 bash$ gdb Lab5 <2&5> Specify a condition in the program and apply it t 阅读全文
posted @ 2020-05-19 00:48 Jasper2003 阅读(142) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> #include<math.h> typedef struct _node { int data; struct _node *next; }node; void insertNodeSorted(node **head, n 阅读全文
posted @ 2020-05-19 00:43 Jasper2003 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 5 /* 6 * Item struct for holding item information 7 */ 8 typedef struct _Item 9 { 10 c 阅读全文
posted @ 2020-05-19 00:32 Jasper2003 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 typedef struct _Node 5 { 6 int data; 7 struct _Node *next; 8 }Node; 9 10 Node *newList(); 11 Node *insert 阅读全文
posted @ 2020-05-19 00:21 Jasper2003 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1. Directory structure Many times with large projects, in order to keep things neat and orderly, source and include files are distributed across sever 阅读全文
posted @ 2020-05-16 01:56 Jasper2003 阅读(168) 评论(0) 推荐(0) 编辑