TricicloRojo.com Home | Contact
Corner 1 www.triciclorojo.com The biggest webpage on articles!!! Help for your work, job, homework, earn more money by being better, learn fast, online learning. Corner 2 www.triciclorojo.com

Home > Programming > Hello World in C/C++ (Viewed 3925 times)
Navigation of TricicloRojo.com Most Popular Navigation of TricicloRojo.com
 Example of Verb Phrases eg
 Example of Kinds of Nouns
 Example of Nouns
 Example of Complete and Simple Predicate eg
 Example of Pronouns
 Example of Four Kinds of Sentences eg
 Example of Prepositional Phrases as Adverbs eg
 Example of Prepositional Phrases as Adjectives eg
 Example of Prepositions eg
 Example of Conjunctions eg

Navigation of TricicloRojo.com Recently Added Navigation of TricicloRojo.com
 Example of Compounds Subjects and Verbs eg
 Example of Direct Objects eg
 Example of Complete and Simple Predicate eg
 Example of Complete and Simple Subjects eg
 Example of Four Kinds of Sentences eg
 Example of Prepositional Phrases as Adverbs eg
 Example of Prepositional Phrases as Adjectives eg
 Ten Ways you can boost your score SAT
 Example of Prepositions eg
 Example of Conjunctions eg

Navigation of TricicloRojo.com Navigation: Navigation of TricicloRojo.com
 Business (1)
 English Grammar (19)
 Programming (1)
 SAT (1)

Hello World in C/C++

Here are two examples of programming. Today we'll see how to program a Hello World in C and C++

There aren't many differences between the examples, cause they're practically the same, but of course, the first example, the one in C, will work with a C++ compiler, but the C++ one won't work with a C compiler.

Hello World in C

Código:

#include <stdlib.h>

int main(int argc, char *argv[]) {
            printf("He");
            return 0;
}

And now the example of Hello World in C++, it's practically the same, not much difference, but instead of using the stdlib.h we use the iostream library.

Hello World in C++

Código:

#include <iostream>
using namespace std;

int main(int argc, char *argv[]) {
            std::cout << "Hello World" << endl;
            return 0;
}


Keywords: Hello World in C/C++ , Hello World in C/C++ , programming, ide, visual studio, hello, world,
Date: 19-03-2010 4:05:14 Author: Luffy Views: 3925

Related articles...

Hello World in C/C++

0 comments in Hello World in C/C++

No comments.

Post a comment in Hello World in C/C++

Name:(*)
Web:
Email:(*)
Captcha
Comment:(*)  
Your comment will not be published inmediately. It'll be reviewed by the administrators.
© 2010 www.triciclorojo.com Sitemap