First C++ program

Publié le: 06 mars 2014
sur la chaîne: Gabriel Hasbun
592
2

In this occassion
We use Visual Studio 2008(works with former and latter versions as well)
to build a simple program that uses both the printf function from cstdio(standard C library, but
inherited to C++)
and cout from iostream(c++ standard library.)
We quickly explore the Visual Studio Wizard for a new project(by pressing ctrl+shift n) and choosing
a Windows console application. A new file is added to the project to review the process of project
managment(handled by Visual Studio). In other environments project management and build system is
created through "Make", an utility inherited from the Unix days.

Some mistakes are commited due to a syntax typos, and the console is used as a platform for
outputting the literal constant "7" and var(which as an rvalue, holds 7.)

C++ has inherited the C standard library, but if you want to include it as if it were in the C++
language standard, then one appends the "c" to the original C standard library header file name.

Notice that in C++ angle brackets("more than" and "less than" operators)are used after the #include
directive to include standard headers.


Sur cette page du site, vous pouvez voir la vidéo en ligne First C++ program durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Gabriel Hasbun 06 mars 2014, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 592 fois et il a aimé 2 téléspectateurs. Bon visionnage!