2020年4月17日

1.AOE

摘要: #include <iostream> #include <fstream> #include <string> using namespace std; #define MAXSIZE 101 #define COMMIT typedef struct ArcNode { int adjvex = 阅读全文

posted @ 2020-04-17 14:38 altc 阅读(131) 评论(0) 推荐(0)

2018年12月14日

2 SwapSort

摘要: int BubbleSort(int *a, int len) { int i; for(i = len-1; i > 0; i--) { int j; int flag = 0; for(j = 0; j a[j+1]) { flag = 1; i... 阅读全文

posted @ 2018-12-14 17:13 altc 阅读(95) 评论(0) 推荐(0)

2018年12月11日

2 Select Sort

摘要: #include void PrintArray(int *a, int len); int SelectSort(int *a, int len); int HeapSort(int *a, int len, int d); #define LENGTH 10 int array[LENGTH] = {4, 1, 5, 7, 9, 8, 6, 0, 3, 2}; //int array[... 阅读全文

posted @ 2018-12-11 19:38 altc 阅读(106) 评论(0) 推荐(0)

1Insert Sort

摘要: int InsertSort(int *a, int len) { int i; for(i = 1; i = 0)&&(a[j] > temp)) { a[j+1] = a[j]; j--; } a[j+1] = temp; } } int ShellSort(int... 阅读全文

posted @ 2018-12-11 19:35 altc 阅读(93) 评论(0) 推荐(0)

2018年12月5日

gdb

摘要: 1. $file xxx $info breakpoints $break file:line $break function $run $next $continue //next breakpoints $watch i $delete num $bt 阅读全文

posted @ 2018-12-05 18:14 altc 阅读(80) 评论(0) 推荐(0)

2018年11月20日

gcc

摘要: gcc编译优化简介: 不开优化选项,编译器将以减少编译消耗为目的,并且使debug产生预期的结果。 各个语句都是独立的。如果在某个语句前打上断点,你可以为任意变量赋一个新值,或者改变pc寄存器的值使之指向任意语句。最终得出源码相应的期望的结果。 打开优化选项,编译器会以牺牲编译时间和debug能力为 阅读全文

posted @ 2018-11-20 15:42 altc 阅读(241) 评论(0) 推荐(0)

2018年11月9日

mercurial

摘要: 1.hgk 2.hg diff -c REV //compare with its first parent 3.hg paths 4.hg diff >1.patch 5.hg import 1.patch -f(force) --no-commit 6.hg revert -r 100 -all 阅读全文

posted @ 2018-11-09 15:36 altc 阅读(191) 评论(0) 推荐(0)

2018年11月8日

vim

摘要: 大小写转换 word :gUw guw 数字增减:ctrl + a/x :250,$/\n */\n/g 阅读全文

posted @ 2018-11-08 15:58 altc 阅读(107) 评论(0) 推荐(0)

2018年5月4日

2.ELF之Section Header

摘要: SH 此处为每个Section Entry的结构。 foo.c foo.o 这里可以看到,SH从1168 = 0x490,每个entry40B,23个entry,其中第20个是string section。 1.Name: string table index .shstrtab中存储所有secti 阅读全文

posted @ 2018-05-04 17:35 altc 阅读(404) 评论(0) 推荐(0)

1.ELF之Elf Header

摘要: 1.ELF的三个文件头 每个ELF文件有三个文件头,用来索引信息。 (1).EH = ELF file Header 可在此读到PH,SH在文件中的offset。 (2).PH = Program Header 与load program有关的索引,.o的PH为空。 (3).SH = Section 阅读全文

posted @ 2018-05-04 10:42 altc 阅读(1595) 评论(0) 推荐(0)

导航

< 2025年6月 >
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 1 2 3 4 5
6 7 8 9 10 11 12
点击右上角即可分享
微信分享提示