Introduction to programming and visual c l.jpg
1 / 57

Introduction to Programming and Visual C++.


83 views
Uploaded on:
Category: General / Misc
Description
Introduction to Programming and Visual C++ Objectives In this chapter you will learn about: Computer programming and programming languages C/C++ programming Logic and debugging Creating a new project in Visual C++ The Visual Studio IDE Managing the solution Visual C++ Help
Transcripts
Slide 1

Prologue to Programming and Visual C++ Microsoft Visual C++ .NET Chapter 1

Slide 2

Objectives In this section you will find out about: Computer programming and programming dialects C/C++ programming Logic and troubleshooting Creating another undertaking in Visual C++ The Visual Studio IDE Managing the arrangement Visual C++ Help Microsoft Visual C++ .NET Chapter 1

Slide 3

Computer Programming and Programming Languages Creating guidelines that control the operation of a PC or PC equipment is called PC programming The directions themselves are called PC programs, applications, programming, or basically programs The bits of data that a project needs are called information Microsoft Visual C++ .NET Chapter 1

Slide 4

Machine and Assembly Languages Telling a PC what to do includes composing projects that set these changes to on or off Machine dialect is the least level of scripting languages, and projects written in machine dialect comprise altogether of 1s and 0s that control the computer’s on and off switches A system written in machine dialect may contain lines like the case appeared at the highest point of page 3 in the reading material Microsoft Visual C++ .NET Chapter 1

Slide 5

Machine and Assembly Languages Writing a project in machine dialect is exceptionally troublesome on the grounds that you must see how the accurate position and mix of 1s and 0s will influence your project Assembly dialects perform the same assignments as machine dialects, yet utilize improved names of directions rather than 1s and 0s Microsoft Visual C++ .NET Chapter 1

Slide 6

Machine and Assembly Languages Machine dialects and low level computing constructs are known as low-level dialects on the grounds that they are the programming dialects that are nearest to a computer’s equipment Each kind of focal preparing unit (CPU) contains its own particular inner machine dialect and low level computing construct Microsoft Visual C++ .NET Chapter 1

Slide 7

High-Level Programming Languages High-level programming dialects make PC projects utilizing guidelines that are much simpler to comprehend than machine or low level computing construct code in light of the fact that you utilize words that all the more obviously depict the errand being performed Examples of abnormal state dialects incorporate C++, BASIC, and COBOL Microsoft Visual C++ .NET Chapter 1

Slide 8

High-Level Programming Languages Another favorable position to abnormal state programming dialects is that they are not CPU-particular, as are machine and low level computing constructs However, keeping in mind the end goal to run, projects written in abnormal state dialects should first be deciphered into a low-level dialect utilizing a project called a compiler A compiler makes an interpretation of programming code into a low-level configuration Microsoft Visual C++ .NET Chapter 1

Slide 9

Procedural Programming One of the most widely recognized types of programming in abnormal state dialects is called procedural programming In procedural programming , PC guidelines are regularly gathered into sensible units called strategies In C++ programming, methodology are alluded to as capacities Microsoft Visual C++ .NET Chapter 1

Slide 10

Procedural Programming Each line in a procedural system that performs an individual errand is known as an announcement When a technique or capacity is alluded to in the book, its name is normally trailed by two enclosures, as in balanceCheckbook() One of the most vital parts of procedural writing computer programs is that it permits you to briefly store bits of information in PC memory areas called variables Microsoft Visual C++ .NET Chapter 1

Slide 11

Procedural Programming The data contained in a particular variable frequently changes Another type of information that you can store in PC memory areas is a steady A consistent contains data that does not change over the span of project execution Microsoft Visual C++ .NET Chapter 1

Slide 12

Object-Oriented Programming Object-situated programming (OOP) alludes to the formation of reusable programming questions that can be effortlessly consolidated into another project Reusable programming articles are frequently alluded to as segments In item situated programming, an item is modifying code and information that can be dealt with as an individual unit or segment Microsoft Visual C++ .NET Chapter 1

Slide 13

Object-Oriented Programming Data alludes to data contained inside of variables, constants, or different sorts of capacity structures The capacities connected with an article are alluded to as routines Variables that are connected with an item are alluded to as properties or traits Objects can extend from basic controls, for example, a catch, to whole projects, for example, a database application Microsoft Visual C++ .NET Chapter 1

Slide 14

Object-Oriented Programming Objects are embodied , which implies that all code and obliged information are contained inside of the item itself Encapsulation is additionally alluded to as a discovery, in view of the code's imperceptibility inside an exemplified item An interface speaks to components needed for a source project to correspond with an item Interface components needed to get to a Payroll article may be a strategy named calcNetPay(), which ascertains an employee’s net pay and properties containing the employee’s name and pay rate Microsoft Visual C++ .NET Chapter 1

Slide 15

Object-Oriented Programming Another illustration of an item and its interface is a Windows word-handling system In item situated programming, the code, strategies, qualities, and other data that make up an article are contained in a structure known as a class Programming articles are made from classes Microsoft Visual C++ .NET Chapter 1

Slide 16

Object-Oriented Programming When you utilize an item in your projects, you really make a case of the object's class An occurrence is an item that has been made from a current class Inheritance alludes to the capacity of an item to tackle the class' attributes on which it is based Microsoft Visual C++ .NET Chapter 1

Slide 17

C/C++ Programming The term C/C++ alludes to two separate, yet related, programming dialects: C and C++ You make C and C++ programs in content documents utilizing a content altering instrument, for example, Notepad The first program structure you go into a content record is alluded to as source code The aggregated machine dialect adaptation of a system is called item code Microsoft Visual C++ .NET Chapter 1

Slide 18

C/C++ Programming Once you order a system into item code, a few frameworks oblige you to utilize a project called a linker , which changes over the item code into an executable record, ordinarily with an augmentation of .exe Figure 1-6 in the content uses a basic program that prints the content Hello World to a console application window to indicate how source code is changed into article code and after that into an executable procedure Microsoft Visual C++ .NET Chapter 1

Slide 19

C/C++ Programming In Visual C++, you accumulate and join a system in a solitary step known as building Remember that every PC contains its own particular inward machine dialect The C/C++ compiler you utilize must have the capacity to make an interpretation of source code into the machine dialect of the PC, or stage, on which your project will run A stage is a working framework and its equipment sort Microsoft Visual C++ .NET Chapter 1

Slide 20

The C Programming Language One of the most critical projects made with the first C dialect was the UNIX working framework To give a level of institutionalization to the C dialect, in 1989 the American National Standards Institute (ANSI) made an institutionalized rendition of C that is generally alluded to as ANSI C Microsoft Visual C++ .NET Chapter 1

Slide 21

The C++ Programming Language C++ is right now the most prominent programming dialect for creating graphical projects that keep running on stages, for example, Macintosh and Windows Graphical projects alludes to programs with visual segments, for example, dialog boxes, menus, toolbars, thus on C++ can make graphical projects due to the article situated programming abilities included by Stroustrup when he initially added to the dialect from its C forerunner Microsoft Visual C++ .NET Chapter 1

Slide 22

The C++ Programming Language The institutionalized adaptation of C++ is usually alluded to as ANSI C++ The ANSI C++ standard guarantees that projects written in C++ are good with diverse compilers and can be keep running on distinctive stages The ANSI C and ANSI C++ models characterize how C/C++ code can be composed Microsoft Visual C++ .NET Chapter 1

Slide 23

The C++ Programming Language The ANSI gauges likewise characterize run-time libraries , which contain valuable capacities, variables, constants, and other automatic things that you can add to your projects The ANSI C++ run-time library is likewise called the Standard Template Library or Standard C++ Library Most of the elements of C are likewise accessible in C++, which implies you can utilize C++ to compose both procedural and article situated projects Microsoft Visual C++ .NET Chapter 1

Slide 24

Visual C++.NET Microsoft Visual C++.NET , or Visual C++ for short, is a Windows-based, visual advancement environment for making C and C++ applications It is a piece of the Microsoft Visual Studio line of items Visual C++ contains an implicit code editorial manager, compiler, and different apparatuses for making projects Actually, Visual C++ itself is not a programming dialect Microsoft Vis