初学C程序
来源:互联网 发布:手机必备实用软件 编辑:程序博客网 时间:2024/06/07 22:24
1、
#include<stdio.h>
int main (void){
int dogs;
printf("How many dogs do you have?\n");
scanf("%d",&dogs);
printf("So you have %d dog(s)!\n",dogs);
return 0;
}
2、
#include <stdio.h>
void butler(void);
int main(void)
{
printf("I will summon the butler function.\n");
butler();
printf("Yes.Bring me some tea and writeable CD-ROMS.\n");
return 0;
}
void butler(void) //函数定义的开始
{
printf("You rang,sir?\n");
}
3、
#include <stdio.h>
int main(void)
{
char ch;
printf("Please enter a character.\n");
scanf("%c",&ch);
printf("The code for %c is %d.\n",ch,ch);
return 0;
}
4、
#include <stdio.h>
int main(void)
{
unsigned int un=3000000000;
short end=200;
long big=65537;long long verybig=12345678908642;
printf("un=%u and not %d\n",un,un);
printf("end=%hd and %d\n",end,end);
printf("big=%1d and not %hd\n",big,big);
return 0;
}
- 初学C程序
- 初学c程序的感想
- 初学C的几个小程序之一
- 初学c语言所编的程序
- 初学C基础编写猜拳游戏程序
- 初学C#
- 初学C
- 初学C
- 初学C
- 初学C
- 初学C
- 初学C
- 初学C
- 初学C
- 初学C
- 初学C
- 初学C语言必须掌握的基础小程序
- 初学Qt之--在C++程序中使用C函数
- 我的产品开发之旅(5) - 使用Spring MVC搭建API平台
- javaee中ssh配置
- Gradle 配置技巧
- CString与double互相转化
- 机器学习:方差Variance与偏差Bias
- 初学C程序
- Android 跑马灯 文字滚动
- 1053
- 深入理解Java:SimpleDateFormat安全的时间格式化
- 温故而知新之Java多线程编程(一)
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- 1103
- [平面图 贪心 || 最大流] BZOJ 2939 [Poi2000]滑雪 Skiers
- Netty系列之Netty高性能之道