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

What is pure virtual function? Or what is abstract class?

582


Can a list of string be stored within a two dimensional array?

569


Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D

3047


Who was the creator of c++?

555


Why was c++ made?

648






What is data abstraction? How is it different from data encapsulation?

526


Will a catch statement catch a derived exception if it is looking for the base class?

554


Array base access faster or pointer base access is faster?

1809


What is class and structure in c++?

553


Why can templates only be implemented in the header file?

651


Is c++ used anymore?

580


What do you mean by overhead in c++?

569


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

597


What are mutator methods in c++?

641


What is wrapper class in c++?

624