Click to Learn C and C++ programming language Tutorial
Learning C and C++ programming language click on above tutorial link
Skype id: shafique-hanif
Friday, 22 March 2019
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<<"Distance covered by the object:"<<s;
getch();
}
#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();
}
Labels:
2CPP
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();
}
#include<iostream.h>
#include<conio.h>
int main()
{
// This line is the example of single line comments
cout<<"Hello Students";
getch();
}
Labels:
1CPP
Monday, 26 December 2011
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 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.
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.
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.
Labels:
Copy
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.
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
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
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.
Labels:
Edit
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
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.
Labels:
RD,
RMDIR and VOL
Subscribe to:
Posts (Atom)