Tag Archives: scratch

LEARN C++: Basic Comment Section for All programs

NOTE: You may download codes and extra source material for this book from https://bookofengineering.com/easyseries/

Here these lines are comment section giving information about the program, and you need to include these lines so that another programmer can understand what it is about easily. 

Continue reading LEARN C++: Basic Comment Section for All programs

LEARN C++: BASIC INPUT / OUTPUT

NOTE: You may download codes and extra source material for this book from https://bookofengineering.com/easyseries/

As we have seen in the previous section, library we are using for basic input / output operations is the iostream library. That is why we need to include that at the beginning. 

Continue reading LEARN C++: BASIC INPUT / OUTPUT

LEARN C++: MY FIRST C++ PROGRAM

NOTE: You may download codes and extra source material for this book from https://bookofengineering.com/easyseries/

  1. //my first c++ program
  2. #include <iostream>
  3. using namespace std; 
  4. int main(){
  5. cout<<“hello world!”;
  6. return 0;
  7. system(“pause”);
  8. }
  9. /* This ends 
  10. the file */
Continue reading LEARN C++: MY FIRST C++ PROGRAM

LEARN C++: Paragraph Comments (Multiple Line Comment)

NOTE: You may download codes and extra source material for this book from https://bookofengineering.com/easyseries/

Another type of comment is paragraph comment (or multiple line comment) where you start commenting with “*/” and end with “/*”

Continue reading LEARN C++: Paragraph Comments (Multiple Line Comment)

LEARN C++: Line Comments

NOTE: You may download codes and extra source material for this book from https://bookofengineering.com/easyseries/

The “//” sign means you are adding a comment. This is called line comment. The things you write after these “//” will not be taken as a command (means these things will not be compiled). It is always a good approach to write down the properties of the code at the beginning like author, for which aim this code is written etc. 

Continue reading LEARN C++: Line Comments

LEARN C++: Opening a New File and printing famous “HELLO WORLD”

NOTE: You may download codes and extra source material for this book from https://bookofengineering.com/easyseries/

You can start a new file by selecting; 

File > New > Source File OR pression Ctrl + N on your keyboard; 

Continue reading LEARN C++: Opening a New File and printing famous “HELLO WORLD”

LEARN C++: INSTALLING IDE

NOTE: You may download codes and extra source material for this book from https://bookofengineering.com/easyseries/

Installing IDE

For all the programming languages the beginning is the printing “Hello World” sentence. So, this is some kind of tradition. But before doing that we need to have the C++ IDE. IDE stands for Integrated Development Environment. So basically, the place where you will communicate with the PC. So, the “language” is coming here. So, for different programming languages there are different environments so that you can talk to your PC and instruct it. 

Continue reading LEARN C++: INSTALLING IDE

LEARN C++ EASILY WITH THIS EASY BOOK

NOTE: You may download codes and extra source material for this book from https://bookofengineering.com/easyseries/

With this EASY book, I aimed to give the basic programming info as fast as possible without giving so much detail and making you feel bored. Comparing to the other programming books, in this book you will get the essence of the subject, without entering into lots of “unnecessary” details which you may not need to learn at the beginning of learning this language. Especially simple examples are used to show the functions of the codes introduced. I intentionally, tried to keep the text as short as possible so that you can start programming with C++ faster and have time to try it yourself. So this is a great book who wants to start programming as soon as possible and get the idea easily without diving into details. 

Continue reading LEARN C++ EASILY WITH THIS EASY BOOK