Full Transcript

LESSON 1: C++ SYNTAX CODE::BLOCKS - - It is a free, open-source IDE that was developed in C++ using wxWidgets as a GUI toolkit. It is an extensible and highly customizable IDE that performs on all platforms including Linux, Mac and Windows. Programming Languages Supported: C, C++, Fortran. PROGRAMMI...

LESSON 1: C++ SYNTAX CODE::BLOCKS - - It is a free, open-source IDE that was developed in C++ using wxWidgets as a GUI toolkit. It is an extensible and highly customizable IDE that performs on all platforms including Linux, Mac and Windows. Programming Languages Supported: C, C++, Fortran. PROGRAMMING LANGUAGES YOU SHOULD LEARN TO BECOME: 1) WEB DEVELOPER PHP, C#, JS, JAVA, PYTHON, RUBY 2) GAME DEVELOPER JAVA, C++, PYTHON, JS, RUBY, C, C# 3) DATA ANALYSIS R, MATLAB, JAVA, PYTHON 4) DESKTOP DEVELOPER JAVA, C#, C++, PYTHON 5) EMBEDDED SYSTEM PROGRAM C, PYTHON, C++ 6) MOBILE APPS DEVELOPMENT KOTLIN, DART, OBJECTIVE-C, JAVA, PYTHON, JS, SWIFT, C# PROGRAMMING LANGUAGE CREATORS 1) 2) 3) 4) 5) 6) 7) 8) GUIDO VAN ROSSUM: Python JAMES GOSLING: Java DENNIS RITCHIE: C BRENDAN EICH: JavaScript BJORNE STROUSTRUP: C++ RASMUS LERDORF: PHP YUKIHIRO MATSUMOTO: Ruby JOHN MACCARTHY: Lisp #include - - ❖ The C++ compiler ignores blank lines. ❖ Blank lines serve to improve the code's readability and structure. ❖ Whitespace, such as spaces, tabs, and newlines, is also ignored, although it is used to enhance the program's visual attractiveness using namespace std; - - - is a general-purpose programming language is used to create computer programs. Anything from art applications, music players and even video games. derived from C, and is largely based on it. C++ PROGRAM - Tells the compiler to use the std (standard) namespace. The std namespace includes features of the C++ Standard Library. Int main () - LESSON 2: C++ BASIC CONCEPTS C++ Is a header file library that let us work with input and output objects. Add functionality to C++ program. The number sign (#) at the beginning of a line targets the compiler's pre-processor. In this case, #include tells the pre-processor to include the header. The header defines the standard stream objects that input and output data. - Called function. Any codes inside its curly brackets will be executed. Program execution begins with the main function, int main (). The entry point of every C++ program is main (), irrespective of what the program does. Curly Brackets {} - Indicate the beginning and end of a function, which can also be called the function's body. Block - is a set of logically connected statements, surrounded by opening and closing curly braces. - You can have multiple statements on a single line, as long as you remember to end each statement with a semicolon. Failing to do so will result in an error. collection of commands or statements. HELLO WORLD PROGRAM Return Statement - The last instruction in the program - Return 0; - Terminates the main () function and causes it to return the value 0 to the calling process. A non-zero value (usually of 1) signals abnormal termination. Ends the main program. Cout [SEE-OUT] - An object used together with the insertion operator (