0
Can i write a code in this way??
#include<iostream.h> #include<conio.h> void main() { cout<<"hii frnds"; getch() ; }
1 ответ
+ 1
#include<iostream> // c++ supports iostream, no need for .h
#include<conio.h>
// use int as main function type, for program execution
int main() {
// make sure you specify for c++ where to find cout (std::cout, std::endl -- etc..)
std::cout << "hii frnds";
getch();
return 0;
}