Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - INT 1
Search - INT 1 - List
华为考题:int A[nSize],其中隐藏着若干0,其余非0整数,写一个函数int Func(int* A, int nSize),使A把0移至后面,非0整数移至 数组前面并保持有序,返回值为原数据中第一个元素为0的下标。
Date : 2010-12-03 Size : 1.09kb User : battlefire

求一分数列的和 #include<stdio.h> #include <math.h> void main() { float e=0; int a,b,i=0; a=2;b=1; while(i<20) { e=e+a/b; a=a+b; b=a-b; i++; } printf("前20项之和为%f\n",e); }
Date : 2013-12-02 Size : 188byte User : xiaoyidexiaoxin
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.