会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
下一页
2017年11月23日
windows获取IP和MAC地址【Qt】
摘要: 1、根据hostname获取IPmain.cpp:#include <QCoreApplication>#include"noarp.h" int main(int argc, char *argv[]){ QCoreApplication a(argc, argv); char iname[128
阅读全文
posted @ 2017-11-23 00:24 第五
阅读(1059)
评论(0)
推荐(0)
2017年9月16日
阳历阴历转换
摘要: 获取阳历对应的阴历日期: /////////////////////////////////////////////////////////////////////////////////////////////////////stdcal.h: #ifndef __STDCAL_H#define
阅读全文
posted @ 2017-09-16 21:30 第五
阅读(482)
评论(0)
推荐(0)
getDat(char *val)获得某一天是这一年中的第几天
摘要: 获得某一天是这一年中的第几天如:./g 20117/2/132 #include <time.h>#include <string.h>#include <stdio.h> const char SPLIT1[2]="-";const char SPLIT2[2]="/";const char SP
阅读全文
posted @ 2017-09-16 21:15 第五
阅读(477)
评论(0)
推荐(0)
2017年8月14日
int位数的获取及int类型转char *
摘要: C语言获取int位数: int intlen(int num){/*参数:要获取长度的int类型数据返回值:返回长度*/ int tmpn=num; int len=1; while(tmpn/=10) len++; return len;} C语言int类型转char *类型: void into
阅读全文
posted @ 2017-08-14 17:45 第五
阅读(1157)
评论(0)
推荐(0)
2017年8月13日
以二进制形式输出char *数据
摘要: C语言数组/char * 以二进制形式输出: #include <stdio.h> #include <string.h> void strtobit(char *chr){/* chr是要以二进制形式输出的字符串的值*/ char *pchr=chr; int i,j; for(i=0;i<str
阅读全文
posted @ 2017-08-13 15:59 第五
阅读(1759)
评论(0)
推荐(0)
2017年8月12日
char类型变量二进制形式输出
摘要: C语言char类型(1字节)以二进制形式输出: #include<stdio.h> void chrtobit(char chr)/* chr是要以二进制形式输出的char值*/{ char tchr=chr; int i; for(i=7;i>=0;i--) { char tmpc=tchr; t
阅读全文
posted @ 2017-08-12 21:29 第五
阅读(2297)
评论(0)
推荐(1)
int类型变量以二进制形式输出
摘要: C语言int类型(4字节)以二进制形式输出: #include<stdio.h> void intobit(int num)/*num是要以二进制形式输出的int值将二进制数据逐个置1,在右移,依次实现逐个输出*/{ int tnum=num; int i; for(i=31;i>=0;i--) {
阅读全文
posted @ 2017-08-12 21:27 第五
阅读(2205)
评论(0)
推荐(1)
2017年8月11日
将PHP错误输入到日志文件中
摘要: (LAMP)禁止客户端浏览器显示PHP代码错误,将错误信息保存到日志文件中:在php配置文件中找到php.ini(如在Centos6.7下的/etc/php.ini中),设置 display_errors = Off //不允许在浏览器中显示错误信息 log_errors = On //将错误信息输
阅读全文
posted @ 2017-08-11 18:11 第五
阅读(750)
评论(0)
推荐(0)
2017年8月6日
php.ini配置文件
摘要: php.ini配置文件: engine=On;使PHP脚本语言引擎在Apache下有效。当设置engine=Off后不能解析PHP文件。 short_open_tag=Off;设置<? code ?>标志是否能被识别。设置short_open_tag=Off后不能识别在<? code ?>中的代码
阅读全文
posted @ 2017-08-06 21:22 第五
阅读(782)
评论(0)
推荐(0)
2017年8月4日
计算某天在此一年中的天数
摘要: 通过日期计算某一天是这一年中的第几天 /*val 要传入的日期字符串,如2017/8/4*/#include <time.h>#include <string.h>#include <stdio.h> const char SPLIT1[2]="-";const char SPLIT2[2]="/"
阅读全文
posted @ 2017-08-04 10:47 第五
阅读(186)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告