代码改变世界

Sliding Photograph Galleries

2011-07-25 14:24 by youxin, 172 阅读, 0 推荐, 收藏, 编辑
摘要:InformationThis gallery is my simplest yet. It is just an unordered list of images that are normally compressed vertically (reduction 8:1). When you hover over one of these compressed images it expands to full size. It is based on my sliding menu system and adapted to use images. No thumbnails are r 阅读全文

基数等比,确定进制

2011-05-22 19:57 by youxin, 409 阅读, 0 推荐, 收藏, 编辑
摘要:问题描述6*9 = 42 对于十进制来说是错误的,但是对于13进制来说是正确的。即, 6(13) * 9(13) = 42(13),而 42(13) = 4 * 131 + 2 * 130 = 54(10)。你的任务是写一段程序读入三个整数p、q和 r,然后确定一个进制 B(2 2 #include 3 4 long b2ten(char*x,int b){ 5 int ret=0,i; 6 int len=strlen(x); 7 for(i=0;i=b) return-1;10 ret*=b;11 ret+=x[i]-'0';12 ... 阅读全文
上一页 1 ··· 266 267 268 269 270