- 博客(4)
- 资源 (5)
- 收藏
- 关注
原创 乱七八糟
<br /><br />#include<iostream><br />#include<sstream><br />#include<vector><br />#include<cstdlib><br />#include<fstream><br />#include<cmath><br />#include<sstream><br />using namespace std;<br />vector<string> getEventValue(const string &str,const string
2010-10-25 22:17:00 219
原创 Linux常用C函数-日期时间篇
<br />日期时间篇<br />asctime<br />ctime<br />gettimeofday<br />gmtime<br />localtime<br />mktime<br />settimeofday<br />time<br />asctime(将时间和日期以字符串格式表示)相关函数time,ctime,gmtime,localtime<br />表头文件#include<time.h><br />定义函数char * asctime(const struct tm * timeptr
2010-07-22 00:16:00 249
原创 date
<br /><br />使用方式 : <br /> <br />date [-u] [-d datestr] [-s datestr] [--utc] [--universal] [--date=datestr] [--set=datestr] [--help] [--version] [+FORMAT] [MMDDhhmm[[CC]YY][.ss]] <br /> <br />说明 : <br /> <br />date 可以用来显示或设定系统的日期与时间,在显示方面,使用者可以设定欲显示的格式,格式设定
2010-06-27 23:55:00 259
原创 linux 设置系统语言
在Linux中通过locale来设置程序运行的不同语言环境,locale由ANSI C提供支持。locale的命名规则为_.,如zh_CN.UTF-8,zh代表中文,CN代表大陆地区,UTF-8表示字符集修改 /etc/sysconfig/i18n 文件,如LANG="en_US.UTF-8",xwindow会显示英文界面,LANG="zh_CN.GB18030",xwindow会显示中文界面。 还有一种方法 cp /etc/sysconfig/i18n $HOME/.i18n 修改 $HOME/.i18n
2010-06-27 21:11:00 651
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人