English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

you didn't include the correct standard header file that tells the compiler what the printf function is supposed to look like. Until the compiler has seen that, it doesn't know what to make of printf.

I think you need, at the start of your file,
#include
or maybe
#include
the latter is for C++, the former for C

these header files contain the prototypes of all the normal input output functions. There are other headers for other functions.

2006-10-13 22:49:10 · answer #1 · answered by wild_eep 6 · 0 0

you should write #include at the start of the program

for more information check out this link

http://www.cplusplus.com/ref/cstdio/printf.html

2006-10-14 05:47:13 · answer #2 · answered by Anonymous · 0 0

Thanks....

2014-11-23 22:58:10 · answer #3 · answered by rahulnpatelendhal 1 · 0 0

Select ‘Options’ menu and then select ‘Compiler | C++
Options’. In the dialog box that pops up, select ‘CPP always’
in the ‘Use C++ Compiler’ options.
Again select ‘Options’ menu and then select ‘Environment |
Editor’. Make sure that the default extension is ‘C’ rather than
‘CPP’.

2014-06-10 03:28:29 · answer #4 · answered by Gaurav 1 · 0 0

fedest.com, questions and answers