摘要: int i,a,b,c;for(i=100;i<=999;i++){a=i/100;b=(i%100)/10;c=i%10;if(a*a*a+b*b*b+c*c*c==i)printf("%d\n",i);}return 0; 阅读全文
posted @ 2012-09-11 16:06 星博 阅读(80) 评论(0) 推荐(0)
摘要: int math(int n){ int i ; if(n==1)i=1; else i=math(n-1)*n; return (i);}int main(){ printf("%d\n",math(5));} 阅读全文
posted @ 2012-09-11 15:41 星博 阅读(101) 评论(0) 推荐(0)
摘要: create proc proc_insertCheck(@GoodsID bigint,@StoreName varchar(100),@GoodsName varchar (50),@GoodsUnit char (8),@CheckNum bigint,@PALNum bigint,@CheckPeople varchar (20),@CheckRemark varchar (1000))asif exists(select * from tb_Check where GoodsID=@GoodsID)begin return 100endelsebegin insert into tb 阅读全文
posted @ 2012-09-11 15:37 星博 阅读(317) 评论(0) 推荐(0)
摘要: for (int i = 0; i < numbers.Length - 1; i++){ for (int j = 0; j < numbers.Length - 1 - i; j++){if (numbers[j] > numbers[j + 1]){ int temp = numbers[j];numbers[j] = numbers[j + 1]; numbers[j + 1] = temp;}}} 阅读全文
posted @ 2012-09-11 15:14 星博 阅读(120) 评论(0) 推荐(0)