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

Define the process of handling in case of destructor failure?

759


What is constructor and destructor in c++?

840


Please explain the reference variable in c++?

778


What is a wchar_t in c++?

794


What is split a string in c++?

890






Write a code/algo to find the frequency of each element in an array?

806


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

869


Is arr and &arr are same expression for an array?

780


What type of question are asked in GE code writing test based on c++ data structures and pointers?

3690


Write a C++ Program to check whether a number is prime number or not?

839


What are the 3 levels of programming languages?

751


What is a storage class used in c++?

795


What is difference between malloc()/free() and new/delete?

823


What is the benefit of learning c++?

707


What is an inclusion guard?

828