SlideShare a Scribd company logo
1 of 23
1st step of programming with C++
- Kanha Sahu
C++ Language
Software
• API Tools or
Compiler
SRS
• System
Requirement
Specifications
Install
• Installation &
Configuration
Experiments
• Write a
Program
References
• Books, Tutorials
and Other Links
C++
Compiler Author Windows Unix like Other OS License type
CCS C Compiler CCS, Inc. Yes Yes Yes Proprietary
Ch SoftIntegration, Inc Yes
Mac OS-X,
FreeBSD,
Linux, Solaris
Yes Freeware
Clang LLVM Project Yes Yes Yes BSD
CodeWarrior Metrowerks Yes Yes Classic Mac OS Proprietary
CParser/libFirm
Matthias Braun, Christoph Mallon
and Michael Beck
Yes Yes Yes GPL
Digital Mars Digital Mars Yes No No Proprietary
Dignus Systems/C Dignus, L.L.C Yes (host) Yes (host) Z/Architecture Proprietary
Edison Design Group Edison Design Group Yes Yes Yes Proprietary
GCC C GNU Project
MinGW,
Cygwin
Yes
IBM mainframe,
AmigaOS
GPL
Portable C Compiler
Stephen C. Johnson, Anders
Magnusson and others
Yes Yes Yes BSD
SubC Nils M Holm MinGW
FreeBSD,
NetBSD,
Linux
MS-DOS Public Domain
Tiny C Compiler Fabrice Bellard Yes Yes No LGPL
Wind River (Diab)
Compiler
Wind River Systems Yes Yes Yes Proprietary
https://en.wikipedia.org/wiki/List_of_compilers
Compilers
XP
W7
W8
Tubro C
SRS
MinGW
W10
Windows XP
W7
W8
W10
Windows
XP
W7
W8
Tubro C
W10
Windows
C ++
About Turbo C
 Turbo C++ was a C++ compiler and integrated development
environment and computer language originally from Borland. Most
recently it was distributed by Embarcadero Technologies, which
acquired all of Borland's compiler tools with the purchase of its
CodeGear division in 2008.
 Turbo C++ 3.0 was released in 1991 (shipping on November 20), and
came in amidst expectations of the coming release of Turbo C++ for
Microsoft Windows. Initially released as an MS-DOS compiler, 3.0
supported C++ templates, Borland's inline assembler, and generation of
MS-DOS mode executables for both 8086 real mode and 286 protected
mode (as well as the Intel 80186.) 3.0 implemented AT&T C++ 2.1, the
most recent at the time. The separate Turbo Assembler product was no
longer included, but the inline-assembler could stand in as a reduced
functionality version.
 Turbo C++ v1.01 and Turbo C v2.01 can be downloaded, free of charge,
from Borland's Antique Software website.
 Turbo C 3.0 (DOS) was included in the Turbo C Suite 1.0, which is no
longer sold by Borland.
Turbo C
About
• About Tool
Download
• Download Turbo C
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Download Turbo C
 https://turboc.codeplex.com/
 http://sourceforge.net/projects/turbocforwindows-9/
Turbo C
About
• About Tool
Download
• Download Turbo C
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Installation & configuration
About
• About Tool
Download
• Download Turbo C
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Turbo C
Installation & configuration
About
• About Tool
Download
• Download Turbo C
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Turbo C
Experiment
About
• About Tool
Download
• Download Turbo C
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Turbo C
Source Code - Input Result - Output
MinGW
XP
W7
W8
W10
Windows
C++
About MinGW
 MinGW, a contraction of "Minimalist GNU for Windows", is a
minimalist development environment for native Microsoft Windows
applications.
 MinGW compilers provide access to the functionality of the
Microsoft C runtime and some language-specific runtimes.
 A port of the GNU Compiler Collection (GCC), including C, C++,
ADA and Fortran compilers;
 GNU Binutils for Windows (assembler, linker, archive manager)
 A command-line installer, with optional GUI front-end, (mingw-get)
for MinGW and MSYS deployment on MS-Windows
 A GUI first-time setup tool (mingw-get-setup), to get you up and
running with mingw-get.
MinGW
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Download MinGW
 Click Here for Download:
 http://www.mingw.org/download/installer or
 http://sourceforge.net/projects/mingw/?source=typ_redirect
 After Download the setup, Please open mingw-get-setup.exe
Note : Internet is required, because lib file will download from online by
MinGW Installation Manager Setup Tool
MinGW
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Installation -
 Please open mingw-get-setup.exe
 Press Install Button
 Default Directory is C:MinGW if you want to install at different
location, Press Change
 Press Continue
 Wait for few minute and press continue
 Are you getting MinGW Installation Manager window ??
 If yes, than follow the next step
 As per your requirement you can select the package/options and
download
 Select Mingn32-gcc-g++, Mingn32-gcc-objc etc
 Go to menu bar > select Installation > Apply Changes
 Are you getting Popup ?? > Press Apply if you want to install
 Wait for minute and Installation will be completed.
MinGW
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
MinGW
 Mingw installation manager
MinGW
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Configuration
 Open the “bin” folder
 <where you installed MinGW>bin, By default C:MinGWbin
 Copy that Url/Path : “C:MinGWbin”
 Right Click on My Computer > Properties
 You can see at Left-Side-bar > “Advance System Setting”,
Please Click there and goto Advance Tab
 At the Advance Tab > Click on “Environment Variables”
 Environment Variables > In “System Variables” Section scroll
and select Path and Click on Edit Button
 You will get one popup.
MinGW
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
ConfigurationMinGW
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
ConfigurationMinGW
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
ConfigurationMinGW
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Configuration
 Windows 10
 You will get one popup, Click on New
 paste copied path of MinGW
 Like : C:MinGWbin”
 Click on OK button and again click on OK button
 Windows 8 and Lower version of Windows
 You will get one popup, First close the last path using semi-colon
 Like :
“%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;
%SYSTEMROOT%System32WindowsPowerShellv1.0”
 Enter Semi-colon -- ; and paste copied path of MinGW
 Like :
“%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;
%SYSTEMROOT%System32WindowsPowerShellv1.0; C:MinGWbin”
 Click on OK button and again click on OK button
MinGW
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Configuration
 Restart your system
 Now you can write a program and test your path is configured or
not
 To update “mingw-get upgrade”
MinGW
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Experiment
 By using notepad or any other text editor write a basic program of
C++
 My File is in E:cpptest_cpp.cpp
MinGW
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Source Code - Input Result - Output
References
 Downloads :
 https://turboc.codeplex.com/
 http://sourceforge.net/projects/turbocforwindows-9/
 http://www.mingw.org/download/installer
 http://sourceforge.net/projects/mingw/?source=typ_redirect
 Official Site:
1. http://www.turboexplorer.com/
2. http://www.mingw.org/
 Books:
 http://kaslab.blogspot.in/2015/03/c-notes.html
 http://kaslab.blogspot.in/2015/03/c-language-notes.html
 History:
 https://en.wikipedia.org/wiki/Turbo_C%2B%2B
 https://en.wikipedia.org/wiki/MinGW
C++

More Related Content

More from Kanha Sahu (6)

First steps of programming with php
First steps of programming with phpFirst steps of programming with php
First steps of programming with php
 
Principles of effective_work
Principles of effective_workPrinciples of effective_work
Principles of effective_work
 
Fantastic trip
Fantastic tripFantastic trip
Fantastic trip
 
Wireless connecting world
Wireless connecting worldWireless connecting world
Wireless connecting world
 
Spyware risk it's time to get smart
Spyware risk it's time to get smartSpyware risk it's time to get smart
Spyware risk it's time to get smart
 
An effective use of ict
An effective use of ictAn effective use of ict
An effective use of ict
 

Recently uploaded

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Recently uploaded (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
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
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

First steps of programming with cpp

  • 1. 1st step of programming with C++ - Kanha Sahu C++ Language
  • 2. Software • API Tools or Compiler SRS • System Requirement Specifications Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links C++
  • 3. Compiler Author Windows Unix like Other OS License type CCS C Compiler CCS, Inc. Yes Yes Yes Proprietary Ch SoftIntegration, Inc Yes Mac OS-X, FreeBSD, Linux, Solaris Yes Freeware Clang LLVM Project Yes Yes Yes BSD CodeWarrior Metrowerks Yes Yes Classic Mac OS Proprietary CParser/libFirm Matthias Braun, Christoph Mallon and Michael Beck Yes Yes Yes GPL Digital Mars Digital Mars Yes No No Proprietary Dignus Systems/C Dignus, L.L.C Yes (host) Yes (host) Z/Architecture Proprietary Edison Design Group Edison Design Group Yes Yes Yes Proprietary GCC C GNU Project MinGW, Cygwin Yes IBM mainframe, AmigaOS GPL Portable C Compiler Stephen C. Johnson, Anders Magnusson and others Yes Yes Yes BSD SubC Nils M Holm MinGW FreeBSD, NetBSD, Linux MS-DOS Public Domain Tiny C Compiler Fabrice Bellard Yes Yes No LGPL Wind River (Diab) Compiler Wind River Systems Yes Yes Yes Proprietary https://en.wikipedia.org/wiki/List_of_compilers Compilers
  • 6. About Turbo C  Turbo C++ was a C++ compiler and integrated development environment and computer language originally from Borland. Most recently it was distributed by Embarcadero Technologies, which acquired all of Borland's compiler tools with the purchase of its CodeGear division in 2008.  Turbo C++ 3.0 was released in 1991 (shipping on November 20), and came in amidst expectations of the coming release of Turbo C++ for Microsoft Windows. Initially released as an MS-DOS compiler, 3.0 supported C++ templates, Borland's inline assembler, and generation of MS-DOS mode executables for both 8086 real mode and 286 protected mode (as well as the Intel 80186.) 3.0 implemented AT&T C++ 2.1, the most recent at the time. The separate Turbo Assembler product was no longer included, but the inline-assembler could stand in as a reduced functionality version.  Turbo C++ v1.01 and Turbo C v2.01 can be downloaded, free of charge, from Borland's Antique Software website.  Turbo C 3.0 (DOS) was included in the Turbo C Suite 1.0, which is no longer sold by Borland. Turbo C About • About Tool Download • Download Turbo C Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links
  • 7. Download Turbo C  https://turboc.codeplex.com/  http://sourceforge.net/projects/turbocforwindows-9/ Turbo C About • About Tool Download • Download Turbo C Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links
  • 8. Installation & configuration About • About Tool Download • Download Turbo C Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links Turbo C
  • 9. Installation & configuration About • About Tool Download • Download Turbo C Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links Turbo C
  • 10. Experiment About • About Tool Download • Download Turbo C Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links Turbo C Source Code - Input Result - Output
  • 12. About MinGW  MinGW, a contraction of "Minimalist GNU for Windows", is a minimalist development environment for native Microsoft Windows applications.  MinGW compilers provide access to the functionality of the Microsoft C runtime and some language-specific runtimes.  A port of the GNU Compiler Collection (GCC), including C, C++, ADA and Fortran compilers;  GNU Binutils for Windows (assembler, linker, archive manager)  A command-line installer, with optional GUI front-end, (mingw-get) for MinGW and MSYS deployment on MS-Windows  A GUI first-time setup tool (mingw-get-setup), to get you up and running with mingw-get. MinGW About • About Tool Download • Download MinGW Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links
  • 13. Download MinGW  Click Here for Download:  http://www.mingw.org/download/installer or  http://sourceforge.net/projects/mingw/?source=typ_redirect  After Download the setup, Please open mingw-get-setup.exe Note : Internet is required, because lib file will download from online by MinGW Installation Manager Setup Tool MinGW About • About Tool Download • Download MinGW Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links
  • 14. Installation -  Please open mingw-get-setup.exe  Press Install Button  Default Directory is C:MinGW if you want to install at different location, Press Change  Press Continue  Wait for few minute and press continue  Are you getting MinGW Installation Manager window ??  If yes, than follow the next step  As per your requirement you can select the package/options and download  Select Mingn32-gcc-g++, Mingn32-gcc-objc etc  Go to menu bar > select Installation > Apply Changes  Are you getting Popup ?? > Press Apply if you want to install  Wait for minute and Installation will be completed. MinGW About • About Tool Download • Download MinGW Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links
  • 15. MinGW  Mingw installation manager MinGW About • About Tool Download • Download MinGW Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links
  • 16. Configuration  Open the “bin” folder  <where you installed MinGW>bin, By default C:MinGWbin  Copy that Url/Path : “C:MinGWbin”  Right Click on My Computer > Properties  You can see at Left-Side-bar > “Advance System Setting”, Please Click there and goto Advance Tab  At the Advance Tab > Click on “Environment Variables”  Environment Variables > In “System Variables” Section scroll and select Path and Click on Edit Button  You will get one popup. MinGW About • About Tool Download • Download MinGW Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links
  • 17. ConfigurationMinGW About • About Tool Download • Download MinGW Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links
  • 18. ConfigurationMinGW About • About Tool Download • Download MinGW Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links
  • 19. ConfigurationMinGW About • About Tool Download • Download MinGW Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links
  • 20. Configuration  Windows 10  You will get one popup, Click on New  paste copied path of MinGW  Like : C:MinGWbin”  Click on OK button and again click on OK button  Windows 8 and Lower version of Windows  You will get one popup, First close the last path using semi-colon  Like : “%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem; %SYSTEMROOT%System32WindowsPowerShellv1.0”  Enter Semi-colon -- ; and paste copied path of MinGW  Like : “%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem; %SYSTEMROOT%System32WindowsPowerShellv1.0; C:MinGWbin”  Click on OK button and again click on OK button MinGW About • About Tool Download • Download MinGW Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links
  • 21. Configuration  Restart your system  Now you can write a program and test your path is configured or not  To update “mingw-get upgrade” MinGW About • About Tool Download • Download MinGW Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links
  • 22. Experiment  By using notepad or any other text editor write a basic program of C++  My File is in E:cpptest_cpp.cpp MinGW About • About Tool Download • Download MinGW Install • Installation & Configuration Experiments • Write a Program References • Books, Tutorials and Other Links Source Code - Input Result - Output
  • 23. References  Downloads :  https://turboc.codeplex.com/  http://sourceforge.net/projects/turbocforwindows-9/  http://www.mingw.org/download/installer  http://sourceforge.net/projects/mingw/?source=typ_redirect  Official Site: 1. http://www.turboexplorer.com/ 2. http://www.mingw.org/  Books:  http://kaslab.blogspot.in/2015/03/c-notes.html  http://kaslab.blogspot.in/2015/03/c-language-notes.html  History:  https://en.wikipedia.org/wiki/Turbo_C%2B%2B  https://en.wikipedia.org/wiki/MinGW C++