Basic question of c++

What is the basic structure of a C++ program?

#include<iostream.h> //basic structure
#include<conio.h>
int main()
{
cout<<"Hello!";
return 0;
}
If anyone have an better concept then kindly share with us.
I like the C++ style not the C style ;)

1
2
3
4
5
6
#include <iostream>

int main() {
  std::cout << "Hello!";
  return 0;
}
what is it you want to know? Your code example looks like it came from the 90s and would not compile on a strict modern compiler. Forgive me, but we have had clickbait problems with questions like these, so I will await a response that looks like it was not bot written before saying more.
Last edited on
Topic archived. No new replies allowed.