刚开始学习谭浩强C语言,记录一下课后的程序题和·一些思考。
用的VS2013做的,其中使用scanf函数时,运行时会报错,可以根据系统提示使用scanf_s函数,或在第一行写上#define _CRT_SECURE_NO_WARNINGS 1
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
//第四题
//printf("hello world\n");
//第五题
//printf("*****\n");
//printf(" *****\n");
//printf(" *****\n");
//printf(" *****\n");
//第六题
/*int a = 0;
int b = 0;
int c = 0;
int max = 0;
printf("请输入三个整数\n");
scanf("%d,%d,%d", &a, &b, &c);
if (max < a)
max = a;
if (max < b)
max = b;
if (max < c)
max = c;
printf("最大的数为%d\n",max);*/
return 0;
}
第一章的题目比较简单。