Tuesday, 10 January 2012

#include<iostream.h>
#include<conio.h>
void main()
{
int vi,t,a;
float   s;
   cout<<"Enter value for velocity:";
   cin>>vi;
   cout<<"Enter value for time:";
   cin>>t;
   cout<<"Enter value for a:";
   cin>>a;
   s=vi*t+1/2*a*t*t;
   cout<<"\n\n*****************************************"<<endl;
   cout<<"Value Enter for veloricty is:"<<vi<<endl;
   cout<<"Value Enter for Time is:"<<t<<endl;
   cout<<"Value Enter for  Accelaration:"<<a<<endl;
   cout<<"Distance covered by the object:"<<s<<endl;
   cout<<"\n\n*****************************************";
  getch();
  }
#include<iostream.h>
#include<conio.h>

void main()
{
int vi, t,a;
float  s;
   cout<<"Enter value for velocity:";
   cin>>vi;
   cout<<"Enter value for time:";
   cin>>t;
   cout<<"Enter value for a:";
   cin>>a;
   s=vi*t+1/2*a*t*t;
  
   cout<<"Distance covered by the object:"<<s;
  getch();
  }
Dear Student here is first example of C Plus Plus Program hopefully you must do practice of this program




#include<iostream.h>
#include<conio.h>
int main()
{
    //   This line is the example of single line comments
     cout<<"Hello Students";
  getch();
  }



Monday, 26 December 2011

Exit Command

EXIT:
This command is used to exit from dos shell to system This command is used to close your dos window when we type it and press enter. as given below in picture.

Copy Command

COPY:
This command is used to copies files to different places on your disks . This Command does not remove the source file after writing the new file. This command can be written as given below.
 Copy is command is used to copy a file into another folder as given below.


copy is command  "a" is a text file that is copied  into directory shafiq.


when You type this command then press enter button hen following command will be displayed as given below.
                                            

when you press enter key a message will be displayed as shown in the second line " 1 file is copied"  as picture.
when we copied our file to  " shafiq directory" then we can check using dos our file is really copied to destination to check this we first go into destination directory using  above typed command then press.

   now we enter into destination directory as given in above picture. then we type a command to chek directory  dir to check directory  to view the file as given below.


now in above picture  Highlighted file which we copy into a directory.


      

Wednesday, 21 December 2011

Edit Command

 Edit Command:
 This command is used to edit a file using dos. you can save this file write some text in ASCII file format. as given below.Edit Command is allows a user to view, create, or modify their computer files.
write edit command in the following way.
  
now press enter key for edit purpose you view above screen as...



now you can write you text  in this file you can also save your file your desired name.


as given below
 
                                     

after selecting save option from here a dialog box appear then you write the name of your file here then press

                                           
       ok button to save the file with you required name your file will be saved successfully as given below.
      name of my file is located under the help menu in menu bar in picture and this file is saved in the "d" drive  

 to exit from the editor we do some specific task we go into   > file menu.  then we  select  > exit. 
when we select Exit option we successfully from the Editor which provided us bu the dos.
                                           
                             

Friday, 16 December 2011


RD, RMDIR AND VOL 
Dear Student Today I will discuss to you about rd , rmdir and vol commands of DOS respectively,

RD, RMDIR Command
                                      RD(Remove Directory) and RMDIR  both these commands are used to remove directory from current working directory .  

1) first we will see the list of all directories for our understanding


2) Now we type command to create a directory in DOS as given in picture below

3) we check our directory using  "dir " command  in following way as given below

 4) we can remove our created directory using following command "rd  / rmdir " in dos
when we type this command and  pres "enter /return" key from keyboard  your required directory is removed
you can check it by using dir command,

5) we can also use RMDIR command to remove a file from a directory as given in picture.
   
Vol Command:
   VOL is used to check the  volume label of your hard drive or floppy disk. user just type the VOL command and then  press "Enter /Return " key for the execution of the command.Picturial diagram is given below.