12 2011 档案

摘要:互联网购票官方网站为中国铁路客户服务中心网站(www.12306.cn),只对注册用户提供网上购买火车票服务。网站每日5:00--23:00提供购票服务。电话订票统一号码为95105105, 自2013年1月1日起,通过电话预订车票的旅客可凭订票时乘车人有效身份证件,到全国任一车站窗口或代售点换取已订车票,实现电话订票全国通取。同时,电话订票的取票时间延长12个小时,即:当日12:00前已订车票于第二日12:00前取有效;当日12:00后已订车票于第二日24:00前取有效。自2013年1月1日起,互联网、电话订票预订第12天车票的起售时间由原来4个节点调整为10个节点,即8:00~18:00( 阅读全文
posted @ 2011-12-28 18:44 byfei 阅读(255) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <linux/types.h>#include <string.h>#include <sys/socket.h>#include <netinet/in.h>#include <net/if.h>#include <netdb.h>#include <arpa/inet.h>#include <sys/ioctl.h>#include 阅读全文
posted @ 2011-12-26 18:37 byfei 阅读(262) 评论(0) 推荐(0) 编辑
摘要:#include <iostream>using namespace std;int GetIntCount(){int n=255; char Answer[8*sizeof(int)+1]; static int LEN=8*sizeof(int);for (int i = LEN - 1; i >= 0; i--, n >>= 1)Answer[i] = (01 & n) + '0';Answer[LEN] = '\0';string Str = Answer;int nCount=0;for(int i=0;i< 阅读全文
posted @ 2011-12-13 17:36 byfei 阅读(119) 评论(0) 推荐(0) 编辑
摘要:#include <iostream>using namespace std;char *ok(int n,char *b) { static int LEN=8*sizeof(int); for(int i=LEN-1;i>=0;i--,n>>=1) b[i]=(01&n)+'0'; b[LEN]='\0'; return b; } int GetIntCount(string b){int nCount=0;static int LEN=8*sizeof(int); for(int i=0;i<LEN;i++){i 阅读全文
posted @ 2011-12-13 14:56 byfei 阅读(144) 评论(0) 推荐(0) 编辑
摘要:1.二进制转十进制 #include #include void main(){ long int i,len,sum=0; char str[30]; printf("\n输入二进制数:\n"); gets(str); len=strlen(str); ... 阅读全文
posted @ 2011-12-06 12:48 byfei 阅读(35) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h>#include <string.h>void main(){long int i,len,sum=0;char str[30];printf("\n输入二进制数:\n");gets(str);len=strlen(str);for(i=len-1;i>=0;i--)sum+=(long)(str[i]-'0')<<(len-1-i);printf("%ld\n",sum);getchar();} 阅读全文
posted @ 2011-12-06 12:47 byfei 阅读(111) 评论(0) 推荐(0) 编辑