English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i was told that it was created in VisualBasic.net but i dont know c an you help me please

2006-12-16 07:31:24 · 3 answers · asked by love100 2 in Computers & Internet Programming & Design

3 answers

It is one of the simplest computer programs.
If you have a program called visual basic in which you can write programs in C++, here is the code:

#include

int main()
{
cout<<"Hello world\endl";
return 0;
}

The "/endl" means end line.

2006-12-16 07:39:04 · answer #1 · answered by Anna 3 · 0 0

First off, Visual Basic and C (C++) arent related. Visual Basic is, well the Basic Programming language, and C is the C programming Language (Think English to French, similar, but different)

The hello world program is the traditional 'first program' of any language. Its mean't to show you how to write in that language and get a feeling for how to compile and run the application.

In C, the hello world program is as follows:

#include
int main()
{
printf("Hello World!\n");
return 0;
}

Using VisualC, you would make a new project, and put this into a file called 'main.c' then hit F7 (compile and build) and then run the program.

However, the text will display too fast, so you'll need to pause it..

inserting..
pause();
before
return 0;

Will cause the program to stop until a key is pressed, allowing you to run it from VisualC.

I highly suggest before you begin programming to pick up a few books on the language, as well as Pick a language to learn. (I suggest C (not C++) for various reasons, but if you learn C, most other languages will come easy to you)

Sams Teach Yourself series are a great place to start (the 21 days versions). Look around on amazon for beggining C programming books, and check out your local library, they will almost always have a few books on C.

2006-12-16 15:43:53 · answer #2 · answered by cyhawkx 2 · 1 0

LOL. "Hello World Program" is just a paraphrase for a very
primitive program. Usually one that just outputs "Hello World"
and besides that does nothing useful whatsoever. It's nothing
more than a really simple programming example.

2006-12-16 15:39:43 · answer #3 · answered by Alex S 5 · 0 0

fedest.com, questions and answers