- 4
C program
#include<stdio.h> #include<conio.h> Void main() { clrscr(); print("Hello world"); getch(); }
8 odpowiedzi
+ 1
Kripa Shankar. Saroj
C is a case sensitive language, void and Void are different, use "void" not "Void" and try to avoid using turbo c++, you can use any other modern compiler like Code blocks, DevC++, VS code etc
+ 1
Martin Taylor , oh ok, not sure about full functionality I just tried things like clear screen and it seemed to work for me. Some functions might print garbage.....
+ 1
"there are other standard libraries such as
#include <curses.h>"
I'm pretty sure ncurses(old name)/curses too, is a non-standard.
0
What exactly is your question???
0
Kripa Shankar. Saroj Do you know what a question is?
0
Kripa Shankar. Saroj ,Alright conio.h is incompatible with most modern compilers, and of course you can't use it on Sololearn there are other standard libraries such as
#include <curses.h> that will give you conio.h functionality and more...(which btw works on sololearn)
0
rupali , yeah right I didn't even notice that void)) also main function must be int and return either 1 or 0...
0
Rellot's screwdriver ,Curses.h is standard in most compilers. It is not standard in some versions of GCC, but it is mostly standard...
And so is ncurses.h