- 博客(4)
- 资源 (7)
- 收藏
- 关注
原创 convert decimal to binary
#include using namespace std;void decimal_binary(int x){ int temp=x,size=0; while (temp) { size++; temp=temp/2; } /*if(x { siz
2008-09-27 21:13:00 1334 3
原创 locker doors问题
locker doors锁门的问题(C++):Description There are n lockers in a hallway numbered sequentially from 1 to n. Initially, all the locker doors are closed. You make n passes by the lockers, each time star
2008-09-26 16:28:00 2879 2
原创 Euclid_s Game实现(c++)欧基里得游戏
Euclid_s Game实现(c++)欧基里得游戏:#include bool Euclid_game(int num_a,int num_b)//求得两个数胜负状态,返回true,为胜;返回 //false为负 { if(num_a/num_b return !(Euclid_game(num_b,num_a-num_b));
2008-09-26 16:07:00 1230
原创 convert decimal number to binary
实现十进制转换成二进制算法实现(C++):#include void decimal_binary(int n)//将传过来的n的值,在dos console输出成而进制形式 { if(n/2==0) {coutreturn; } else {decimal_binary(n/2);cout}int main(){ int x
2008-09-26 15:50:00 1100
mscomm控件-支持256串口
2013-05-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人