码迷,mamicode.com
首页 >  
搜索关键字:ss    ( 3412个结果
C#利用NPOI导出Excel类(简单版)
代码:using System.Data;using System.IO;using NPOI.HSSF.UserModel;using NPOI.SS.UserModel;namespace ahwildlife.Utils{ /// /// Excel工具类 /// 利用NP...
分类:Windows程序   时间:2014-10-13 17:51:19    阅读次数:278
c++ int to hex string
#include <iostream> #include <sstream> int main() { int i = 123; std::string temp; std::stringstream ss; ss << std::hex << i; ss >> temp; std::cout << temp << std::endl; return 0; }...
分类:编程语言   时间:2014-10-13 14:26:09    阅读次数:211
uva514(trail)(模拟栈)
1 //#define LOCAL 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int maxn=1005; 8 stacktrain; 9 int ss[maxn];10 int main(....
分类:其他好文   时间:2014-10-13 08:41:39    阅读次数:152
启用Nginx状态监控
1.?编译Nginx添加http_stub_status_module 编译Nginx的时候添加参数:--with-http_stub_status_module cd nginx-{version}/ ./configure --prefix=/opt/nginx --with-http_stub_status_module --with-http_ss...
分类:其他好文   时间:2014-10-12 16:55:38    阅读次数:287
Java笔记17:JAVA常用函数
***根据传入的格式获取日期**@paramformat*如:YYYYMMDD||MM/dd/yyyy,hh:mm:ss*@return字符串的日期*/publicStringgetSysDate(Stringformat){StringdateStr="";try{Formatformatter;Datedate=newDate();formatter=newSimpleDateFormat(format);dateStr=formatter.format(date);}..
分类:编程语言   时间:2014-10-12 03:24:08    阅读次数:305
tcp连接状态查看
linux常用查看tcp状态工具netstat和ss,这两个工具查看时都有1个Recv-Q和Send-Q解释如下:对应处于Listen状态的套接字:Recv-Q表示已建立连接队列中连接个数(等待accept), Send-Q标识backlog大小(ubuntu12.04上测试时发现Recv-Q一般最...
分类:其他好文   时间:2014-10-11 15:25:55    阅读次数:151
日期和时间格式化
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");  这一行最重要,它确立了转换的格式,yyyy是完整的西元年,MM是月份,dd是日期,HH:mm:ss是时分秒。 为什麽有的格式大写,有的格式小写,那是怕避免混淆,例如MM是月份,mm是分;HH是24小时制,而hh是12小时制...
分类:其他好文   时间:2014-10-11 10:46:45    阅读次数:177
linux-0.11内核 任务的堆栈切换
一直缠绕的两个问题:怎样标识的内核栈与用户栈?如何在内核态堆栈与用户态堆栈之间切换? 用户态堆栈指针:ss和esp; 内核态堆栈指针:ss0和esp0; 二者均位于任务的tss结构中。这里的任务是指除任务0和1之外的普通任务。 CPU进行用户态堆栈到内核态堆栈的切换操作时,CPU会从当前任务的任务状...
分类:系统相关   时间:2014-10-10 23:09:25    阅读次数:252
Linux下date命令,格式化输出,时间设置
date命令的帮助信息 ?[root@localhost ?source]# date --help 用法:date [选项]... [+格式]  或:date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]] 以给定的格式显示当前时间,或是设置系统日期。 ? -d...
分类:系统相关   时间:2014-10-10 21:24:44    阅读次数:309
equal与== 个人笔记
首先看看下面的图,看清楚了图咱们要说的知识点也就说说清楚了一半 int a=10; String b="ss"; String c=new String("kkk"); Person d=new Person("dlf"); String e=new String("kkk"); String f="ss"; jvm中有堆heap,栈stack,常量池constant...
分类:其他好文   时间:2014-10-10 19:14:44    阅读次数:219
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!