上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 95 下一页
摘要: int test=2147483647; 阅读全文
posted @ 2012-01-04 17:06 byfei 阅读(243) 评论(1) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#include <iostream>#include <set>#define MAXSIZE 100000using namespace std;set<int> OldRole12_31;set<int> OldRole1_1;set<int> OldRole1_2;void main(){FILE *fp12_31; FILE *fp1_1;FILE *fp1_2;if ( (fp12_31 = fopen( "d:\\ 阅读全文
posted @ 2012-01-03 20:33 byfei 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#define MAXSIZE 100void main(){ FILE *fp; if ( (fp = fopen( "d:\\OldRoleID.txt", "r" )) == NULL )printf("ERROR!\n"); int tmp[MAXSIZE]; int i; for ( i=0; i<MAXSIZE; i++ ) { tmp[i] = 0; } char chtmp[10000]; i=0; while ( 阅读全文
posted @ 2012-01-03 18:34 byfei 阅读(163) 评论(0) 推荐(0) 编辑
摘要: USE aidigame_data63;select * from role_data where role_name LIKE "%查询我"; 阅读全文
posted @ 2012-01-02 21:57 byfei 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 互联网购票官方网站为中国铁路客户服务中心网站(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 阅读(250) 评论(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 阅读(259) 评论(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 阅读(114) 评论(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 阅读(143) 评论(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 阅读(32) 评论(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 阅读(104) 评论(0) 推荐(0) 编辑
上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 95 下一页