SlideShare a Scribd company logo
1 of 21
Dr. C.V. Suresh Babu
Here’s how to start the Microsoft Visual C++ program;
•click on start, then programs
•Choose Microsoft Visual C++ or Microsoft Visual Studio
•Finally choose Microsoft Visual C++ 5.0 (or Microsoft Visual C++ 6.0)
The opening screen for Microsoft Visual C++ Editing, compilation and execution environment. Tip of the Day is a feature that explains to you a helpful
hint on a topic regarding the use of Visual C++ environment more efficiently.
Click on the button Close of the
window labeled Tip of the Day
to start working in the
environment.
Workspaces
Projects
C++ Program Source files
In Visual C++ The programs you develop are organized as follows;
C++ source file
A C++ program that implements a certain algorithm to solve a problem
Project
Sometimes in big programs one has to distribute the C++ source statements
over multiple files, not only one.
In these cases all the files that logically make up one program must be
collected together.
A project is the folder in visual C++ where all pieces of the same program are
stored.
Workspaces
In big big software development projects there may be a need to develop
multiple big programs (i.e. multiple projects), for example, In a financial software
package , you find Payroll, Accounts payable, Accounts receivable programs.
A workspace is the way visual C++ allows us to collect related projects
The Visual C++ environment is split into three basic windows:
•Editing window
•InfoViewing window
•Debugging window
Edititing Window
Here you will type the C++ source program. You can do
the normal operations you expect in any editor, for
example, type new text, cut, copy, paste text, search
for a word or phrase in your program etc.
One useful feature of this editor is it color codes the
different parts of a C++ statement to help you verify that
your statement does not contain a syntax error(error
because of violating a rule of the grammar of the C++
language).
InfoViewing window
All Source programs in all projects that reside in the
workspace currently open, are shown in this window for
your reference as the programmer.
Debugging window
Here is where the results of compilation and linking
of your program appear. For example if you have
errors in compilation they appear in this window.
Click on any error and the environment will point to you
the line in your C++ source program that caused the
error.
Using Microsoft Visual C++ Environment
Scenario I
The following slide illustrate a scenario for creating a new C++ source program from scratch,
compiling it, and executing it. The steps are summarized as follows:
•Create New Source file
This step allows a new C++ source file that will contain your program to be opened
•Editing & storing a C++ source program inside the project workspace
In the editing window we will type the statements of a simple but complete C++
source program.
• Compiling & linking the C++ source program to produce the executable machine
language program
The source program written in the C++ language is translated into a program that
does the same exact thing but written in the machine language of the computer you
are using. The later program is called the executable program since it can be run
directly on the machine.(For example, if your machine has a Pentium processor
translation will produce a program written in the Pentium processor’s instruction set)
• Executing the executable program
Basically, Visual C++ environment asks the Operating system to load the machine
language instructions of your executable program and have them executed.
To create a new C++ source file ;
•Click with the mouse on the File menu.
• Click on New
Then on C++ Source File
Click on Files
#include <iostream.h>
void main(){
const Pi=3.14159f;
float area;
float r;
cout<<"Enter value for radius ";
cin >>r;
area = Pi*r*r;
cout<<"Area equals "<<area<<endl;
}
Here is your C++ source program. Observe the color of some words in the statements
of your program is different, for example, the blue color is used to mark that the editor
recognizes these as reserved words
Click on File , then Save As
to save the C++ program in a C++ source file you name
First choose that you save on the Floppy disk
Type the name you want to give to the source file that will contain your
C++ source program, say you’ll call it Area then click Save
Here we want to create a workspace and project to contain our source. We have to do this on the Hard disk
because space limitation on the floppy disk will cause compilation and linking processes to fail.
Here’s what you need to do
•click File, then New, then Projects.
•Choose Win32 Console Application
•Type a Project name for the project you are creating, best to use the same name as your C++ source file
•Make sure the project is stored in a directory on the hard disk C:, for example C:TEMP
Click on Finish; we need An empty project
A new workspace called area, and a new project inside that workspace are created.
Both the workspace and the project are stored as files on the hard disk, specifically in directory
C:TEMP
Here you will add the C++ source file you created to the project area. This is necessary before you can compile
or link your program.
•Move the pointer to the name of the project in the infoView window
•click the right mouse button
•choose Add Files to Project
Determine that you want to add to the project the source file called area.cpp found on the floppy disk
Click Build then Compile Area.cpp. This causes the compiler to start
translating the C++ source program into the machine language instructions
Click Build then Build area.cpp to perform the linking process for the resulting program form the compiler
To obtain the executable (machine language version of your program a process called linking must be
performed
linking is the process of attaching code from libraries that you did not write yourself to the program you wrote
yourself. For example the statement
#include<iostream.h>
Actually is telling C++ linker to bring in the code of the library called iostream. This is basically a
program that enables
you to print on the screen by simply using one statement cout<<….There is a whole program behind the
cout statementthat is found in the library iostream.
Click on Build, then Execute area.exe to execute the machine language program
The window labeled C:TEMPareaDebugarea.exe is te one inside of which the machine language
version of your program is being executed

More Related Content

What's hot

DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)Daniel Meixner
 
Introduction to C++
Introduction to C++Introduction to C++
Introduction to C++rohassanie
 
Win avr presentation_2006
Win avr presentation_2006Win avr presentation_2006
Win avr presentation_2006sandler789
 
Deployingmuleapplications 160903085602
Deployingmuleapplications 160903085602Deployingmuleapplications 160903085602
Deployingmuleapplications 160903085602ppts123456
 
Writing first C Program
Writing first C ProgramWriting first C Program
Writing first C ProgramPriyanka Anni
 
Devry cis 170 c i lab 1 of 7 getting started
Devry cis 170 c i lab 1 of 7 getting startedDevry cis 170 c i lab 1 of 7 getting started
Devry cis 170 c i lab 1 of 7 getting startedshyaminfo04
 

What's hot (9)

DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
 
Introduction to C++
Introduction to C++Introduction to C++
Introduction to C++
 
Win avr presentation_2006
Win avr presentation_2006Win avr presentation_2006
Win avr presentation_2006
 
Codename: Roslyn
Codename: RoslynCodename: Roslyn
Codename: Roslyn
 
Deployingmuleapplications 160903085602
Deployingmuleapplications 160903085602Deployingmuleapplications 160903085602
Deployingmuleapplications 160903085602
 
!!Readme
!!Readme!!Readme
!!Readme
 
C++ Chapter 3
C++ Chapter 3C++ Chapter 3
C++ Chapter 3
 
Writing first C Program
Writing first C ProgramWriting first C Program
Writing first C Program
 
Devry cis 170 c i lab 1 of 7 getting started
Devry cis 170 c i lab 1 of 7 getting startedDevry cis 170 c i lab 1 of 7 getting started
Devry cis 170 c i lab 1 of 7 getting started
 

Similar to Visual c++ demo

Visual c++ 2010_tutorial
Visual c++ 2010_tutorialVisual c++ 2010_tutorial
Visual c++ 2010_tutorialAyub Abd Rahman
 
How to work with code blocks
How to work with code blocksHow to work with code blocks
How to work with code blocksTech Bikram
 
Prg 218 entire course
Prg 218 entire coursePrg 218 entire course
Prg 218 entire coursegrades4u
 
Devry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedDevry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedgovendaagoovenda
 
Introduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docIntroduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docMayurWagh46
 
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...bhargavi804095
 
Introduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxIntroduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxNEHARAJPUT239591
 
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJIntroduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJmeharikiros2
 
C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...bhargavi804095
 
CIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.comCIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.combellflower82
 
CIS 170 Inspiring Innovation/tutorialrank.com
 CIS 170 Inspiring Innovation/tutorialrank.com CIS 170 Inspiring Innovation/tutorialrank.com
CIS 170 Inspiring Innovation/tutorialrank.comjonhson110
 
CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   llflowe
 
CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   bellflower42
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com amaranthbeg143
 
CIS 170 Effective Communication - tutorialrank.com
CIS 170 Effective Communication - tutorialrank.comCIS 170 Effective Communication - tutorialrank.com
CIS 170 Effective Communication - tutorialrank.comBartholomew19
 

Similar to Visual c++ demo (20)

Session 1 - c++ intro
Session   1 - c++ introSession   1 - c++ intro
Session 1 - c++ intro
 
Visual c++ 2010_tutorial
Visual c++ 2010_tutorialVisual c++ 2010_tutorial
Visual c++ 2010_tutorial
 
How to work with code blocks
How to work with code blocksHow to work with code blocks
How to work with code blocks
 
C in7-days
C in7-daysC in7-days
C in7-days
 
C in7-days
C in7-daysC in7-days
C in7-days
 
Prg 218 entire course
Prg 218 entire coursePrg 218 entire course
Prg 218 entire course
 
Devry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedDevry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-started
 
Introduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docIntroduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).doc
 
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
 
Introduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxIntroduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptx
 
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJIntroduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
 
C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...
 
C
CC
C
 
CIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.comCIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.com
 
CIS 170 Inspiring Innovation/tutorialrank.com
 CIS 170 Inspiring Innovation/tutorialrank.com CIS 170 Inspiring Innovation/tutorialrank.com
CIS 170 Inspiring Innovation/tutorialrank.com
 
CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   
 
CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   
 
C++Basics2022.pptx
C++Basics2022.pptxC++Basics2022.pptx
C++Basics2022.pptx
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com
 
CIS 170 Effective Communication - tutorialrank.com
CIS 170 Effective Communication - tutorialrank.comCIS 170 Effective Communication - tutorialrank.com
CIS 170 Effective Communication - tutorialrank.com
 

More from Dr. C.V. Suresh Babu (20)

Data analytics with R
Data analytics with RData analytics with R
Data analytics with R
 
Association rules
Association rulesAssociation rules
Association rules
 
Clustering
ClusteringClustering
Clustering
 
Classification
ClassificationClassification
Classification
 
Blue property assumptions.
Blue property assumptions.Blue property assumptions.
Blue property assumptions.
 
Introduction to regression
Introduction to regressionIntroduction to regression
Introduction to regression
 
DART
DARTDART
DART
 
Mycin
MycinMycin
Mycin
 
Expert systems
Expert systemsExpert systems
Expert systems
 
Dempster shafer theory
Dempster shafer theoryDempster shafer theory
Dempster shafer theory
 
Bayes network
Bayes networkBayes network
Bayes network
 
Bayes' theorem
Bayes' theoremBayes' theorem
Bayes' theorem
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agents
 
Rule based system
Rule based systemRule based system
Rule based system
 
Formal Logic in AI
Formal Logic in AIFormal Logic in AI
Formal Logic in AI
 
Production based system
Production based systemProduction based system
Production based system
 
Game playing in AI
Game playing in AIGame playing in AI
Game playing in AI
 
Diagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AIDiagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AI
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
 

Recently uploaded

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Recently uploaded (20)

Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

Visual c++ demo

  • 2. Here’s how to start the Microsoft Visual C++ program; •click on start, then programs •Choose Microsoft Visual C++ or Microsoft Visual Studio •Finally choose Microsoft Visual C++ 5.0 (or Microsoft Visual C++ 6.0)
  • 3. The opening screen for Microsoft Visual C++ Editing, compilation and execution environment. Tip of the Day is a feature that explains to you a helpful hint on a topic regarding the use of Visual C++ environment more efficiently. Click on the button Close of the window labeled Tip of the Day to start working in the environment.
  • 4. Workspaces Projects C++ Program Source files In Visual C++ The programs you develop are organized as follows; C++ source file A C++ program that implements a certain algorithm to solve a problem Project Sometimes in big programs one has to distribute the C++ source statements over multiple files, not only one. In these cases all the files that logically make up one program must be collected together. A project is the folder in visual C++ where all pieces of the same program are stored. Workspaces In big big software development projects there may be a need to develop multiple big programs (i.e. multiple projects), for example, In a financial software package , you find Payroll, Accounts payable, Accounts receivable programs. A workspace is the way visual C++ allows us to collect related projects
  • 5. The Visual C++ environment is split into three basic windows: •Editing window •InfoViewing window •Debugging window Edititing Window Here you will type the C++ source program. You can do the normal operations you expect in any editor, for example, type new text, cut, copy, paste text, search for a word or phrase in your program etc. One useful feature of this editor is it color codes the different parts of a C++ statement to help you verify that your statement does not contain a syntax error(error because of violating a rule of the grammar of the C++ language). InfoViewing window All Source programs in all projects that reside in the workspace currently open, are shown in this window for your reference as the programmer. Debugging window Here is where the results of compilation and linking of your program appear. For example if you have errors in compilation they appear in this window. Click on any error and the environment will point to you the line in your C++ source program that caused the error.
  • 6. Using Microsoft Visual C++ Environment Scenario I The following slide illustrate a scenario for creating a new C++ source program from scratch, compiling it, and executing it. The steps are summarized as follows: •Create New Source file This step allows a new C++ source file that will contain your program to be opened •Editing & storing a C++ source program inside the project workspace In the editing window we will type the statements of a simple but complete C++ source program. • Compiling & linking the C++ source program to produce the executable machine language program The source program written in the C++ language is translated into a program that does the same exact thing but written in the machine language of the computer you are using. The later program is called the executable program since it can be run directly on the machine.(For example, if your machine has a Pentium processor translation will produce a program written in the Pentium processor’s instruction set) • Executing the executable program Basically, Visual C++ environment asks the Operating system to load the machine language instructions of your executable program and have them executed.
  • 7. To create a new C++ source file ; •Click with the mouse on the File menu. • Click on New
  • 8. Then on C++ Source File Click on Files
  • 9. #include <iostream.h> void main(){ const Pi=3.14159f; float area; float r; cout<<"Enter value for radius "; cin >>r; area = Pi*r*r; cout<<"Area equals "<<area<<endl; }
  • 10. Here is your C++ source program. Observe the color of some words in the statements of your program is different, for example, the blue color is used to mark that the editor recognizes these as reserved words
  • 11. Click on File , then Save As to save the C++ program in a C++ source file you name
  • 12. First choose that you save on the Floppy disk Type the name you want to give to the source file that will contain your C++ source program, say you’ll call it Area then click Save
  • 13. Here we want to create a workspace and project to contain our source. We have to do this on the Hard disk because space limitation on the floppy disk will cause compilation and linking processes to fail. Here’s what you need to do •click File, then New, then Projects. •Choose Win32 Console Application •Type a Project name for the project you are creating, best to use the same name as your C++ source file •Make sure the project is stored in a directory on the hard disk C:, for example C:TEMP
  • 14. Click on Finish; we need An empty project
  • 15. A new workspace called area, and a new project inside that workspace are created. Both the workspace and the project are stored as files on the hard disk, specifically in directory C:TEMP
  • 16. Here you will add the C++ source file you created to the project area. This is necessary before you can compile or link your program. •Move the pointer to the name of the project in the infoView window •click the right mouse button •choose Add Files to Project
  • 17. Determine that you want to add to the project the source file called area.cpp found on the floppy disk
  • 18. Click Build then Compile Area.cpp. This causes the compiler to start translating the C++ source program into the machine language instructions
  • 19. Click Build then Build area.cpp to perform the linking process for the resulting program form the compiler To obtain the executable (machine language version of your program a process called linking must be performed linking is the process of attaching code from libraries that you did not write yourself to the program you wrote yourself. For example the statement #include<iostream.h> Actually is telling C++ linker to bring in the code of the library called iostream. This is basically a program that enables you to print on the screen by simply using one statement cout<<….There is a whole program behind the cout statementthat is found in the library iostream.
  • 20. Click on Build, then Execute area.exe to execute the machine language program
  • 21. The window labeled C:TEMPareaDebugarea.exe is te one inside of which the machine language version of your program is being executed