
CPP
lc11535
stay fooooo.
展开
-
arp--c语言实现
//以太网头部typedef struct ethernet_head{ u_char dst_mac[6]; u_char src_mac[6]; u_short eth_type;}ethernet_head;//arp头部typedef struct arp_head{ u_char hardware_type[2]; u_char pr...原创 2019-12-23 18:08:42 · 2671 阅读 · 1 评论 -
Linux系统glibc和 GLIBCXX库版本信息查看
有时我们经常需要查看当前系统的glibc版本,可以这样查看:/lib/libc.so.6有时:/lib/x86-64-linux/libc.so.6把这个文件当命令执行一下为什么这个库可以直接run呢? 原来在libc的代码中有一点小手脚:Makerules:586:LDFLAGS-c.so += -e __libc_maincsu/version.c:71:__li...原创 2019-12-02 14:13:06 · 9826 阅读 · 0 评论 -
gcc 4.9.2 bug in -Werror=sizeof-pointer-memaccess?
You fell straight into the trap.In C, C++, Objective-C, Objective-C++, a parameter with a declaration that looks like "array of T" actually has type T*.Your parameter charArray has a declaration t...原创 2019-10-27 16:41:37 · 1842 阅读 · 0 评论 -
codeblocks快捷键及设置
Code::Blocks 17.12 Ctrl+C 不能给 copy ... 怎么破?按住Ctrl滚滚轮,代码的字体会随你心意变大变小。• 在编辑区按住右键可拖动代码,省去拉(尤其是横向)滚动条之麻烦;相关设置:Mouse Drag Scrolling。• Ctrl+D可复制当前行或选中块。• Ctrl+Shift+C注释掉当前行或选中块,Ctrl+Shift+X则解除注释。•...原创 2019-10-27 16:07:08 · 1633 阅读 · 1 评论 -
【总结】【更新】gcc/g++ 编译命令小总结(关于warning信息)| CGUZ
我就喜欢多多的warning选项…a.c: In function ‘main’:a.c:10:29: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsize...原创 2019-10-27 16:05:57 · 1787 阅读 · 0 评论