01-15-2016, 11:37 AM
hello
first of all, that is int main() or int main(int argc, char** argv) or int main(int argc, char* argv[])
void main() give's error boath in C and C++
but if you do not type return 0; you will get just a warning
second, you must do
instead of including iostream.h
now, this is the hello world application which every programmer write's
now, you can omit using namespace std;
but instead of that you must write std:: cout <<"hello world\n";
note: \n is a new line
and, every text must be inside quotations
thanks
first of all, that is int main() or int main(int argc, char** argv) or int main(int argc, char* argv[])
void main() give's error boath in C and C++
but if you do not type return 0; you will get just a warning
second, you must do
Code: (Select All)
#include <iostream>
now, this is the hello world application which every programmer write's
Code: (Select All)
#include <iostream>
using namespace std;
int main()
{
cout << "hello world!\n";
return 0;
}
but instead of that you must write std:: cout <<"hello world\n";
note: \n is a new line
and, every text must be inside quotations
thanks