Skip to main content

If You Want to Run the program with Menu and Shortcut

#include <conio.h> includes the console input output library functions. The getch() function is defined in conio.h file.

# ये हैश सिंबल है जो प्रोग्राम का स्टार्टअप होता है इसको preprocessor directives कहते है ये बहुत ही इम्पोर्टेन्ट टर्म होता है आपको इसके बारे में जरूर पता होना चाहिये | 

void main() The main() function is the entry point of every program in C++ language. The void keyword specifies that it returns no value.

cout << "Welcome to C++ Programming." is used to print the data "Welcome to C++ Programming." on the console.

getch() The getch() function asks for a single character. Until you press any key, it blocks the screen.


Cpp Program 1



How to compile and run the C++ program

There are 2 ways to compile and run the C++ program, by menu and by shortcut.

By menu

Now click on the compile menu then compile sub menu to compile the c++ program.

Then click on the run menu then run sub menu to run the c++ program.

By shortcut

Or, press ctrl+f9 keys compile and run the program directly.

You will see the following output on user screen.


Cpp Program 2


You can view the user screen any time by pressing the alt+f5 keys.

Now press Esc to return to the turbo c++ console.

Comments

Popular posts from this blog

Memory Hierarchy

Memory Hierarchy A memory unit is an essential component in any digital computer since it is needed for storing programs and data. Typically, a memory unit can be classified into two categories: The memory unit that establishes direct communication with the CPU is called  Main Memory . The main memory is often referred to as RAM (Random Access Memory). The memory units that provide backup storage are called  Auxiliary Memory . For instance, magnetic disks and magnetic tapes are the most commonly used auxiliary memories. Apart from the basic classifications of a memory unit, the memory hierarchy consists all of the storage devices available in a computer system ranging from the slow but high-capacity auxiliary memory to relatively faster main memory. The following image illustrates the components in a typical memory hierarchy. Auxiliary Memory Auxiliary memory is known as the lowest-cost, highest-capacity and slowest-access storage in a computer system. Auxiliar

Objective Question of Computer Networking

  1.    Choose the correct meaning of the Greek word ‘tele’ in       context of telecommunication. A.   Near B.   Far C.   Never D.   Always   2.    Find the correct term used for the standards that have       been legislated by an officially recognized body.    A.   De jure B.   De facto C.   User standards D.   Channel standards   3.    Which agency developed standards for physical       connection interfaces and electronic signaling       specifications?      A.    ISO B.    ITU C.    ANSI D.    EIA   4.     Find full form of ANSI. A.    American Network Signal Institute B.    American National Signal Institute C.    American National Standards Institute D.    American Network Standards Institute   5.    Select the correct option to complete the following       statement.       The __________ defines the characteristics of the       interface between the devices and the transmission       medium. A.    Transport layer