Skip to main content

C++ Program ( Try it)

C++ Program

C++ इनस्टॉल करने के बाद मई आपको एक example से समझाना चहता हु तो आप इसके देखे और सीखे |... 

Before starting the abcd of C++ language, you need to learn how to write, compile and run the first C++ program.

To write the first C++ program, open the C++ console and write the following code:



  1. #include <iostream.h>  
  2. #include<conio.h>  
  3. void main()
  4.  {  
  5.    clrscr();  
  6.    cout << "Welcome to Onkareshwar Saraswati Vidya Niketan 
  7. Inter College";   
  8.    getch();  
  9. }  

#include<iostream.h> includes the standard input output(स्टैण्डर्ड इनपुट आउटपुट ) library functions. 

It provides cin and cout methods for reading from input and writing to output respectively.

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....

CLASS-11 (Python Programming Language)

  Python Programming Language Python is a high-leve l, general-purpose and a very popular programming language. Python programming language (latest Python 3) is being used in web development, Machine Learning applications, along with all cutting edge technology in Software Industry. Python Programming Language is very well suited for Beginners, also for experienced programmers with other programming languages like C++ and Java. Below are some facts about Python Programming Language: Python is currently the most widely used multi-purpose, high-level programming language. Python allows programming in Object-Oriented and Procedural paradigms. Python programs generally are smaller than other programming languages like Java. Programmers have to type relatively less and indentation requirement of the language, makes them readable all the time. Python language is being used by almost all tech-giant companies like – Google, Amazon, Facebook, Instagram, Dropbox, Uber… etc. The biggest stren...

Python For Loop ( Class 11)

  Note:- Read it Carefully: Python Loops The flow of the programs written in any programming language is sequential by default. Sometimes we may need to alter the flow of the program.  The execution of a specific code may need to be repeated several numbers of times. For this purpose, The programming languages provide various types of loops which are capable of repeating some specific code several numbers of times.  Consider the following diagram to understand the working of a loop statement. Why we use loops in python? The looping simplifies the complex problems into the easy ones.  It enables us to alter the flow of the program so that instead of writing the same code again and again, we can repeat the same code for a finite number of times.  For example, if we need to print the first 10 natural numbers then, instead of using the print statement 10 times, we can print inside a loop which runs up to 10 iterations . Advantages of loops There are the following ad...