0

Is this the correct program?? If so why it is not working?? #include<iostream.h> #include<conio.h> void main() { clrscr(); cout<<"hello world! "; getch(); }

11th Jul 2016, 3:47 PM
sherry
6 odpowiedzi
+ 1
your code is correct its showing error because you may be using it in new compilers (or here). you dont have to write '.h' after the header file name and u need to use the statement using namespace std; in the new compilers( or here)
11th Jul 2016, 3:58 PM
Mayank
+ 1
.h is used in c programming. e.g.; #include<studio.h> (in c programming) and #include<iostream>(in c++ programming). (I think) and clrscr meant clear the screen.. and many compiler like dev c++ not taken clrscr function into compiler..
11th Jul 2016, 5:31 PM
meherDev
meherDev - avatar
0
it is correct
11th Jul 2016, 3:52 PM
Aastha Aneja
Aastha Aneja - avatar
0
Its not working here. Why so??
11th Jul 2016, 3:57 PM
sherry
0
hlo shery pls remove the clrscr from the code and run it surely u will get the output
11th Jul 2016, 5:13 PM
Navanee
Navanee - avatar
0
Thnks
11th Jul 2016, 6:24 PM
sherry