SlideShare a Scribd company logo
How to Write a Basic Program in C++
(and other helpful explanations relating to programs)


                  By: Kellie Glenn
What is an IDE?

IDE stands for Integrated Development Environment.


An IDE is a piece of software that helps programmers
write programs easier and more efficiently.
DEV - C++
What makes IDE's easier?
Different colors for different aspects of the program:




                                       VS.




Line numbers:



                                     VS.
Shows what lines errors are in:




       Keeps track of your brackets:
What is a compiler?

A piece of software that translates code written in high level languages
into machine language for the computer to read.




                                       into
What do programs consist of?

Libraries



            Functions




                        Variables




                                    And others!
What is a library?




Each library is a collection of functions, constants, classes, objects, and
other commonly used tools provided for the programmer so that they don't
have to write out or define them every time they need to be used.



                  iostream – contains information for
                         basic input and output
What is a function?




A set of instructions that perform a specific task.
What is a variable?




An allocated space in computer memory with an associated symbolic
name that contains a value.
Let's write a program!
First we'll start by including the library we are going to need to use!
Next we'll add our main function!
Now let's add a variable and some text to appear!
Now let's run our program!

More Related Content

What's hot

Compiler vs interpreter
Compiler vs interpreterCompiler vs interpreter
Compiler vs interpreter
Inamul Hossain Imran
 
Ic lecture8
Ic lecture8 Ic lecture8
Ic lecture8
AttaullahRahimoon
 
Introduction to compiler interpreter
Introduction to compiler interpreterIntroduction to compiler interpreter
Introduction to compiler interpreter
poojapainter
 
compiler vs interpreter
compiler vs interpretercompiler vs interpreter
Lecture 10
Lecture 10Lecture 10
Lecture 10
Skillspire LLC
 
Iphone app developers
Iphone app developersIphone app developers
Iphone app developers
iapp Techologies LLP
 
Language Workbenches
Language WorkbenchesLanguage Workbenches
Language Workbenches
Mikhail Barash
 
Language Translator ( Compiler)
Language Translator ( Compiler)Language Translator ( Compiler)
Language Translator ( Compiler)
Nazmul Hyder
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
Skillspire LLC
 
Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.
Md Hossen
 
Language translator
Language translatorLanguage translator
Language translator
asmakh89
 
Programming paradigm and web programming
Programming paradigm and web programmingProgramming paradigm and web programming
Programming paradigm and web programming
Mohammad Kamrul Hasan
 
Obj-C and iOS for .NET Developers
Obj-C and iOS for .NET DevelopersObj-C and iOS for .NET Developers
Obj-C and iOS for .NET Developers
escoz
 
Compilation v. interpretation
Compilation v. interpretationCompilation v. interpretation
Compilation v. interpretation
Alexander Bollbach
 
Translators(compiler assembler interpretor).
Translators(compiler assembler interpretor).Translators(compiler assembler interpretor).
Translators(compiler assembler interpretor).
JayminSuhagiya
 
Programming Language
Programming LanguageProgramming Language
Programming Language
Fahad Khan
 
Computer Language Translator
Computer Language TranslatorComputer Language Translator
Computer Language Translator
Ranjeet Kumar
 
LANGUAGE TRANSLATOR
LANGUAGE TRANSLATORLANGUAGE TRANSLATOR
Algorithm pseudocode flowchart program notes
Algorithm pseudocode flowchart program notesAlgorithm pseudocode flowchart program notes
Algorithm pseudocode flowchart program notes
ArghodeepPaul
 
DSLs: what, why, how
DSLs: what, why, howDSLs: what, why, how
DSLs: what, why, how
Mikhail Barash
 

What's hot (20)

Compiler vs interpreter
Compiler vs interpreterCompiler vs interpreter
Compiler vs interpreter
 
Ic lecture8
Ic lecture8 Ic lecture8
Ic lecture8
 
Introduction to compiler interpreter
Introduction to compiler interpreterIntroduction to compiler interpreter
Introduction to compiler interpreter
 
compiler vs interpreter
compiler vs interpretercompiler vs interpreter
compiler vs interpreter
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Iphone app developers
Iphone app developersIphone app developers
Iphone app developers
 
Language Workbenches
Language WorkbenchesLanguage Workbenches
Language Workbenches
 
Language Translator ( Compiler)
Language Translator ( Compiler)Language Translator ( Compiler)
Language Translator ( Compiler)
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.
 
Language translator
Language translatorLanguage translator
Language translator
 
Programming paradigm and web programming
Programming paradigm and web programmingProgramming paradigm and web programming
Programming paradigm and web programming
 
Obj-C and iOS for .NET Developers
Obj-C and iOS for .NET DevelopersObj-C and iOS for .NET Developers
Obj-C and iOS for .NET Developers
 
Compilation v. interpretation
Compilation v. interpretationCompilation v. interpretation
Compilation v. interpretation
 
Translators(compiler assembler interpretor).
Translators(compiler assembler interpretor).Translators(compiler assembler interpretor).
Translators(compiler assembler interpretor).
 
Programming Language
Programming LanguageProgramming Language
Programming Language
 
Computer Language Translator
Computer Language TranslatorComputer Language Translator
Computer Language Translator
 
LANGUAGE TRANSLATOR
LANGUAGE TRANSLATORLANGUAGE TRANSLATOR
LANGUAGE TRANSLATOR
 
Algorithm pseudocode flowchart program notes
Algorithm pseudocode flowchart program notesAlgorithm pseudocode flowchart program notes
Algorithm pseudocode flowchart program notes
 
DSLs: what, why, how
DSLs: what, why, howDSLs: what, why, how
DSLs: what, why, how
 

Viewers also liked

Basics of c++
Basics of c++Basics of c++
Basics of c++
nathanneiltech
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
CS_GDRCST
 
Basic Programming concepts - Programming with C++
Basic Programming concepts - Programming with C++Basic Programming concepts - Programming with C++
Basic Programming concepts - Programming with C++
Mohamed El Desouki
 
Unit 12 section 1 - computer programming
Unit 12   section 1 - computer programmingUnit 12   section 1 - computer programming
Unit 12 section 1 - computer programming
dlwadsworth
 
Basics of Coding Theory
Basics of Coding TheoryBasics of Coding Theory
Basics of Coding Theory
Piyush Mittal
 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organization
Nitesh Singh
 
Instruction codes and computer registers
Instruction codes and computer registersInstruction codes and computer registers
Instruction codes and computer registers
Sanjeev Patel
 
Lab manual of C++
Lab manual of C++Lab manual of C++
Lab manual of C++
thesaqib
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
mekind
 
C++ TUTORIAL 9
C++ TUTORIAL 9C++ TUTORIAL 9
C++ TUTORIAL 9
Farhan Ab Rahman
 
CO by Rakesh Roshan
CO by Rakesh RoshanCO by Rakesh Roshan
CO by Rakesh Roshan
Rakesh Roshan
 
Coding
CodingCoding
Coding standard
Coding standardCoding standard
Coding standard
FAROOK Samath
 

Viewers also liked (13)

Basics of c++
Basics of c++Basics of c++
Basics of c++
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
 
Basic Programming concepts - Programming with C++
Basic Programming concepts - Programming with C++Basic Programming concepts - Programming with C++
Basic Programming concepts - Programming with C++
 
Unit 12 section 1 - computer programming
Unit 12   section 1 - computer programmingUnit 12   section 1 - computer programming
Unit 12 section 1 - computer programming
 
Basics of Coding Theory
Basics of Coding TheoryBasics of Coding Theory
Basics of Coding Theory
 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organization
 
Instruction codes and computer registers
Instruction codes and computer registersInstruction codes and computer registers
Instruction codes and computer registers
 
Lab manual of C++
Lab manual of C++Lab manual of C++
Lab manual of C++
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
C++ TUTORIAL 9
C++ TUTORIAL 9C++ TUTORIAL 9
C++ TUTORIAL 9
 
CO by Rakesh Roshan
CO by Rakesh RoshanCO by Rakesh Roshan
CO by Rakesh Roshan
 
Coding
CodingCoding
Coding
 
Coding standard
Coding standardCoding standard
Coding standard
 

Similar to Cs101

Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution ppt
Keerty Smile
 
Comp2
Comp2Comp2
W3CERT Computer Software M2
W3CERT Computer Software M2W3CERT Computer Software M2
W3CERT Computer Software M2
HemaHeloise
 
Chapter1.pdf
Chapter1.pdfChapter1.pdf
Chapter1.pdf
tharwatabdulhmed
 
Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)
Chao-Lung Yang
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
Ali Raza
 
Code learning
Code learningCode learning
Code learning
Vikas kumar
 
Software requirement
Software requirementSoftware requirement
Software requirement
madhukarreddy007
 
Compiler design slide share
Compiler design slide shareCompiler design slide share
Compiler design slide share
Sudhaa Ravi
 
Software environment
Software environmentSoftware environment
Software environment
Kinnudj Amee
 
SYSTEM DEVELOPMENT
SYSTEM DEVELOPMENTSYSTEM DEVELOPMENT
SYSTEM DEVELOPMENT
shahzadebaujiti
 
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
AmanGunner
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
Gaditek
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
Gaditek
 
df
dfdf
Chapter 5-programming
Chapter 5-programmingChapter 5-programming
Chapter 5-programming
Aten Kecik
 
Introduction of C Programming
Introduction of C ProgrammingIntroduction of C Programming
Introduction of C Programming
Dr. Ranjan Kumar Mishra
 
Classification Of Software
Classification Of SoftwareClassification Of Software
Classification Of Software
py7rjs
 
Chapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptxChapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptx
dawod yimer
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
Noel Malle
 

Similar to Cs101 (20)

Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution ppt
 
Comp2
Comp2Comp2
Comp2
 
W3CERT Computer Software M2
W3CERT Computer Software M2W3CERT Computer Software M2
W3CERT Computer Software M2
 
Chapter1.pdf
Chapter1.pdfChapter1.pdf
Chapter1.pdf
 
Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
 
Code learning
Code learningCode learning
Code learning
 
Software requirement
Software requirementSoftware requirement
Software requirement
 
Compiler design slide share
Compiler design slide shareCompiler design slide share
Compiler design slide share
 
Software environment
Software environmentSoftware environment
Software environment
 
SYSTEM DEVELOPMENT
SYSTEM DEVELOPMENTSYSTEM DEVELOPMENT
SYSTEM DEVELOPMENT
 
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
df
dfdf
df
 
Chapter 5-programming
Chapter 5-programmingChapter 5-programming
Chapter 5-programming
 
Introduction of C Programming
Introduction of C ProgrammingIntroduction of C Programming
Introduction of C Programming
 
Classification Of Software
Classification Of SoftwareClassification Of Software
Classification Of Software
 
Chapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptxChapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptx
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 

Cs101

  • 1. How to Write a Basic Program in C++ (and other helpful explanations relating to programs) By: Kellie Glenn
  • 2. What is an IDE? IDE stands for Integrated Development Environment. An IDE is a piece of software that helps programmers write programs easier and more efficiently.
  • 4. What makes IDE's easier? Different colors for different aspects of the program: VS. Line numbers: VS.
  • 5. Shows what lines errors are in: Keeps track of your brackets:
  • 6. What is a compiler? A piece of software that translates code written in high level languages into machine language for the computer to read. into
  • 7. What do programs consist of? Libraries Functions Variables And others!
  • 8. What is a library? Each library is a collection of functions, constants, classes, objects, and other commonly used tools provided for the programmer so that they don't have to write out or define them every time they need to be used. iostream – contains information for basic input and output
  • 9. What is a function? A set of instructions that perform a specific task.
  • 10.
  • 11. What is a variable? An allocated space in computer memory with an associated symbolic name that contains a value.
  • 12. Let's write a program!
  • 13. First we'll start by including the library we are going to need to use!
  • 14. Next we'll add our main function!
  • 15. Now let's add a variable and some text to appear!
  • 16. Now let's run our program!