标题:版主我很无聊啊
只看楼主
jokerbat
Rank: 2
等 级:论坛游民
帖 子:77
专家分:91
注 册:2012-2-1
结帖率:50%
已结贴  问题点数:20 回复次数:6 
版主我很无聊啊
#include <stdio.h>
void f(void);
int main(void)
{
void f1(void);
void f2(void);
printf("hello\n");
f();
f1();
return 0;
}
void f(void) {
printf("你好!!");
f2();
}
void f1(void) {
f();
printf("he\n");
}
void f2(void) {
printf("ok\n");
}

jokerskill的马甲
搜索更多相关主题的帖子: void include return hello 
2012-06-30 17:20
jokerbat
Rank: 2
等 级:论坛游民
帖 子:77
专家分:91
注 册:2012-2-1
得分:0 
#include <stdio.h>

int main(void)
{
int a = 20,b = 50;
printf("a = %d\t\tb = %d\n",a,b);
printf("\t请输入一个数这个数是给自动变量a的\n");
scanf("%d",&a);
printf("\t\t你输入了整数:%d\n",a);
b = a > b?a:b;
printf("\tb = %d\n",b);
return 0;
}
2012-06-30 18:06
jokerbat
Rank: 2
等 级:论坛游民
帖 子:77
专家分:91
注 册:2012-2-1
得分:0 
#include <stdio.h>

int main(void)
{
extern int x,y,z;
int a = 0,b = 1,c = 2;
printf("a = %d\nb = %d\nc = %d\n\n",a,b,c);
printf("x = %d\ny = %d\nz = %d\n",x,y,z);
return 0;
}
int x,y,z;
2012-06-30 18:16
jokerbat
Rank: 2
等 级:论坛游民
帖 子:77
专家分:91
注 册:2012-2-1
得分:0 
为什么没人来删呢???
2012-06-30 18:17
jokerbat
Rank: 2
等 级:论坛游民
帖 子:77
专家分:91
注 册:2012-2-1
得分:0 
#include <stdio.h>

int main(void)
{
int a = 20,b = 50,c;
printf("a = %d\t\tb = %d\n",a,b);
printf("\t请输入一个数这个数是给自动变量a的\n");
scanf("%d",&a);
printf("\t\t你输入了整数a的值是:%d\n",a);
c = a > b?a:b;
printf("\ta = %d\n",a);
printf("\tb = %d\n",b);
printf("\tc = %d\n",c);
return 0;
}
2012-06-30 18:32
jokerbat
Rank: 2
等 级:论坛游民
帖 子:77
专家分:91
注 册:2012-2-1
得分:0 
#include <stdio.h>

int main()
{
int a = 1,b,c,f(int a);
for ( b = 0; b < 5; ++b )
c = f(a);
printf("c = %d\n",c);
return 0;
}
int f(int a) {
printf("a = %d\n",a);
static int s;
printf("s = %d\n",s);
a = s = s + 1;
return (a);
}
2012-06-30 18:34
jokerskill
Rank: 7Rank: 7Rank: 7
等 级:黑侠
帖 子:392
专家分:554
注 册:2012-3-4
得分:20 
DFG
2012-07-02 11:33



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-372557-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.069159 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved