![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C
优雅的丶黑
保守我心,胜过保守一切、
展开
-
与和或
当想保留一个数的某一位或者某些位时与上其想保留的那些位为1的数当想改变一个数的某一位或者某些位为1时或上其想保留的那些位为1的数例:char a = 01011100 如果想保留它的低4位,即a&0x0F如果想把她的低4位置1,即a|0x0F...原创 2018-05-11 18:41:26 · 1835 阅读 · 0 评论 -
C代码抒写技巧
通过malloc可以同时申请多个结构体,因为结构体存在内存对其,所以可以很方便的设置一个结构体数组。#include <stdio.h>#include <stdlib.h>#include <string.h>typedef struct{ char name[10]; int year; int class; }student;int m...原创 2018-05-08 09:49:45 · 161 阅读 · 0 评论 -
lighttpd + fastcgi + c 测试例程
环境 Ubuntu 16.04下载lighttpd,这个网上资源很多。获取libcig库编译/etc/lighttpd/lighttpd.conf文件内添加fastcgi.server = ( "/login" => ( "test.fastcgi.handler" => ( "socket" => "/tmp/test....原创 2019-08-06 12:51:29 · 1280 阅读 · 1 评论 -
win10 mingw编译C/C++文件速度过慢问题
关闭防护软件的实时扫描功能,或者添加文件到忽略扫描,编译速度恢复正常原创 2019-08-06 15:01:38 · 3410 阅读 · 0 评论