How many lines of code you have written for a single program?

Answer Posted / george

If you want to make a simple Hello World program in a
Comand propt(Console) window. Here is its shortest's code:

#include "stdafx.h"
#include <iostream>
using namespace std;

int main()
{
cout << "Hello world" << endl;

cin.get();
return 0;
}
Check out my Youtube channel for 2 tutorials and see how
long can very very simple apps be!
http://www.youtube.com/user/GGames2009

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Discussion on error handling of C++ .

734


Discuss the possibilities related to the termination of a program before entering the mainq method?

628


What does the nocreate and noreplace flag ensure when they are used for opening a file?

761


When must you use a pointer rather than a reference?

683


Why #include is used?

698






What does obj stand for?

730


What is a class template in c++?

629


What is a class template?

693


What is iterator c++?

631


What is meaning of in c++?

762


. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?

2878


Which is most difficult programming language?

682


Difference between struct and class in terms of access modifier.

799


Is c++ low level?

694


What is vectorial capacity?

773