上一页 1 ··· 8 9 10 11 12
摘要: 赌徒赢得机会有多大? public class Gambler { public static void main(String[] args) { // Run T experiments that start with $stake and terminate on $0 and $goal i 阅读全文
posted @ 2016-02-19 22:17 hopskin1 阅读(549) 评论(0) 推荐(0) 编辑
摘要: public class Binary { public static void main(String[] args) { // Print binary representation of N. int N = Integer.parseInt(args[0]); int v = 1; whil 阅读全文
posted @ 2016-02-19 21:58 hopskin1 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 问题2. 什么时候执行构造函数和析构函数 22:59:402015-07-22做了一个实验:#include class Object{public: Object(){ printf("Create Object\n"); }; ~Object(){ ... 阅读全文
posted @ 2015-07-22 23:04 hopskin1 阅读(145) 评论(0) 推荐(0) 编辑
摘要: # coding=GBKscore = 90if score >= 80: print("好")elif score >= 60: print("及格")else: print("差")win7 64位PC,用#coding=utf-8还是乱码 阅读全文
posted @ 2015-07-22 18:39 hopskin1 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1. post-increment and pre-increment 的区别来源:http://www.c4learn.com/c-programming/c-increment-operator/#includevoid main(){int a,b,x=10,y=10;a = x++;b = ... 阅读全文
posted @ 2015-07-19 15:19 hopskin1 阅读(506) 评论(0) 推荐(0) 编辑
摘要: #include#define MAXLINELEN 1000int power(int base,int n){ int i=0; int answer=1; for(i=0;i='0'&&c='a'&&c='A'&&c<='Z') c=c-'A'+10; return c;}/**/int ... 阅读全文
posted @ 2015-02-26 13:58 hopskin1 阅读(532) 评论(3) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12