个人中心
我的提问
我的回答
今日任务
我的设置
退出
文档资料
电脑网络
体育运动
医疗健康
游戏
社会民生
文化艺术
电子数码
娱乐休闲
商业理财
教育科学
生活
烦恼
资源共享
其它
歪果仁看中国
爱问日报
精选问答
爱问教育
爱问公益
爱问法律
你在什么界面下编程的,TurboC下我倒是会编。不过什么叫做函数和 过程形式?难道是直接和间接出结果?
1个回答
是你中间那个部分编写错了
函数头我就不和你写了! int a[20],b[20],i=0,j=0; while(a[i]!='\0') { i++; } while(b[i]!='\0') { a[i++]=b[i++]; } a[i]='\0'; printf("%s",a); 就可以了!!
#include #include #include #define PI 3.1415926 using namespace std; float BoxVolume(float length = 1.0, float width = 1.0, float height = 1.0) { r...
#include using namespace std; void main() { int sushu(int a); int i; for(i=1;i<=200;i++) if(fun(i)) //函数调用 cout< C 程序设计 2个回答
2个回答
main() { char x; scanf("%c",&x); if(x>='a' && x<='z') x-=32; printf("%c\n",x); }
#include using namespace std;template T Max(T *x, int n){ T m = *x ; int i; for(i = 1; i < n; i , x ) if(m < *x) m = *x; return m;}int main(){ ...
判断是一个数是否为素数只需这个数除以小余他的数 能除尽就不是素数 否则为素数 求一个给定整数区间 返回调用刚才的函数就行了
void sort(int *p, int n){ int i,j; for(i=0;ip[j]){ int q=p[i]; p[i]=p[j]; p[j]=q; } } } }
是要打印时间? system("time"); 如果是要在程序中获取的话,可以类似这样: typedef union { struct { int16 year; int8 month; int8 mday; int8 hour; int8 minute; int8 ...
#include #include #include using namespace std; float BoxVolume(float length = 1.0, float width = 1.0, float height = 1.0) { return length * width ...
首先请用c开发一个调用系统函数的dll,然后用java调用该dll。
template T max(const T1 &a, const T2 &b) { return (a > b ? a : b); }