有关C 语言学习的疑问?初学者。

来源:百度知道 编辑:UC知道 时间:2024/05/08 21:01:31
输入程序:
#include "stdio.h"
main()
{
prinft("This is a c program.\n");
}
点击运行按纽!
电脑显示:
---------------------------
Microsoft Visual C++
---------------------------
E:\visualc++6.0\zhu jian qiu\Debug\1号文件.exe

This file does not exist. Do you want to build it?
---------------------------
是(Y) 否(N)
---------------------------
电脑胗断错误为:
----------------Configuration: 1号文件 - Win32 Debug--------------------
Compiling...
1号文件.cpp
E:\visualc++6.0\zhu jian qiu\1号文件.cpp(4) : error C2065: 'prinft' : undeclared identifier
执行 cl.exe 时出错.

1号文件.exe - 1 error(s), 0 warning(s)

printf 你写成prinft了 仔细点吧

输出函数写错了,是printf(“”);

首先你明得明白它是用来干什么!在学习中一定要好好学算法的他是整个程序的灵魂!要经常练习语言是一种很有实践性的操作!