| toseefasim (14) | |
|
#include <iostream.h> #include <conio.h> //#include <stdlib.h> main() { void diplay (void); clrscr(); display(); cout<<"ok"; //getch(); } void display (void) { cout<<"It is my first Function program"<<endl; } | |
|
|
|
| simpleasy (28) | |
| Seems like a homework problem... Why don't you first try for yourself? | |
|
|
|
| vlad from moscow (3662) | |
|
You declared function as void diplay (void); But called functiobn display(); That is their names do not coinside. I hope that your old compiler allows to omit return types of functions. Otherwise you shall declare main as int main() | |
|
Last edited on
|
|
| mausy131 (11) | |||
|
You misspelled display in line 7. Watch this youtube video about functions and please learn some more C++ http://www.youtube.com/watch?v=endPDlcvoYM&list=UUdbHDXYdsHkqpyAt9Z4_iCw&index=4 Fixed code:
| |||
|
Last edited on
|
|||
| toseefasim (14) | |
| Bundle of Thanks Great work | |
|
|
|
| mausy131 (11) | |
| You're welcome (: | |
|
|
|