Skip to content

If you're new to programming, this tutorial will show you how to program from scratch using c++ programming language using a simple example with comprehensive explanations.

License

Notifications You must be signed in to change notification settings

leloteso/C-plusplus-programming-for-beginners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-plusplus-programming-for-beginners

helloworld.cpp

If you're new to programming, this tutorial will show you how to program from scratch using c++ programming language using a simple example with comprehensive explanations.

Note:

  1. Any line that starts with /* and ends with */ are comments, it doesn't make any changes to your code. Allows the programmer to add a description about the code. It's also called multiline comment.
  2. Anything after double forward slash or // to the end of the line is also considered to be a single line comment of the code.

Line 6 defines the scope of the identifiers used in the program.

The iostream header file should be included at the beginning of all programs that use input/output statements.

This code contains only one function, main ().

Every c++ program must have main() function.

As usual, execution begins at main() function.

The statement on line 8 causes the string in quotation marks to be displayed on the screen.

In c++, every main function should end with a return(0) statement, otherwise a warning or an error can occur.

Reading-user-input.cpp

About

If you're new to programming, this tutorial will show you how to program from scratch using c++ programming language using a simple example with comprehensive explanations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages