Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Computer Programming: Computer Programming: 5 Books in 1 - Comprehensive Coding Course to Mastering C# and C++ Languages from Beginner to Expert Level
Computer Programming: Computer Programming: 5 Books in 1 - Comprehensive Coding Course to Mastering C# and C++ Languages from Beginner to Expert Level
Computer Programming: Computer Programming: 5 Books in 1 - Comprehensive Coding Course to Mastering C# and C++ Languages from Beginner to Expert Level
Ebook1,089 pages9 hours

Computer Programming: Computer Programming: 5 Books in 1 - Comprehensive Coding Course to Mastering C# and C++ Languages from Beginner to Expert Level

Rating: 0 out of 5 stars

()

Read preview

About this ebook

? 5-in-1 Bundle = 1 Ultimate Guide ?

✅ Best Value for Your Money ✅ Master Two Powerful Languages ✅ Complete Comprehensive Guide

 

Are you excited to delve into the fascinating world of coding? Do you yearn for a clear, step-by-step approach to programming? Look no further than the comprehensive guide titled "C# & C++: 5 Books in 1 - The Ultimate Coding Course from Novice to Expert"!

This all-encompassing guide is your passport to mastering both C# and C++ swiftly and efficiently. Whether you're a beginner or an experienced programmer, our user-friendly instructions will have you writing code in no time.

Here's what you can expect:

Seamlessly progress from beginner to advanced levels.
Bridge theory with practice through immediate application of concepts.
Bid farewell to dull manuals and embrace interactive learning.
Discover essential tools and strategies suitable for beginners and experts alike.
Acquire real-world application skills through practical exercises and examples.

Embark on a coding journey that covers the following:

C# - Book 1

Introduction to C# fundamentals
Data types, variables, and expressions
Class definition and implementation
Working with text files
And more…

C# - Book 2

Advanced decision-making and control flow
Functions and garbage collection
Asynchronous programming
And more…

C# - Book 3

Advanced language features and class libraries
Attribute-based programming
Windows Presentation Foundation (WPF)
ASP .NET and .NET CORE
And more…

C++ - Book 1

Setting up a C++ development environment
Operations, loops, and decision-making
Syntax, data types, and variables
Custom function creation
And more…

C++ - Book 2

Basic concepts, classes, and objects
Input and output streams
Polymorphism
And much more…

With this practical 5-in-1 guide, unlock your programming potential and enhance your coding prowess. Start creating your own programs efficiently and effectively today! ??

LanguageEnglish
PublisherLena Neill
Release dateFeb 26, 2024
ISBN9798224375769
Computer Programming: Computer Programming: 5 Books in 1 - Comprehensive Coding Course to Mastering C# and C++ Languages from Beginner to Expert Level

Read more from Lena Neill

Related to Computer Programming

Related ebooks

Programming For You

View More

Related articles

Reviews for Computer Programming

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Computer Programming - Lena Neill

    Computer Programming

    5 Books in 1 - Comprehensive Coding Course to Mastering C# and C++ Languages from Beginner to Expert Level

    Lena Neill

    © copyright 2023 - all rights reserved.

    The content contained within this book may not be reproduced, duplicated or transmitted without direct written permission from the author or the publisher.

    Under no circumstances will any blame or legal responsibility be held against the publisher, or author, for any damages, reparation, or monetary loss due to the information contained within this book, either directly or indirectly.

    Legal notice:

    This book is copyright protected. it is only for personal use. you cannot amend, distribute, sell, use, quote or paraphrase any part, or the content within this book, without the consent of the author or publisher.

    Disclaimer notice:

    Please note the information contained within this document is for educational and entertainment purposes only. all effort has been executed to present accurate, up to date, reliable, complete information. no warranties of any kind are declared or implied. readers acknowledge that the author is not engaged in the rendering of legal, financial, medical or professional advice. the content within this book has been derived from various sources. please consult a licensed professional before attempting any techniques outlined in this book.

    By reading this document, the reader agrees that under no circumstances is the author responsible for any losses, direct or indirect, that are incurred as a result of the use of the information contained within this document, including, but not limited to, errors, omissions, or inaccuracies.

    TABLE OF CONTENTS

    C++

    Introduction

    Chapter 1: setting up a c++ development environment

    Chapter 2: basics of c++, principles of programming

    Chapter 3: variables and data types

    Chapter 4: operations in c++

    Chapter 5: decision making in c++

    Chapter 6: creating functions

    Conclusion

    References

    C++

    Introduction

    Chapter one: getting started with c++ programming

    Chapter two: basic concepts in object oriented programming

    Chapter three: working with classes and objects

    Chapter four: extending classes via inheritance

    Chapter five: polymorphism

    Chapter six: constructors and destructors

    Chapter seven: templates

    Chapter eight: c++ input and output streams

    Chapter nine: exception handling

    Final words

    References

    C#

    Introduction

    Chapter 1: c# an overview

    Chapter 2: types and variables

    Chapter 3: operators and expressions

    Chapter 4: console input and output

    Chapter 5: conditional statements

    Chapter 8: numeral systems

    Chapter 9: c# methods

    Chapter 10: recursion

    Chapter 11: exception handling

    Chapter 12: strings and text processing

    Chapter 13: defining classes

    Chapter 14: working with text files

    Chapter 15: data structures

    Conclusion

    C#

    Chapter 1: introduction - setup and history of c#

    Chapter 2: c# interfaces

    Chapter 3: namespaces

    Chapter 4: advanced decision statements and flow control

    Chapter 5: reflection

    Chapter 6: collections

    Chapter 7: indexers

    Chapter 8: generics

    Chapter 9: garbage collection

    Chapter 10: lambda expressions and expression trees

    Chapter 11: nullable types

    Chapter 12: anonymous types

    Chapter 13: linq

    Chapter 14: the factory and composite pattern

    Chapter 15: the observer pattern

    Chapter 16: the facade pattern

    Chapter 17: asynchronous programming

    Chapter 18: game development

    C#

    Introduction

    Chapter 1: advanced c# language features

    Chapter 2: building class libraries

    Chapter 3: type reflection and late binding

    Chapter 4: attribute-based programming

    Chapter 5: cil and dynamic assemblies

    Chapter 6: windows presentation foundation

    Chapter 7: asp .net

    Chapter 8: net core

    Conclusion

    Z z

    Z

    C++

    Z z

    Thez zultimatez zbeginnersz zguidez ztoz zlearnz zc++z zprogrammingz zstep-by-stepz z

    Z z

    Introductionz z

    Thisz zbookz zisz zfitz zforz zbe,ginne,rsz zandz zforz zcode,rsz zwhoz zare,z zinte,re,ste,dz zinz zge,ttingz zintoz zbacke,ndz zprogramming.z zalthoughz zc++z zisz zsome,time,sz zportraye,dz zasz zaz zspe,cte,rz zofz zdaysz zpast,z zthe,z zlanguage,z zisz zstillz zwithz zusz zandz zitz zcontinue,sz ztoz zbe,z zbe,hindz zsome,z zofz zthe,z zbigge,stz zte,chnologie,sz zwe,z zuse,z ztoday–notz zme,ntioningz zitsz zbigz zimprintz zinz zthe,z zgamingz zworld.z zitsz zpowe,rz zandz zve,rsatilityz zcontinue,z ztoz zmake,z zitz zone,z zofz zthe,z zmostz zimportantz zlanguage,sz zofz zourz ztime,.z zitz zisz znotz zgoingz zanywhe,re,z zandz zle,arningz zitz zwillz ze,xpandz zyourz zhorizons.z z

    C++z zisz zofte,nz zutilize,dz zasz zaz zbacke,ndz zlanguage,z zforz zbigz zdataz zbe,cause,z zofz zitsz zlittle,z zproce,ssingz zove,rhe,ad.z zcompanie,sz zlike,z zspotify,z zadobe,,z zyoutube,,z zandz zamazonz zpowe,rz zthe,irz zbacke,ndz zwithz zc++,z zandz zyouz zwillz zsoonz zse,e,z zwhy.z z

    C++z zisz zalsoz zbe,hindz zpowe,rfulz zgamingz ze,ngine,s.z zgamingz ze,ngine,sz zallowz zprogramme,rsz ztoz zbuildz zaz zgame,z zwithoutz zcodingz ze,ve,rythingz zfromz zscratchz zandz ztoz ze,ffe,ctive,lyz zre,nde,rz zconte,nt.z zthe,z zunityz zgame,z ze,ngine,z zandz zthe,z zunre,alz ze,ngine,z zare,z ze,xample,sz zofz zgamingz ze,ngine,sz zthatz zrunz zonz zc++.z z

    C++z zisz zaz zbe,autiful,z ze,fficie,ntz zlanguage,z zbe,cause,z zofz zthe,z zfavorable,z zpowe,r/hardware,z zratio:z zitz zuse,sz zlittle,z zhardware,z zforz zthe,z zamountz zofz zpowe,rz zitz zgive,sz zus.z zthisz zisz zwhyz zthose,z zwhoz zle,arnz zitz zlove,z zit.z z

    Inz zthisz zbookz zwe,z zwillz zcove,rz zthe,z zfollowingz ztopics:z z

    Programmingzzte,rminologyzzandzzprinciple,szzinzzprogrammingzz

    Se,ttingzzupzzazzc++zze,nvironme,ntzz

    Ge,ttingzzstarte,d:zzsyntax,zzdatazztype,s,zzandzzvariable,szz

    Powe,rzzofzzc++:zzope,rations,zzloops,zzswitche,s,zzandzzde,cisionzzmakingzz

    Cre,atingzzcustomzzfunctionszzinzzc++zz

    Youz zwillz zalsoz zfindz zaz zuse,fulz zglossaryz zatz zthe,z ze,ndz zsoz zthatz zyouz zcanz zuse,z zthe,z zbookz zasz zaz zre,fe,re,nce,z zonce,z zyouz zge,tz zcracking.z z

    Z z

    Z z

    Z z

    Chapte,rz z1:z zse,ttingz zupz zaz zc++z zde,ve,lopme,ntz ze,nvironme,ntz z

    Atz zitsz zmostz zbasic,z zprogrammingz zisz zwritingz zaz zlistz zofz zinstructionsz zinz zcode,z zthatz zthe,z zmachine,z zcanz zunde,rstand.z zthe,z zcode,z zre,side,sz zinz ze,xe,cutable,sz zfile,s.z zthe,se,z zfile,sz zcome,z zwithz zfile,z ze,xte,nsionsz zthatz zte,llz zaz zcompile,rz zwhatz zlanguage,z zisz zinz zthe,z zfile,.z zthe,se,z ze,xte,nsionsz zare,z zthe,z zsuffixe,sz zyouz zofte,nz zse,e,z zatz zthe,z ze,ndz zofz zthe,z zfile,,z zlike,z z.js.z z.cppz zorz z.hpp.z z

    Toz zwrite,z zcode,z zandz zsave,z zitz zinz zanz ze,xe,cutable,z zfile,z zyouz zne,e,dz zthe,z zfollowingz zthings:z z

    Azzte,xtzze,ditor:zzthiszzwillzzallowzzyouzztozzwrite,zzandzze,ditzzthe,zzcode,.zz

    Azzlanguage,zzcompile,r:zzthiszzprogramzztake,szzthe,zzcode,zzyouzzhave,zzwritte,nzzandzztranslate,szzitzzintozzmachine,zzlanguage,zzthatzzyourzzcompute,rzzcanzzunde,rstandzzandzzfollow.zz

    Allz zprogrammingz zlanguage,sz zworkz zlike,z zthisz ze,xce,ptz zhtml,z zcss,z zandz zjavascriptz z-z zthe,se,z zprogramsz zare,z zinte,rpre,te,dz zandz ze,xe,cute,dz zbyz zthe,z zbrowse,rz z(introduction,z zn.d.).z zthisz zme,ansz zbrowse,rz zlanguage,sz zlike,z zjavascriptz zare,z zsoftware,-base,d,z zwhile,z zc++z zisz zcompile,dz zandz zthe,nz zrunz zdire,ctlyz zonz zyourz zmachine,,z znotz zinz zaz zsoftware,z ze,nvironme,nt.z z

    Thisz zme,ansz zc++z zisz zanz zasse,mblyz zlanguage,.z zasse,mblyz zlanguage,sz zare,z zlow-le,ve,lz zprogrammingz zlanguage,sz zthatz zne,e,dz zaz zcompile,rz zsoz zthe,yz zcanz zrunz zonz zaz zmachine,z z(lithme,e,,z z2018).z zinz zthisz zconte,xt,z zthe,z zwordz zlow-le,ve,lz zdoe,sz znotz zcarryz zaz zbadz zconnotation;z zitz zisz zde,scriptive,,z zme,aningz zthatz zthe,z zlanguage,z zisz zclose,rz ztoz zthe,z zmachine,z zorz zjustz zaz zste,pz zawayz zfromz zit.z z

    Asz zyouz zcanz zprobablyz zgue,ss,z zc++z zisz zaz zge,ne,ral-purpose,z zlanguage,z zthatz zcanz zrunz zalmostz zanywhe,re,.z zthisz zme,ansz zitz zcanz zbe,z zasse,mble,dz zandz zcompile,dz zinz zse,ve,ralz zdiffe,re,ntz zways.z zthisz zwillz zlarge,lyz zde,pe,ndz zonz zyourz zope,ratingz zsyste,mz zandz zthe,z zcre,ationz zutilitie,sz zyouz zare,z zusing.z z

    Ourz zc++z ze,xe,rcise,sz zwillz zbe,z zcompile,dz zonz zanz zonline,z zide,.z zide,z zstandsz zforz zinte,grate,dz zde,ve,lopme,ntz ze,nvironme,ntz zandz zitz zisz zuse,dz ztoz ze,ditz zandz zcompile,z zcode,.z ziz zbe,tz zthatz zde,scriptionz zsoundsz zfamiliar.z zye,s,z zanz zide,z zisz zanz ze,xample,z zofz zaz zte,xtz ze,ditor,z zbutz zunlike,z zaz zplainz zte,xtz ze,ditor,z zitz zhasz ze,xtraz zfe,ature,sz zthatz zare,z zimportantz ztoz zthe,z zprogrammingz zproce,ss.z zanz zide,z zcanz zdoz zthingsz zlike,z zcompile,z zcode,,z zde,bugz zcode,,z zhighlightz zcode,,z zwarnz zyouz zofz zsyntaxz ze,rrors,z zandz zmore,.z z

    image44.png

    z z

    Ge,e,ksz zforz zge,e,ksz zide,:z zaz zwe,b-base,dz zprogramz zcompile,rz z

    Thisz zide,z zcanz zbe,z zfoundz zatz zhttps://ide,.ge,e,ksforge,e,ks.org/z zandz zhasz zse,ve,ralz zprogrammingz zlanguage,s.z zwe,z zwillz zbe,z zfocusingz zonz zc++.z zthisz zide,z zhasz zmanyz zcodingz zutilitie,s:z zaz ztabbe,dz zworkingz zspace,,z zanz zinputz zbox,z zandz zaz zcode,z zmanage,r.z zthisz zcode,z zmanage,rz zinclude,sz zthe,z ztwoz zbottomz zbuttonsz zhighlighte,dz zonz zthe,z zle,ft.z zthe,se,z zcode,z zmanage,rz zbuttonsz zallowz zyouz ztoz zdownloadz zandz zuploadz zcode,z zasz zfile,sz zwithz zthe,irz zcorre,spondingz zfile,z ze,xte,nsion.z zthisz zide,z zalsoz zallowsz zyouz ztoz zrunz zandz zge,ne,rate,z zaz zurlz zthatz zsave,sz zthe,z zre,sult.z zwe,’llz zbe,z zusingz zthe,se,z zge,ne,rate,dz zurlsz ztoz zmanage,z zourz zle,ssons.z z

    Inz zthisz zbook,z zwe,z zwillz zuse,z zaz zge,e,ksz zforz zge,e,ksz zwe,b-base,dz zide,,z zbutz zyouz zshouldz zle,arnz ztoz zse,tz zupz zaz zlocalz zide,.z zforz zthe,z zmajorityz zofz zyourz zprogrammingz zcare,e,r,z zthatz zisz zwhe,re,z zyouz zwillz zbe,z zworking.z zplus,z zyouz zcanz zcustomize,z zthe,z zide,z ztoz zfitz zyourz zne,e,dsz zandz zspruce,z zupz zyourz zcode,.z z

    Se,ttingz zupz zyourz zte,xtz ze,ditorz z

    Ide,z ze,nvironme,ntsz zthatz zare,z zfocuse,dz zonz zprogrammingz zalwaysz zhave,z ztoz zhave,z zaz zte,xtz ze,ditorz zandz zaz zcompile,rz zwithinz zthe,m.z znon-ide,z ze,nvironme,ntsz zse,parate,z zcompile,rsz zandz zplainz zte,xtz ze,ditors.z zthe,z zte,xtz ze,ditorz zse,rve,sz zasz zaz zprogrammingz zinte,rface,z zinz znon-ide,z zse,tups;z zthisz zsimplyz zme,ansz zthe,z zte,xtz ze,ditorz zwillz zbe,z zthe,z zplace,z zyouz ztinke,rz zwithz zthe,z zcode,.z z

    Text Box 56

    z z

    Whe,nz zlookingz zforz zaz zte,xtz ze,ditor,z zyouz zne,e,dz zone,z zwithz zsyntaxz zhighlightingz zandz zinde,ntingz zasz zallz zprogrammingz zlanguage,sz zfollowz zthe,irz zsyntax.z zthisz zisz zbe,cause,z zyouz zwantz ztoz zbe,z zable,z ztoz zre,adz zyourz zcode,z ze,asilyz zandz zyouz zwantz zcollaboratorsz ztoz zbe,z zable,z ztoz zdoz zso,z ztoo.z zthe,se,z zte,xtz ze,ditorsz zhe,lpz zbyz zimprovingz zre,adability.z zthisz zisz ze,spe,ciallyz zimportantz zbe,cause,z zcodingz zisz znoz zlonge,rz zandz zhasz zne,ve,rz zbe,e,nz zaz zsolitaryz ztask.z zthe,re,z zisz znoz zone,-manz zge,niusz zlike,z zinz zthe,z zmovie,s.z z

    Githubz zandz zpaste,binz zare,z zcode,z zaggre,gatorsz zthatz zhave,z zsyntaxz zhighlightingz zadd-onsz ze,nable,d.z zgithubz zwillz zallowz zyouz ztoz zhostz zyourz ze,ntire,z zproje,ctz zonz zthe,irz zsite,,z zwhile,z zpaste,binz zonlyz zallowsz zcode,z zsnippe,ts.z zonz zthe,se,z zplatforms,z zyouz zcanz zsave,z zcode,z zinz zaz zvarie,tyz zofz zlanguage,s.z z

    The,yz zare,z zve,ryz zuse,fulz ztoz zprogramme,rsz zbe,cause,z zthe,yz zallowz zprogramme,rsz ztoz zshare,z zcode,,z zcollaborate,,z zte,st,z zandz zsoz zforth.z zle,arningz zhowz ztoz zde,ployz zaz zproje,ctz ztoz zgithubz zisz zone,z zofz zthe,z zmostz zimportantz zthingsz zinz zprogrammingz zbe,cause,z zitz zhasz zbe,come,z zsoz zstandardize,d.z zso,z zmaintainingz zaz zgithubz zprofile,z zhasz zalsoz zbe,come,z zimportant,z zasz zitz zholdsz zallz zthe,z zproje,ctsz zyouz zare,z zworkingz zon,z zhave,z zworke,dz zon,z zandz zyourz zactivityz z(pe,she,v,z z2017).z ztoz zaz zpote,ntialz ze,mploye,rz zorz zcollaborator,z zthisz zinformationz zisz zinvaluable,.z z

    image34.png

    z z

    C++z zcode,z zsyntaxz ze,xample,z z

    Thisz zisz zaz zscre,e,nshotz zfromz zpaste,z zbinz zwithz zsyntaxz zhighlightingz ze,nable,dz z(c++z zcode,,z z2015).z zsyntaxz zhighlightingz zandz ztabbe,dz zspacingz zhe,lpz zwithz zmakingz zthe,z zcode,z zmore,z zcompre,he,nsible,.z zallz zte,xtz ze,ditorsz zwithz zsyntaxz zhighlightingz zwillz zuse,z zthisz zsche,me,:z zlibrarie,sz zinz zgre,e,n,z zandz zfunctions,z zdataz ztype,s,z zandz zdataz zinz zblue,.z zstringsz zwillz zshowz zupz zasz zre,d.z z

    Whe,nz zyouz zare,z zworkingz zlocallyz zyouz zwillz znotz zhave,z zluxurie,sz zlike,z zthe,se,z zre,adilyz zavailable,.z zthe,z zfirstz zte,xtz ze,ditorz zyouz zwillz zfindz zonz zyourz zsyste,mz zifz zyouz zare,z zusingz zwindowsz zisz znote,pad.z zwordpadz zisz zanothe,rz zone,z zthatz zhasz zmore,z zguiz zfe,ature,s.z zwhatz zyouz zwillz znotice,z zasz zyouz zope,nz zthe,se,z zprogramsz zisz zhowz zplainz zandz zboringz zthe,yz zare,.z zthe,yz zare,z zlike,z zwordz zbutz zworse,,z zbe,cause,z zthe,yz zshouldn’tz zbe,z zsimple,z zwordz zproce,ssorsz zifz zwritingz ze,fficie,nt,z ze,le,gantz zcode,z zisz zimportantz ztoz zus.z zthe,irz zwordz zproce,ssor-like,z zaspe,ctsz zmake,z zthe,mz zmore,z zsuitable,z zforz zwritingz zwordsz zinz zthe,m,z znotz zcode,,z zalthoughz zyouz zcanz zcode,z zinz zthe,m.z z

    image7.png

    z z

    Side,-by-side,z zcomparisonz zofz zwindows’z znote,padz zutilityz zandz zwordpadz zutilityz z

    Thisz zisz zaz zscre,e,nshotz zthatz zfe,ature,sz ztwoz zofz zwindows’z zbuilt-inz zutilitie,s,z znote,padz zonz zthe,z zle,ftz zandz zwordpadz zonz zthe,z zright.z zwordpadz zhasz zmore,z zmicrosoftz zsuite,z zguiz zfe,ature,sz zthatz zmayz zbe,z zmore,z zre,cognizable,z ztoz zyou,z zincludingz zmicrosoft'sz zquickz zacce,ssz zbarz zlocate,dz zabove,z zthe,z zhighlighte,dz zfile,z ztab.z znote,padz zisz zve,ryz zbare,-bone,sz zinz zcomparison.z zbothz zutilitie,s,z zunlike,z zwordz zproce,ssors,z zallowz zyouz ztoz zsave,z zinz zdiffe,re,ntz zfile,z ze,xte,nsions.z zhowe,ve,r,z zwordpadz zisz zmore,z zsimilarz ztoz zaz zwordz zproce,ssorz zthanz znote,pad,z zsavingz zfile,sz zinz zrichz zte,xtz zformatz z(.rtf).z zwordpadz zwillz zwarnz zyouz zthatz zyouz zwillz zlose,z zformattingz zifz zyouz zsave,z zinz zanz ze,xte,nsionz zothe,rz zthanz zrichz zte,xtz zformat.z z

    Whatz zmake,sz znote,padz zandz zwordpadz zunique,z zisz zthatz zthe,yz zcanz zsave,z zfile,sz zinz zaz zvarie,tyz zofz zfile,z ze,xte,nsions,z zwhile,z zwordz zproce,ssorsz zcannot.z zfile,z ze,xte,nsionsz zare,z zimportantz zbe,cause,z zthe,yz zte,llz zthe,z zcompile,rz zhowz ztoz zinte,rpre,tz zwhatz zisz zwritte,nz zinz zthe,z zfile,,z zandz zthatz zle,adsz ztoz zthe,z zmachine,z zhavingz zaz zse,tz zofz zinstructionsz zitz zcanz zunde,rstandz zandz ze,xe,cute,.z z

    De,spite,z zthe,irz zabilitie,s,z zthe,se,z ztwoz zprogramsz zlackz zcrucialz zte,xtz ze,ditorz zfe,ature,sz zlike,z zsyntaxz zhighlighting.z zyouz zmightz zthinkz zthisz zisz znoz zbigz zde,al,z zbutz zitz zis;z zthe,z zsame,z zwordsz zinz zcode,z zcanz zme,anz zdiffe,re,ntz zthingsz zbe,cause,z zofz zhowz zandz zwhe,nz zthe,yz zappe,ar,z zsoz zhighlightingz zhe,lpsz zusz zdistinguishz zwhatz zthe,yz zre,fe,rz zto.z zsoz zifz ze,ve,rythingz zisz zplain,z zblackz zandz zwhite,,z zyouz zhave,z ztoz zworkz zharde,rz ztoz zfigure,z zoutz zwhatz zaz zpie,ce,z zofz zcode,z zre,fe,rsz zto.z zitz zsoundsz zcomple,xz znow,z zbutz zonce,z zyouz zcode,z zthisz zwillz zbe,come,z zobviousz zandz zne,ce,ssary.z z

    Note,pad++,z znotz ztoz zbe,z zconfuse,dz zwithz zwindows’z znote,pad,z zhasz zhighlightingz zfe,ature,sz zbutz zyouz zwillz zhave,z ztoz zactivate,z zthe,mz zlike,z zso:z z

    image1.png

    z z

    Scre,e,nshotz zofz znote,padz z++z zwithz zc++z zsyntaxz z

    Note,padz z++z zisz zfre,e,z zand,z zasz zthe,z zname,z zsugge,sts,z zwasz zprogramme,dz zinz zc++.z zthisz zscre,e,nshotz zillustrate,sz zhowz ztoz ze,nable,z zlanguage,z zsyntax.z zc++z zsyntaxz zcanz zspe,cificallyz zbe,z ze,nable,dz zbyz zgoingz ztoz zlanguage,z z>cz z>z zandz znavigatingz ztoz zc++.z znote,pad++z zisz zonlyz zavailable,z zonz zthe,z zwindowsz zplatformz z(orin,z zn.d.).z z

    Blue,fishz zisz zaz zmore,z zadvance,dz zte,xtz ze,ditorz zthatz zcome,sz zwithz zmore,z zfe,ature,sz z(blue,fishz ze,ditor:z zfe,ature,s,z zn.d.).z zunlike,z znote,pad++,z zblue,fishz zisz zavailable,z zonz zmultiple,z zplatformsz zothe,rz zthanz zwindows.z zbutz ziz zwouldz znotz zre,comme,ndz zblue,fishz zforz zbe,ginne,rsz zbe,cause,z zitz zhasz zaz zlotz zofz zfe,ature,sz zthatz zcanz zbe,z zove,rwhe,lmingz ztoz zaz zcomple,te,z zbe,ginne,r.z zifz zyouz zare,z znotz zne,wz ztoz zprogrammingz zyouz zcanz zgoz zgive,z zitz zaz zshot;z zyouz zwillz zfindz zitz zhasz zmanyz zofz zthe,z zguiz zfe,ature,sz ztypicalz zofz zanz zide,z zte,xtz ze,ditor.z z

    Once,z zinz zthe,z zte,xtz ze,ditor,z zyouz zmustz zse,le,ctz zaz zcompile,r.z znowz zle,tz zme,z zshowz zyouz zhowz zyouz zwouldz zse,tz zupz zyourz zlocalz ze,nvironme,ntz zonz zthre,e,z zplatforms:z zwindows,z zlinux,z zandz zmac.z z

    Windowsz zide,z zinstallationz zandz zse,tupz z

    Allz zyouz zne,e,dz ztoz zdoz zisz ztoz zinstallz zanz zide,.z zjustz zre,me,mbe,rz zthatz zitz zhasz ztoz zhave,z zaz zte,xtz ze,ditorz zandz zaz zcompile,rz zwithinz zit.z zcode,::blocksz zisz zaz zuse,ful,z zope,n-source,z zide,z zmade,z zforz zc++z zandz zitz ze,asilyz zfitsz zwithz zaz zvarie,tyz zofz zcompile,rsz zincludingz zmicrosoft'sz zvisualz zc++.z zinstallingz zcode,::blockz zisz ze,asy.z zyouz zjustz zhave,z ztoz zgoz ztoz zthe,irz zdownloadsz zpage,z zatz zhttp://www.code,blocks.org/downloads/26z zandz zse,le,ctz zthe,z zlate,stz zve,rsion.z z

    image13.png

    z z

    Code,::blocksz zdownloadz zpage,z z

    Asz zofz zthisz zwriting,z zcode,::blocksz zhasz zve,rsionz z20.03z zforz zwindowsz zandz zlinuxz zdistributions.z zthe,z zpage,z zalsoz zinclude,sz zhe,lpfulz znote,sz zforz zinstallation.z z

    Once,z zthe,z zprogramz zisz zinstalle,d,z zyouz zare,z zse,t.z zyouz zcanz zuse,z zitz ztoz zwrite,z zc++z zprograms.z ztoz zdoz zsoz zyouz zhave,z ztoz zfollowz zthre,e,z zste,ps:z zcre,atingz zaz zfile,,z zbuildingz zthe,z zprogram,z zandz zrunningz zthe,z zprogram.z z

    Cre,atingz zaz zne,wz zfile,z zisz zaz zbitz zmore,z znuance,d.z zhe,re,z zisz zwhatz zyouz zhave,z ztoz zdo:z z

    Gozztozzfile,zz>zzne,wzz

    Se,le,ctzzcre,ate,zzanzze,mptyzzfile,zzandzzinputzzyourzzcode,zz

    Save,zzthe,zzfile,zzwithzzazz.cppzze,xte,nsionzz

    And,z zne,e,dle,ssz ztoz zsay,z zyouz zhave,z ztoz zbuildz zaz zprogramz zbe,fore,z zyouz zcanz zrunz zit.z zyouz zcanz zdoz zthisz zbyz zgoingz ztoz zbuildz z>z zbuildz zandz zrunz zinz zthe,z zme,nu.z z

    image20.png

    z z

    Scre,e,nshotz zofz zhe,lloz zworldz zinz zcode,::blocksz z

    Thisz zisz zaz zlive,z zscre,e,nshotz zofz zourz zhe,lloz zworldz zprogramz zinz zcode,z zblocks.z zafte,rz zthisz zprogramz zisz zrun,z zanz ze,rrorz zshowsz zupz zinz zthe,z zbuildz zme,ssage,sz zofz zthe,z zcode,.z zcode,::blocksz zhighlightsz zthe,z ze,rrorz zonz zline,z z6.z zgive,nz zyourz zknowle,dge,z zofz zc++z zsyntaxz zfromz zthe,z ze,arlie,rz zse,ction,z zyouz zshouldz zse,e,z zhowz ztoz zre,pairz zthe,z zcode,.z zhowz zcanz zwe,z zre,pairz zthe,z zcode,?z z

    Hint:z zdataz zandz zfunctionsz zare,z zsuppose,dz ztoz zshowz zupz zinz zblue,.z z

    Byz zthe,z zway,z zthisz zprogramz zisz zve,ryz zlightwe,ightz zforz zthe,z zamountz zofz zworkz zitz zallowsz zyouz ztoz zdo.z zcode,::blockz zisz zavailable,z zonz zwindowsz zandz zlinux,z zbutz zthe,re,z zisz znoz zmacz zve,rsion.z z

    Macz zosz zide,z zinstallationz zandz zse,tupz z

    Forz zmac,z zyouz zwillz zne,e,dz ztoz zge,tz zxcode,.z zitz zisz zaz zfre,e,z zide,z zsoftware,z zde,ve,lopme,ntz zsuite,z zforz zmacos.z zyouz zcanz zge,tz zitz zonz zthe,z zmacz zappz zstore,.z zxcode,z zsupportsz zaz zvarie,tyz zofz zothe,rz zlanguage,sz zlike,z zjava,z zpython,z zandz zruby.z z

    Itz zisz zge,are,dz ztowardz zde,ve,lopingz zsoftware,z zforz zmacosz zope,ratingz zsyste,ms;z zthisz zcanz zbe,z zforz zthe,z ztvosz zforz zapple,tv,z zwatchosz zforz zapple,z zwatche,s,z zandz zthe,z zipadosz zforz zipadz ztable,tsz z(what’sz zne,wz zinz zxcode,z z9,z zn.d.).z zxcode,z zoffe,rsz zaz zvarie,tyz zofz zsoftware,z zde,ve,lopme,ntz zkitsz z(sdks)z zforz zdiffe,re,ntz zmacosz zplatformsz ztoz zhe,lpz zprogramme,rsz zthroughz zapple,’sz zproprie,taryz zprogrammingz zsche,me,s.z zsdksz zare,z zaz zse,tz zofz ztools,z zprovide,dz zbyz zhardware,z zandz zsoftware,z zve,ndors,z zuse,dz zforz zde,ve,lopingz zapplicationsz zforz zspe,cificz zplatformsz z(what’sz zne,wz zinz zxcode,z z9,z zn.d.).z zsdksz zallowz zde,ve,lope,rsz ztoz zbe,z zfullyz zinte,grate,dz zwithinz zaz zde,ve,lopme,ntz zcommunity,z zlike,z zapple,’sz zorz zandroid’s.z z

    Macz zuse,sz zproprie,taryz zcompile,rsz zthatz zwillz zonlyz zworkz zwithz zxcode,,z zsoz zifz zyouz zare,z zonz zmacz zyouz zhave,z zlittle,z zchoice,z zbutz ztoz zde,ve,lopz zwithz zc++z zusingz zxcode,.z zyouz zcanz zdownloadz zandz zinstallz zxcode,z zbyz zfollowingz zthisz zlink:z z

    https://apps.apple,.com/us/app/xcode,/id497799835?mt=12z z

    Once,z zthe,z zfile,z zisz zdownloade,dz zandz zinstalle,d,z zope,nz zxcode,z zandz zclickz zonz zthe,z zcre,ate,z zaz zne,wz zxcode,z zproje,ctz zicon.z zthe,nz zse,le,ctz zne,wz zproje,ctz zinz zthe,z zinitialz zwindow.z z

    image12.png

    z z

    Initialz zscre,e,nz zforz zxcode,:z zse,le,ctz zaz zne,wz zproje,ctz z

    The,se,z zscre,e,nshotsz zfe,ature,z zanz zxcode,z zbuildz zfromz zve,rsionz z8.3.3z z(pate,l,z z2017).z zthe,re,fore,,z zourz ze,xample,sz zmightz zlookz zdiffe,re,ntz zfromz zaz zmore,z zup-to-date,z zbuild.z zasz zofz zthisz zwriting,z zthe,z zmostz zcurre,ntz zve,rsionz zisz z12.1,z zwhichz zmostlyz zinclude,sz zupdate,sz ztoz zthe,z zvariousz zmacosz zplatformz zsdksz z(‎xcode,,z zn.d.).z zde,spite,z zthe,se,z zdiffe,re,nce,s,z zthe,se,z zscre,e,nshotsz zwillz zstillz zhe,lpz zyouz zorie,ntz zyourse,lfz zinz zthe,z zmore,z zcurre,ntz zbuild.z zourz zinstructionz zwillz zstillz zyie,ldz zre,sults.z z

    Afte,rz zyouz zdoz zthis,z zaz zpromptz zwindowz zwillz zappe,arz zthatz zwillz zaskz zyouz ztoz zchoose,z zaz zte,mplate,.z zthisz zwindowz zwillz zguide,z zyouz zthroughz zthe,z zre,stz zofz zthe,z zse,tup.z zse,le,ctz zthe,z zmacosz zse,ctionsz zandz zgoz ztoz zthe,z zapplicationz zse,ction;z zinz zthe,re,,z zchoose,z zthe,z zcommandz zline,z ztool.z z

    Itz zlooksz zsome,thingz zlike,z zthis:z z

    image6.png

    z z

    1.z zproje,ctz zse,le,ctionz zscre,e,n:z zmacosz z>z zapplicationz z>z zcommandz zline,z ztoolz z

    Xcode,z zhasz zmanyz zbuilt-inz zcode,z zutilitie,sz zforz zrunningz zprogramsz zonz zvariousz zapple,z zplatforms.z zthe,re,fore,,z ztoz zrunz zaz zte,stz zprogramz zyouz zwouldz zhave,z ztoz zse,le,ctz zmacosz zforz zitz ztoz zrunz zonz zyourz zprogram.z zfurthe,r,z ztoz zacce,ssz zasse,mblyz zlanguage,z zsoftware,z zde,ve,lopme,ntz zne,e,de,dz zforz zc++,z zyouz zwouldz zhave,z ztoz zuse,z zxcode,’sz zcommand-line,z ztool.z zthisz zcommand-line,z ztoolz zcanz zhandle,z zobje,ctive,-cz zandz zcz zlanguage,sz zasz zwe,ll.z z

    Afte,rz zyouz zse,le,ctz zaz zte,mplate,,z zthe,z zguide,z zwillz zpre,se,ntz zoptionsz zforz zthe,z zcommand-line,z ztool.z zhe,re,,z zyouz zcanz zname,z zthe,z zproje,ct,z zaddz zyourz zorganization’sz zname,,z zuse,z zaz zbundle,z zide,ntifie,r,z zandz zse,le,ctz zaz zprogrammingz zlanguage,.z z

    image49.png

    z z

    2.z zcommandz zline,z ztoolz zoptions:z zlanguage,z z>z zse,le,ctz zc++z z

    Xcode,’sz zcommand-line,z ztoolz zcanz zhandle,z zmicrosoft’sz zproprie,taryz zlanguage,sz zlike,z zswift.z zthisz zprogramz zcanz zrunz zalongside,z zc-base,dz zlanguage,sz zinz zmacz zcompile,rs,z zincludingz zc++.z zswiftz zisz zse,le,cte,dz zbyz zde,fault.z z

    Inz zthe,z zsame,z zwindow,z zyouz zwillz zbe,z zre,quire,dz ztoz zaddz zanz zorganizationz zide,ntifie,r.z zre,me,mbe,rz zthatz zxcode,’sz zcommand-line,z ztoolz zisz zaz zprogrammingz zte,mplate,z zforz zproprie,taryz zmacosz zope,ratingz zsyste,ms,z zsoz zthe,z zorganizationz zide,ntifie,rz zisz zuse,dz ztoz zcre,ate,z zaz zunique,z zide,az zforz zyourz zprogramz zinz zapple,z zdatabase,s:z zthe,z zapple,z zde,ve,lope,rz zwe,bsite,z zandz zicloudz zcontaine,r,z zitune,sz zconne,ctz zportalz zinz zthe,z zappstore,.z zthisz zwillz zstre,amline,z zyourz zappz zintoz zaz zproprie,taryz zmacosz zframe,work.z z

    image11.png

    z z

    3.z zcommandz zline,z ztoolz zoptions:z zorganizationz zide,ntifie,rz z>z zcppz z

    The,z zorganization'sz zide,ntifie,rz zisz zaz znamingz zconve,ntionz zthatz zhe,lpsz zprogramme,rsz zinte,grate,z zthe,irz zproje,ctsz zintoz zapple,’sz zproprie,taryz zsoftware,z zde,ve,lopme,ntz zsche,me,.z zhe,re,,z zwe,z zare,z zusingz zcppz zasz zourz zide,ntifie,r,z zwhichz zge,ne,rate,sz zcpp.he,lloworldz zasz zourz zbundle,z zide,ntifie,r.z zonce,z zwe,z zindicate,z zanz zide,ntifie,r,z zthe,z zguide,z zallowsz zusz ztoz zproce,e,dz ztoz zthe,z zne,xtz zste,p.z z

    Now,z zsave,z zyourz zproje,ctz zinz zaz zdire,ctoryz zofz zyourz zchoice,.z zonz zthe,z zle,ft-handz zside,z zpane,,z zxcode,z zwillz zbe,z zable,z ztoz zope,nz zthe,z zfile,.z zyouz zwillz zhave,z ztoz zse,le,ctz zmain.cppz ztoz zacce,ssz zthe,z zglobalz zc++z zfile,z zforz zyourz zprogramz zinz zxcode,.z zifz zyouz zsoz zde,sire,,z zyouz zcanz zuploadz zcppz zfile,sz zintoz zthe,z zdire,ctory,z zandz ze,ditz zthe,m.z z

    image40.png

    z z

    3.z zxcode,z zcommandz zline,z ztool:z zmain.cppz z

    Thisz zscre,e,nshotz zfe,ature,sz zthe,z zide,z zstyle,z zxcode,z zcommandz zline,z ztoolz zworkspace,.z zitz zhasz zthe,z z 00013.jpeg z zope,ne,dz zinz zthe,z zte,xtz ze,ditorz z(pate,l,z z2017).z z

    Once,z zyouz zhave,z zwritte,nz zsome,z zcode,z zandz zyouz zwantz ztoz zrunz zit,z zyouz zse,le,ctz zproductz zandz zclickz zonz zrun.z zalso,z zyouz zcanz zrunz zandz zbuildz zthe,z zprogramz zbyz zse,le,ctingz zthe,z zbutton.z z

    image36.png

    z z

    4.z zxcode,z zcommandz zline,z ztool:z zhe,lloz zworldz zbuildz zandz zrunz z

    Similarz ztoz zthe,z zcode,::blocksz zide,,z zyouz zwillz zalsoz zhave,z ztoz zbuildz zandz zthe,nz zrunz zyourz zprogram.z zthisz zscre,e,nshotz zalsoz zfe,ature,sz zthe,z zre,sultsz zofz zhe,lloz zworldz zandz zthe,z zre,turnz zvalue,z z(pate,l,z z2017).z z

    Ifz zyouz zare,z zaz zprogramme,rz zwhoz zse,e,sz zthe,mse,lve,sz zworkingz zwithz zapple,z zde,vice,s,z zworkingz zandz zpracticingz zinz zxcode,z zisz zaz zgoodz zinve,stme,nt.z zforz zinstance,,z zapple,z zhasz zaz zhe,althyz zshare,z zofz zthe,z zmarke,tz zinz zaz zwide,z zvarie,tyz zofz zconsume,rz zgoodsz zandz zse,rvice,sz zlike,z zstre,amingz zse,rvice,sz zandz zde,vice,s.z zwithz zthatz zsaid,z zyouz zshouldz zke,e,pz zinz zmindz zthatz zc++z zisz zuse,dz zmostlyz zasz zaz zse,rve,r-side,z zlanguage,.z zse,rve,r-side,z zprogrammingz zisz zcode,z zthatz zcontrolsz zhowz zconte,ntz zisz zde,live,re,dz ztoz zaz zdynamicz zwe,bsite,z zlike,z zyoutube,.z zmostz zse,rve,r-side,z zprogrammingz zisz zdone,z zonz zlinuxz zmachine,s.z z

    Linuxz zcompile,rz zinstallationz z

    Linuxz zisz zaz zconsole,-base,dz zope,rationz zsyste,m,z zsoz zitz zdoe,sz znotz zne,e,dz zaz zte,xtz ze,ditor.z zinste,ad,z zwe,z zwillz zfocusz zonz zinstallingz zandz zse,ttingz zupz zaz zprogrammingz zcompile,r.z zmacz zandz zwindowsz zautomaticallyz zinitialize,z zaz zcompile,rz zwithinz zthe,z zide,,z zbutz zinz zlinux,z zaz zmore,z zhands-onz zapproachz zisz zre,quire,d.z zyouz zwillz zbe,z zre,quire,dz ztoz ze,xe,cute,z zaz zbacke,ndz zinitialization.z zitz zmightz zse,e,mz zlike,z zaz zlotz zofz zwork,z zbutz zinz zthe,z zgre,atz zsche,me,z zofz zthings,z zitz zallowsz zthose,z zworkingz zwithz zlinuxz ztoz zhave,z zfullz zcontrolz zofz zthe,z zde,ve,lopme,ntz zproce,dure,z zandz zunlockz zmore,z zcomputingz zpowe,r.z z

    Be,cause,z zlinuxz zisz zanz zope,ratingz zsyste,mz zthatz zuse,sz zaz zconsole,z zinte,rface,,z zitz zwillz zbe,z zstrange,z ztoz zbe,ginne,rsz zorz zanyone,z zwhoz zisz zuse,dz ztoz zwindowsz zorz zmac.z zthisz zisz zbe,cause,z zuse,rsz zare,z zofte,nz zuse,dz ztoz zaz zgui.z zthe,z zgui-le,ssne,ssz zofz zlinuxz zallowsz zmore,z zcomputingz zpowe,rz ztoz zbe,z zfre,e,dz zforz zprogrammingz z–z zaz zguiz ztake,sz zsome,z zcomputingz zpowe,rz ztoz zproduce,z zandz zmaintain.z zthisz zisz zwhyz zmanyz zse,rve,rsz zandz zothe,rz zprogrammingz ze,nvironme,ntsz zhave,z zconsole,z zinte,rface,s.z zalso,z zmanyz zofz zthe,mz zuse,z zlinuxz zdistributions.z z

    Az zlinuxz zdistributionz z(distro)z zisz zanz zope,ratingz zsyste,mz zmade,z zfromz zlinuxz zke,rne,l-base,dz zsoftware,z zcolle,ctionz zandz zpackage,z zmanage,me,ntz zsyste,mz zforz zinstallingz zadditionalz zsoftware,.z z

    The,z zfollowingz zare,z zinstructionsz zforz zinstallingz zandz zinitializingz zaz zcompile,r.z zthisz zwillz zbe,z zforz zubuntu,z zaz zpopularz zlinuxz zdistroz zforz zbe,ginne,rs.z zthe,se,z zinstallationsz zwillz zbe,z zsimilarz zinz zanyz zlinuxz zdistroz zyouz zwillz zbe,z zusing.z z

    Note,:z zthe,re,z zare,z zmanyz zdistributionsz zofz zlinuxz zthatz zprovide,z zaz zguiz zbase,dz zde,sktopz ze,xpe,rie,nce,z zthatz zmanyz zuse,rsz zlove,.z zmostz zofz zthe,se,z zare,z zope,n-source,z zandz zfre,e,z ztoz zdownloadz zandz zinstall.z zyouz zcanz ze,xplore,z zthe,se,z zdistrosz zandz zcre,ate,z zconsole,z zinte,rface,sz ztoz zpractice,z zon.z zone,z zfre,e,z zdistroz ztoz zconside,rz zisz zce,ntos,z zwhichz zisz zbase,dz zonz zre,dz zhatz zforz zse,rve,rz zmanage,me,ntz z(ce,ntos-faqz z|z zope,nz zsource,z zcommunity,z zn.d.).z zre,dz zhatz ze,nte,rprise,z zlinuxz z(rhe,l)z zisz zuse,dz zinz zmanyz zse,rve,rz zmanage,me,ntz zse,tupsz zandz zisz znotz zfre,e,.z zhowe,ve,r,z zce,ntosz zuse,sz zmanyz zofz zitsz zcompone,ntsz zandz zisz zanz ze,xce,lle,ntz zdistroz zforz zpre,paringz ztoz zworkz zinz zre,dz zhatz ze,nvironme,nts.z z

    Inz zthisz ze,xample,,z zwe,z zwillz zuse,z zthe,z zgnuz zcolle,ctionz zcompile,rz zonz zlinux.z zthe,z zgnuz zcolle,ctionz zcompile,rz zisz zaz zlinux-base,dz zcompile,rz zthatz zsupportsz zc++z zandz zothe,rz zvariousz zlanguage,sz zlike,z zfortran,z zada,z zandz zjavaz z(gccz z7z zre,le,ase,z zse,rie,s—change,s,z zne,wz zfe,ature,s,z zandz zfixe,s—gnuz zproje,ct—fre,e,z zsoftware,z zfoundationz z(fsf),z zn.d.).z ztoz zinstallz zgnuz zgcc,z zfollowz zthe,se,z zste,ps:z z

    Inzzthe,zzconsole,,zze,nte,rzzthe,zzfollowingzzcommands:zz

    Che,ckz zfirstz zifz zthe,re,z zisz zaz zve,rsionz zalre,adyz zinstalle,dz zonz zyourz zmachine,z zbyz ze,nte,ringz zthisz zcommand:z zgccz z–vz z

    image45.png

    z z

    Che,ckzzforzzgnuzzgcczzinzzubuntuzzconsole,zz

    Youz zshouldz zche,ckz zyourz zsyste,mz zforz zaz zcopyz zofz zthe,z zgcc.z zthisz zscre,e,nshotz zfe,ature,sz zaz zsyste,mz zwithz zgccz zalre,adyz zinstalle,dz z(pate,l,z z2014).z zafte,rz zusingz zthe,z zcommand,z zifz zthe,re,z zisz znoz zcopyz zofz zgccz zinz zyourz zsyste,m,z zitz zwillz zbe,z zmissingz zthisz zline,.z zifz zthe,re,z zisz zaz zcopy,z zitz zwillz zhave,z zaz zsimilarz zline,.z zmostz zlike,ly,z zyourz zve,rsionz zwillz zbe,z zmore,z zre,ce,nt.z z

    The,z zfollowingz zcommandsz zwillz zinstallz zgccz zonz zyourz zsyste,mz z(agarwal,z z2017b):z z

    Sudoz zapt-ge,tz zupdate,z z

    Sudoz zapt-ge,tz zinstallz zgccz z

    image19.png

    z z

    Installzzgnuzzgcczzinzzubuntuzzconsole,zz

    Inz zthe,z zscre,e,nshot,z zaz zgncz zgccz zisz zalre,adyz zpre,se,nt.z zrunningz zthe,z zhighlighte,dz zcommandz zwillz zinstallz zthe,z zgnuz zgccz zonz zyourz zsyste,mz zifz zitz zisn’tz zthe,re,z z(pate,l,z z2014).z zthe,z zconsole,z zwillz zpromptz zyouz ztoz ztype,z zyz zforz zitz ztoz zbe,ginz zthe,z zinstallation.z zyouz zalsoz zare,z zoffe,re,dz zpackage,z zmanage,me,ntz zfe,ature,sz zlike,z zthe,z zabilityz zofz zthe,z zte,rminalz ztoz zinformz zyouz zofz zoutdate,dz zorz zunne,ce,ssaryz zpackage,s.z zitz zwillz zalsoz zsugge,stz zcommandsz zthatz zwillz zmake,z zyourz zsyste,mz zmore,z ze,fficie,nt.z zthisz ze,xplainsz zthe,z zpopularityz zofz zlinuxz zwithz zprogramme,rs;z zalthoughz zwordy,z zitz zallowsz zthe,mz ztoz ztrouble,shootz zwithz ze,ase,,z zgive,sz zthe,mz zmore,z zcontrol,z zandz zitz zisz ze,asyz ztoz znavigate,z zwhe,nz zcompare,dz ztoz zguis.z zthisz zisz zbe,cause,z zprogramme,rsz zare,z zmore,z zlike,lyz ztoz zre,me,mbe,rz zaz zline,z zofz zcode,z zthanz zwhe,re,z zsome,thingz zre,side,sz zinz zthe,z zgui.z z

    The,z zfollowingz zcommandz zwillz zinstallz zallz zthe,z zlibrarie,sz zre,quire,dz ztoz zcompile,z zcode,z zandz ze,ve,ntuallyz zrunz zc++:z z

    Sudoz zapt-ge,tz zinstallz zbuild-e,sse,ntialz z

    image39.png

    z z

    Installzzgnuzzgcczzinzzubuntuzzconsole,zz

    Thisz zscre,e,nshotz zshowsz zaz zsyste,mz zwithz zthe,z zbuild-e,sse,ntialz zlibrarie,sz zinstalle,dz zandz zinputtingz zthe,z zhighlighte,dz zinstallationz zcommandz z(pate,l,z z2014).z zjustz zasz zwithz zinstallingz zthe,z zgcc,z zafte,rz zusingz zthe,z zcommandz zandz zfindingz zthe,re,z zisz znoz zcopyz zofz zthe,z zbuild-e,sse,ntialz zlibrarie,sz zinz zyourz zsyste,m,z zitz zwillz zpromptz zyouz ztoz zinstall.z ztype,z zinz zyz zandz zthe,z zte,rminalz zwillz zinstallz zlibrarie,s.z z

    Che,ckzzthe,zzinstallationzzwithzzthe,zzfollowingzzcommand:zz

    G++z z--ve,rsionz z

    Ifz zallz zwe,ntz zwe,llz zitz zwillz zte,llz zyouz zwhatz zve,rsionz zofz zgccz zisz zinstalle,d.z z

    Be,cause,z zlinuxz zhasz zaz zbuilt-inz zte,xtz ze,ditorz zyouz zwillz zhave,z ztoz zuse,z zthe,z zfollowingz zcommandz ztoz zacce,ssz zthe,z zguiz zforz zthe,z zte,xtz ze,ditor:z z

    Ge,ditz z

    Youz zwillz zbe,z zfre,e,z ztoz zwrite,z zyourz zprogramz zasz zyouz zse,e,z zfit.z zre,me,mbe,rz ztoz zsave,z zthe,z zprogramsz zwithz zthe,z z.cppz ze,xte,nsionz zsoz zthatz zthe,yz zwillz zbe,z zcompile,dz zcorre,ctly.z z

    image52.png

    z z

    Ge,ditz zinz zubuntuz z

    Thisz zscre,e,nshotz zfe,ature,sz zlinux’sz zbuilt-inz zte,xt-e,ditor,z zge,ditz z([runningz zc,z zc++z zprogramsz zinz zlinux]z zubuntuz z16.04z z(ubuntuz ztutorialz zforz zbe,ginne,rs),z zn.d.).z zge,ditz zisz zaz zlinuxz zprogrammingz zte,xtz ze,ditorz zutilityz zthatz zhasz zsyntaxz zhighlightingz zandz ztabbe,dz zspacingz zfe,ature,sz zforz zaz zdive,rse,z zarrayz zofz zprogrammingz zlanguage,s.z zbe,z zsure,z ztoz zhave,z zc++z zse,le,cte,dz zfromz zthe,z zhighlighte,dz zdropdownz zme,nu.z zyouz zcanz zsave,z zyourz zprogramz zfile,z zinz zthe,z zguiz zbyz zclickingz zthe,z zsave,z zbutton.z zbe,z zsure,z ztoz zlistz zwhichz zdire,ctoryz zyouz zhave,z zyourz zfile,z zsave,d,z zasz zyouz zwillz zhave,z ztoz zpointz zthe,z zcompile,rz ztoz zthatz zdire,ctoryz ztoz zcompile,z zandz zrunz zthe,z zcode,.z z

    Toz zte,stz zandz zrunz zyourz zcode,z zyouz zmustz zfollowz zthe,se,z zinstructions:z z

    Le,adzzthe,zzte,rminalzztozzthe,zzfile,szzdire,ctoryzz

    Toz zdoz zthisz zuse,z zthisz zcommand.z ze,nte,rz zitz zinz zthe,z zdire,ctoryz zre,pe,ate,dlyz zuntilz zthe,z z.cppz zfile,z zisz zre,ve,ale,d.z z

    Lsz z

    Compile,zzandzzte,stzzthe,zzprogramzzfile,zz

    Use,z zthe,se,z zcommandsz ztoz zdoz zso:z z

    00019.jpeg

    z z

    Ifz zthe,re,z zare,z zanyz ze,rrorsz zthisz zcommandz zwillz zte,llz zyouz zwhichz zline,z zcontainsz zthe,z ze,rrorz zjustz zlike,z zyouz zwouldz ze,xpe,ctz zfromz zanz zide,.z zthe,nz zyouz zcanz zope,nz zthe,z zprogramz zfile,z zthroughz zge,ditz z[file,name,.cpp]z zandz zfixz zthe,z zline,z zofz zcode,.z z

    Runzzthe,zzprogramzzfile,zz

    The,z zcompile,rz zwillz zcre,ate,z zanz ze,xe,cutable,z zfile,z zcalle,dz zte,stz zthatz zwillz zrunz zthe,z zprogram.z zyouz zcanz ze,xe,cute,z zitz zbyz ze,nte,ringz z.z z/te,stz zinz zthe,z zte,rminal.z z

    image32.png

    z z

    Te,sting,z zcompilingz zandz zrunningz zaz z.cppz zfile,z zinz zubuntuz z

    Thisz zscre,e,nshotz zfe,ature,sz zthe,z zte,rminalz zte,sting,z zcompiling,z zandz zrunningz zthe,z ze,xample,z zcode,z zwritte,nz zinz zge,ditz z([runningz zc,z zc++z zprogramsz zinz zlinux]z zubuntuz z16.04z z(ubuntuz ztutorialz zforz zbe,ginne,rs),z zn.d.).z z

    Linuxz zdistrosz zare,z zve,rbose,z zconsole,-base,dz zsyste,msz zandz zmostz zofz zthe,mz zcanz zhandle,z zprogrammingz zinz zanyz zlanguage,z zthroughz zthe,z zte,rminal.z zle,arningz ztoz zworkz zinz zthe,z zlinuxz ze,nvironme,ntz zisz zbe,ne,ficialz zasz zitz ze,xpose,sz zyouz ztoz zse,rve,r-side,z zprogramming.z z

    Note,:z zthe,z zproce,ssz zforz zinstallingz zgccz zandz zcompilingz zonz zce,ntosz zisz zsimilar.z ztoz zinstall,z zyouz zinste,adz zuse,z z"

    00021.jpeg

    .z zthisz zcommandz zautomaticallyz zinstallsz zthe,z zne,e,de,dz zlibrarie,sz zasz zwe,ll.z zthe,z zste,psz zforz zcomposing,z zcompiling,z zte,sting,z zandz zrunningz zthe,z zprogramz zare,z zallz zthe,z zsame,.z z

    Cre,atingz zyourz zownz zprogrammingz ze,nvironme,ntz zhe,lpsz zpre,pare,z zyouz zforz zre,al-worldz zsce,nariosz zinz zaz zwayz zthatz zonline,z zcodingz zspace,sz zcannot.z zinz zthisz zbook,z zwe,z zwillz zbe,z zusingz zanz zonline,z zide,.z zthisz zisz zbe,cause,z ze,ve,ryone,z zwillz zhave,z zthe,z zsame,z zle,arningz ze,nvironme,ntz zwithz zstandardize,dz zoutputsz zandz zinte,rface,s.z zitz zsimplifie,sz zthings.z z

    Z z

    Z z

    Z z

    Chapte,rz z2:z zbasicsz zofz zc++,z zprinciple,sz zofz zprogrammingz z

    Programmingz zlanguage,sz zare,z zlike,z zanyz zothe,rz zhumanz zlanguage,:z zthe,yz zhave,z zstructure,,z zsyntax,z zandz zrule,s.z zitz zisz znotz ze,noughz ztoz zknowz zthe,z zwordsz zofz zanothe,rz zhumanz zlanguage,.z zknowingz zhowz ztoz zuse,z zthe,mz zandz zhowz zthe,yz zfunctionz zinz zthatz zlanguage,z zisz zanz zinte,gralz zpartz zofz zcommunicatingz ze,ffe,ctive,lyz zinz zthatz zlanguage,.z zprogrammingz zlanguage,sz zfunctionz zthe,z zsame,z zway,z zbutz zthe,z zcommunicationz zthe,yz zcare,z zaboutz ztryingz ztoz zhe,lpz zisz zone,z zbe,twe,e,nz zmanz zandz zmachine,.z zwhile,z zmachine,s,z zatz zle,astz ztoday,z zcanz zne,ve,rz zbe,z zasz zcle,ve,rz zandz zcapable,z zasz zwe,z zare,,z zthe,re,z zisz zaz zlotz zthe,yz zcanz zunde,rstandz zatz zaz zrate,z zandz zwithz zanz ze,fficacyz zthatz zisz zalie,nz ztoz zus.z zallz zprogrammingz zisz zaz zse,tz zofz zinstructions.z zthe,se,z zinstructionsz zcanz zbe,z zrule,s,z zthe,yz zcanz zbe,z zactionsz zyouz zwantz zthe,z zmachine,z ztoz zpe,rform,z zorz zsome,thingz ze,lse,.z zbutz zallz zthisz zcommunicationz zisz zpossible,z zbe,cause,z zwe,z zfollowz zthe,z zrule,sz zofz zaz zprogrammingz zlanguage,.z z

    Programmingz zrule,s,z zorz zsyntax,z zare,z zaz zlistz zofz zde,line,atingz zsymbolsz zuse,dz ztoz zcommunicate,z zaspe,ctsz zofz zaz zprogramz zlike,z zfunctionsz zandz zvariable,s.z zsyntaxz zisz zimportantz ztoz zthe,z zcompile,rz zbe,cause,z zitz zte,llsz zthe,z zcompile,rz zwhatz zinstructionsz zitz zshouldz zgive,z ztoz zthe,z zmachine,.z z

    Be,fore,z zwe,z zstart,z zitz zisz zworthz zke,e,pingz zaz zfe,wz zthingsz zinz zmind.z zunlike,z zpythonz zorz zothe,rz zhigh-le,ve,lz zprogrammingz zlanguage,s,z zc++z zdoe,sz znotz zre,se,mble,z zthe,z zlanguage,z zofz zhumansz zquite,z ze,asily.z zhigh-le,ve,lz zlanguage,sz zlike,z zjs,z zpython,z zandz zc#z zare,z zmade,z zthisz zwayz zbe,cause,z zitz zmake,sz zthe,mz ze,asyz ztoz zre,adz zandz zmanage,.z zc++,z zde,spite,z zbe,ingz zthisz zway,z zisz ze,asie,rz zforz zmachine,sz ztoz zunde,rstandz zpre,cise,lyz zbe,cause,z zitz zisz znotz zsoz zabstracte,d.z zthisz zisz zwhyz zwhe,nz zworkingz zwithz zc++z zyouz zonlyz zne,e,dz zaz zcompile,rz zandz zte,xtz ze,ditor,z zwhe,re,asz zlanguage,sz zlike,z zpythonz zne,e,dz zthe,irz ze,nvironme,ntsz zinstalle,d.z z

    Principle,sz zofz zprogrammingz z

    C++z zhasz zmanyz zwaysz zofz zcomple,tingz zthe,z zsame,z ztask.z zjustz zlike,z zwithz zhumanz zlanguage,s,z zthe,re,z zare,z zmanyz zwaysz zofz zsayingz zthe,z zsame,z zthing,z zbutz zsome,z zwaysz zare,z zbe,stz zsuite,dz zforz zce,rtainz zoccasionsz zandz zsome,z zare,n’t.z zc++z zisz zthe,z zsame,z zway;z zsome,z zme,thodsz zare,z zgre,atz zbe,cause,z zthe,yz zre,duce,z zprogramz zove,rhe,ad.z zmanyz zde,ve,lope,rsz zwillz zwantz zthatz zbe,cause,z zitz zincre,ase,sz zthe,z zpe,rformance,z zofz zthe,z ze,ntire,z zapplication,z zandz zthatz zisz zthe,z zfirstz zprinciple,z zofz zprogramming:z zcomple,te,z zaz ztaskz zwithz zthe,z zle,astz zamountz zofz zfunctionsz zasz zpossible,.z zdoz znotz zmake,z zthingsz zmore,z zcomplicate,dz zthanz zthe,yz zne,e,dz ztoz zbe,.z zinz zmostz zcase,s,z zthisz zme,ansz zusingz zaz zloopz zorz zaz zswitchz zstate,me,ntz zinz zaz zfrugalz zway.z z

    The,z zbe,stz zwayz ztoz zdoz zthisz zisz zbyz zunde,rstandingz zthe,z znature,z zofz zthe,z zproble,mz zfirstz zandz zhowz zbe,stz ztoz zimple,me,ntz zthe,z zsolution.z zinz zothe,rz zwords,z zyouz zwillz zne,e,dz ztoz zwrite,z zanz zalgorithmz z–z zaz zlistz zofz zinstructionsz zthatz zyouz zwantz zthe,z zmachine,z ztoz zfollowz ztoz zfixz zthe,z zproble,m.z z

    Yourz zde,signsz zshouldz zalwaysz zbe,ginz zwithz zthe,z zthingz zyouz zwantz zthe,z zprogramz ztoz zdo.z zthisz zwillz zalsoz zinclude,z zyourz zalgorithm,z zorz zatz zle,astz zthe,z zproble,mz zthatz zyourz zalgorithmz zwillz zfix.z zthe,z zalgorithmz zwillz zalwaysz zlookz zsome,thingz zlike,z zthis:z z

    Input:zzdatazzcoming,zzwhe,re,zzapplicable,zz

    Proce,ssing:zzope,rationszzpe,rforme,dzzonzzthe,zzdatazzandzzde,clarationzzofzzvariable,szz

    Output:zzthe,zzre,sults,zzorzzthe,zzactionzzyouzzwantzzpe,rforme,d.zz

    He,re,z zisz zaz zve,rbose,z ze,xample,z zofz zaz zc++z zprogramz zforz zdisplayingz zhe,lloz zworld.z zthisz zisz ztoz zillustrate,z zhowz zc++z zprogramsz zare,z zcompose,d:z z

    //z zsimple,z zc++z zprogramz ztoz zdisplayz zhe,lloz zworldz z

    //z zhe,ade,rz zfile,z zforz zinputz zoutputz zfunctionsz z

    #include,z z

    Usingz zname,space,z zstd;z z

    //z zmainz zfunctionz z-z z

    //z zwhe,re,z zthe,z ze,xe,cutionz zofz zprogramz zbe,ginsz z

    Intz zmain()z z

    {z z

    //z zprintsz zhe,lloz zworldz z

    Cout<<he,lloz zworld;z z

    Z z

    Re,turnz z0;z z

    }z z

    He,re,z zisz zthe,z zstructure,:z z

    Callzzhe,ade,rzzfile,zzforzzinputzzandzzoutputzzfunctionszz

    Callzzthe,zzmainzzfunctionzzwhe,re,zzthe,zze,xe,cutionzzhappe,nszz

    Printzzhe,llozzworldzz

    Te,rminatingzzstate,me,ntzzthatzzindicate,szzthe,zzstate,zzofzzthe,zzmachine,zz

    We,z zcanz zse,e,z zhowz zve,rbose,z zc++z zis,z zbe,cause,z zmostz zofz zthe,z zste,psz zre,gardz zthe,z zbacke,ndz zaspe,ctsz zofz zc++z zthatz zare,z zne,e,de,dz ztoz ze,xe,cute,z zthe,z zcode,,z zsuchz zasz zcallingz zthe,z zlibraryz zfile,s.z zyourz zalgorithmsz zdon’tz zne,e,dz ztoz zbe,z zthisz zde,taile,dz zmostz zofz zthe,z ztime,.z z

    De,spite,z zbe,ingz zsimple,,z zthisz zalgorithmz zillustrate,sz zhowz zde,ve,lope,rsz ztake,z ztasksz zandz ztranslate,z zthe,mz zintoz zcode,.z zinz zthe,z zne,xtz zchapte,r,z zwe,z zwillz zuse,z zthisz zalgorithmz ztoz zwrite,z zourz zprogram.z z

    Asz zyouz zhave,z znotice,dz zinz zthe,z ze,xample,,z zthe,re,z zare,z zcomme,ntsz zinz zthe,z zcode,z zthatz ze,xplainz zwhatz ze,achz zpartz zofz zthe,z zcode,z zdoe,s.z zthe,se,z zcomme,ntsz zare,z zpre,ce,de,dz zbyz z//.z zthe,z zcompile,rz zwillz znotz zre,adz zanyz zline,sz zofz zcode,z zpre,ce,de,dz zbyz z//z zbe,cause,z zthe,yz zdon’tz zdoz zanythingz zbutz zhe,lpz zothe,rz zpe,ople,z zworkingz zonz zthe,z zcode,z zre,adz zwhatz zthe,z zcode,z zdoe,s.z zitz zisz zgoodz zpractice,z ztoz zinclude,z zcomme,ntsz zinz zyourz zcode,z zsoz zpe,ople,z zknowz zwhatz ze,achz zline,z zofz zcode,z zdoe,s.z z

    Ove,rvie,wz zofz zthe,z zc++z zsyntaxz z

    We,z zhave,z ztalke,dz zaboutz zthe,z zimportance,z zofz zsyntaxz zforz zthe,z zcompile,r,z zbutz zitz zisz zalsoz zimportantz ztoz zunde,rstandz zthe,z zsyntaxz zofz zaz zprogrammingz zlanguage,z zbe,cause,z zitz zwillz zallowz zyouz ztoz zde,bugz zthe,z zcode,.z zjustz zlike,z zwithz zhumanz zlanguage,s,z zifz zyouz zknowz zthe,z zrule,sz zofz zaz zlanguage,z zyouz zcanz zcorre,ctz zyourse,lfz ze,asilyz zwhe,nz zyouz zmake,z zmistake,s.z zde,buggingz zisz zthe,z zproce,ssz zofz zfindingz zandz zre,movingz ze,rrorsz zandz zabnormalitie,sz zinz zthe,z zcode,,z zalsoz zknownz zasz zbugsz z(whatz zisz zde,bugging?Z zn.d.).z zitz zisz zaz zproce,ssz zofz zcorre,ction.z z

    Ide,sz zhave,z zde,buggingz ztoolsz zthatz zhighlightz zwhe,re,z ze,rrorsz zoccurz zinz zthe,z zcode,,z zbutz zthe,se,z zfe,ature,sz zare,n’tz zalwaysz zre,liable,.z zforz zinstance,,z zle,avingz zoutz zaz zse,micolonz ztoz zte,rminate,z zaz zline,z zofz zcode,z zisz zaz zcommonz ze,rror,z zbutz zthe,z zde,bugge,rz zwillz zhighlightz zthe,z ze,rrorz zinz zthe,z z(.h)z zfile,z zinste,adz zofz zthe,z zcode,z zwhe,re,z zthe,z zmistake,z zhappe,nsz zinz zthe,z zprogramz zfile,z z(.cpp).z zmostz zde,bugge,rsz zare,z znotz zinte,llige,ntz ze,noughz ztoz zde,te,ctz zanz zabse,nce,z zofz zsome,thingz zandz zwillz zthrowz zthe,z zve,rbose,z ze,rrorz zthatz zthe,z zcompile,rz zgive,sz zwhe,nz zthe,z zunte,rminate,dz zline,z zviolate,sz zaz zrule,z zinz zthe,z zlibrary.z zhowe,ve,r,z zaz zprogramme,rz zwillz zpickz zupz zthe,z ze,rrorz zsimplyz zwhe,nz zthe,yz znotice,z zthe,z zre,dz zse,micolonz zline,z zde,limite,rz zisz zmissingz zfromz zone,z zofz zthe,z zline,s.z z

    image38.png

    z z

    he,lloz zworldz zprogramz zinz zge,e,ksforge,e,ksz zide,z zwithoutz zaz zline,z zde,limite,rz z

    Thisz zscre,e,nshotz zfe,ature,sz zhe,lloz zworldz zwithz zaz zmissingz zde,limite,r.z zimme,diate,lyz zyouz zwillz znotice,z zthatz zthe,z zide,z zhasz zdiffe,re,ntz zsyntaxz zhighlightingz zforz zc++z zthanz zthe,z zprogrammingz ze,nvironme,ntsz zwe,z ze,xplore,dz zinz zthe,z zpre,viousz zchapte,r.z zsyntaxz zcanz zvaryz zfromz zplatformz ztoz zplatform.z zthisz zisz zwhyz zwe,z zare,z zstandardizingz zthe,z zproce,ssz zwithz zge,e,ksforge,e,ksz zide,.z zinz zourz zchose,nz zide,,z zse,micolonsz zare,z znotz zhighlighte,d.z zhowe,ve,r,z zthe,z zide,z zcanz zmake,z zupz zforz zthisz zbyz zre,cognizingz zandz zannotatingz zmissingz zse,micolons,z zasz zhighlighte,dz zinz zthe,z zscre,e,nshot.z zyouz zcanz zpractice,z zandz ze,xplore,z zthisz zprogramz zbyz zgoingz ztoz zitsz zge,ne,rate,dz zurl:z zhttps://ide,.ge,e,ksforge,e,ks.org/mzbupp46sl.z z

    Itz zisz ze,asyz ztoz zse,e,z zthisz zwhe,nz zthe,z zcode,z zisz zsmall,z zbutz zwhe,nz zworkingz zonz zaz zlarge,rz zproje,ctz zthe,z ztaskz zcanz zbe,z zdifficult.z ziz zhave,z zhe,ardz zofz zprogramme,rsz zwhoz zspe,ndz zaz zwe,e,kz zandz zorz zmore,z ztryingz ztoz zfindz zorz zfixz zaz zline,z zinz zthe,irz zcode,z zonlyz ztoz zdiscove,rz zitz zisz zsome,thingz zve,ryz zminuscule,z zlike,z zaz zmissingz zle,tte,rz zorz zmismatchz zinz zcase,.z ztoz zmake,z zde,buggingz ze,asie,r,z zitz zisz zadvise,dz zthatz zyouz zse,parate,z zcode,z zintoz zsmalle,rz zmodule,sz z(whatz zisz zde,bugging?Z zn.d.).z zmanyz ze,rrorsz zcanz zbe,z zfoundz zandz ze,asilyz zde,altz zwithz zinz zthisz zway.z z

    Le,tz zusz zlookz zatz zthe,z zhe,lloz zworldz zprogramz zandz zstudyz zitsz zsyntaxz zinz zde,tail.z zwhile,z zsyntaxz zhighlightingz zmayz zvaryz zacrossz zdiffe,re,ntz zplatforms,z zthe,se,z zaspe,ctsz zofz zcode,z zare,z zconsiste,ntlyz zhighlighte,dz zonz zallz zplatforms.z z

    Comme,nts:z zasz ziz zsaid,z zthe,se,z zare,z zthe,z zline,sz zofz zcode,z zthatz zthe,z zcompile,rz zwillz zignore,.z zthe,yz zare,z zuse,dz ztoz zannotate,z zcode,z zandz zle,ave,z zhe,lpfulz ze,xplanationsz zforz zothe,rz zprogramme,rs.z zthisz zisz zgre,atz zbe,cause,z znormallyz zwhe,nz zwe,z zcode,z zwe,z zcollaborate,z zwithz zothe,rs.z zitz zadvise,dz zthatz zyouz zle,ave,z zcomme,ntsz zinz zyourz zalgorithmz ztoz zsimplifyz zitz zforz zothe,rs.z zinz zmostz zplatformsz zcomme,ntsz zwillz zbe,z zhighlighte,dz zgre,e,n.z zcomme,ntsz zare,z zalwaysz zpre,ce,de,dz zwithz z(//).z z

    He,ade,rz zfile,z zlibrary:z zline,sz zthatz zstartz zwithz z(#)z zare,z zuse,dz zbyz zthe,z zcompile,rz ztoz zcallz zlibraryz zfunctions.z zthe,se,z zline,sz zare,z zve,ryz ze,sse,ntial,z zsoz zthe,yz zappe,arz zinz ze,ve,ryz zprogram.z zinz zthe,z zhe,lloz zworldz ze,xample,z zwe,z zcallz zaz zlibraryz zthatz zisz zuse,dz ztoz zmanage,z zstrings.z zthe,se,z zline,sz zofz zcode,z zwillz zbe,z zhighlighte,dz zinz zdiffe,re,ntz zcolorsz zacrossz zdiffe,re,ntz zplatforms.z zinz zge,e,ksforge,e,ksz zthe,z zcolorz zisz zpurple,.z z

    State,me,nts:z zstate,me,ntsz zde,scribe,z zthe,z zbe,ginningz zofz zaz zline,z zofz zcode,z zwithz zinstructionsz zthatz zthe,z zcompile,rz zre,cognize,s.z zthisz zinclude,sz zde,clarationz zhandlingz zinstructions,z zlike,z z"using…z zorz zre,turn..."Z zinz zourz zhe,lloz zworldz zprogram.z zthe,yz zare,z zalsoz zhighlighte,dz zdiffe,re,ntlyz zacrossz zmultiple,z zplatforms.z zonz zge,e,ksforge,e,ksz zthe,yz zare,z zhighlighte,dz zpurple,.z z

    Functions:z zthisz zisz zcode,z zthatz ze,ncapsulate,sz zinstructions.z zitz zmayz ztake,z zinputsz zandz zoutputz zaz zre,sult.z ze,ve,ryz zfunctionz zisz zwritte,nz zlike,z zthis:z z"[function_name,]z z()z z"followe,dz zbyz zcurlyz zbrace,sz z{}.z zanythingz zinz zthe,z zcurlyz zbrace,sz zisz zthe,z zse,tz zofz zinstructionsz zthatz zwillz zbe,z ze,xe,cute,d.z zinz zourz ze,xample,,z zmain()z zisz zthe,z zfunctionz zthatz zinitiate,sz zthe,z zinstructionsz zthatz zwillz zoutputz zhe,lloz zworldz zwithz zcout<<.z zinz zaz z.cppz zprogram,z zintz zmainz z()z zmustz zalwaysz zappe,arz zforz zthe,z zprogramz ztoz zfunction.z z

    Text Box 58

    z z

    Data:z zthe,se,z zare,z zvariable,sz zandz zothe,rz zkindsz zofz zdataz zfunctionsz zandz zstate,me,nts.z zinz zthe,z zge,e,ksforge,e,ksz zide,,z zthe,yz zare,z zhighlighte,dz zblue,.z z

    image31.png

    z z

    Comparisonz zofz zhe,lloz zworldz zprogramz zinz zge,e,ksforge,e,ksz zide,z zandz z

    the,z zge,e,ksforge,e,ksz ze,mbe,dde,dz zprogramz zarticle,sz z

    Thisz zscre,e,nshotz zfe,ature,sz zaz zsucce,ssfulz zrunz zofz zhe,lloz zworldz zwithz zthe,z zme,moryz zuse,dz ztoz zrunz zthe,z zprogram.z zthisz zide,z zhasz zlightz zsyntaxz zhighlighting,z zfocusingz zmainlyz zonz zcomme,nts,z zstate,me,nts,z zandz zope,randz zdata.z zcompare,dz ztoz zge,e,ksforge,e,ks’z ze,mbe,dde,dz zcode,z zinz zthe,irz zarticle,s,z zthe,irz ze,mbe,dde,dz zcode,z zisz zmuchz zmore,z zde,taile,dz z(writingz zfirstz zc++z zprogram,z z2017).z zthe,z ztwoz zscre,e,nshotsz zonz zthe,z zrightz zfe,ature,z zthe,z zlight-mode,z zandz zdark-mode,z zvie,wsz zofz zthe,z zsame,z zcode,z ze,mbe,dde,dz zinz zthe,irz zarticle,s.z zthe,se,z zvie,wsz zare,z zmore,z zde,taile,d,z zhighlightingz zcomme,nts,z zfunctions,z zandz zdistinguishingz zdiffe,re,ntz zstate,me,nts.z zforz ze,xample,,z zdataz ztype,sz zsuchz zasz zintz zare,z zdistinguishe,dz zwithz zaz zdiffe,re,ntz zcolorz zfromz zothe,rz zstate,me,ntsz zsuchz zasz zusingz zname,space,.z zalsoz zthe,z ze,mbe,dde,dz zvie,ws,z zunlike,z zthe,z zide,,z zdistinguishz zstringsz zfromz zothe,rz zdata.z zthisz zisz zaz zpe,rfe,ctz ze,xample,z zofz zhowz zsyntaxz zhighlightingz zcanz zvaryz zacrossz zdiffe,re,ntz zplatforms.z z

    E,arlie,rz zwe,z zsawz zaz zcode,::blockz ze,xample,z zwithz zanz ze,rrorz zinz zit.z zbe,lowz zisz zthe,z zve,ryz zsame,z zcode,z zne,xtz ztoz zone,z zthatz zisz zcorre,cte,d.z zimme,diate,lyz zyouz zcanz zbe,ginz ztoz zappre,ciate,z zthe,z zsyntaxz zandz zwhatz zwe,ntz zwrongz zinz zthe,z zcode,::blockz ze,xample,.z z

    image9.png

    z z

    Comparisonz zofz zhe,lloz zworldz zinz zcode,::blocksz zwithz zge,e,ksforge,e,ksz zide,z z

    Thisz zscre,e,nshotz zfe,ature,sz zaz zside,-by-side,z zcomparisonz zofz zthe,z zpre,viousz ze,xample,,z zhe,lloz zworldz zinz zcode,::blocksz zwithz ze,rrors,z zandz zthe,z zsame,z zcorre,cte,dz zcode,z zinz zge,e,ksforge,e,ksz zide,.z zuponz zstudyingz zboth,z zyouz zshouldz zbe,z zable,z ztoz zse,e,z zthatz zthe,z zlastz zinstructionz zinz zthe,z zintmain()functionz zwasz zincorre,ctlyz ze,nte,re,dz zinz zthe,z zcode,::blocks.asz zaz zre,sult,the,z zcompile,rz zcouldz znotz zre,cognize,z zthe,z zre,turnz zstate,me,nt.z z

    Iz zwillz zadmitz zthatz zitz zisz znotz zasz zimpre,ssive,z zinz zaz zfe,wz zcode,z zline,sz zlike,z zthis,z zbutz zbe,ingz zable,z ztoz znotice,z ze,rrorsz zandz ze,xplainz zthe,mz zisz zone,z zofz zthe,z zmostz zimportantz zskillsz zforz zprogramme,rs.z zatz zthisz zpointz zyouz zshouldz znotz zworryz zmuchz zaboutz zbe,ingz zable,z ztoz zdoz zthis.z zthe,z zmore,z zyouz zcode,z zandz zle,arn,z zthe,z zbe,tte,rz ze,quippe,dz zyouz zwillz zbe,z ztoz znotice,z zandz zfixz ze,rrors.z zsoftware,z zandz zwe,bz zde,ve,lopme,ntz zare,z zindustrie,sz zwithz zaz zhighz zfailure,z zrate,z zbe,cause,z zofz zthis.z ztoz zsucce,e,dz zasz zaz zde,ve,lope,rz zyouz zne,e,dz ztoz zsolve,z zproble,msz zquickly,z zfindz zbugsz zmore,z ze,fficie,ntly,z zandz zfixz zthe,m.z zthisz zalsoz zapplie,sz zonz zthe,z zadministrative,z zside,,z zbe,cause,z zbe,ingz zable,z ztoz zfind,z zfix,z zandz ze,xplainz zbugsz zisz zaz zlarge,z zpartz zofz zde,skz zse,rvice,z zle,ve,lz zagre,e,me,nts.z z

    Inz zte,ch,z zse,rvice,z zle,ve,lz zagre,e,me,ntsz z(slas)z zare,z zagre,e,me,ntsz zbe,twe,e,nz zaz zse,rvice,z zprovide,rz zandz zaz zclie,nt.z zthe,yz zagre,e,z zuponz zaspe,ctsz zofz zthe,z zse,rvice,,z zlike,z zsupport,z zquality,z zavailability,z zandz zre,sponsibilitie,sz z(wie,de,r,z zbutle,r,z zthe,ilmann,z z&z zyahyapour,z z2011).z zcompre,he,nsive,z zslasz zoffe,rz zaz zde,buggingz zde,brie,fing,z zwhe,re,z ze,ve,ryz ze,rrorz zisz zlogge,dz zandz zliste,dz zwithz zitsz zcause,,z zworkaround,z zandz zsolution.z zthisz zisz zthe,z zbe,stz zwayz ztoz zdoz zitz zinz zte,chnologyz zmanage,me,ntz zfirmsz zandz zde,ve,lopme,ntz zstage,s.z zhowe,ve,r,z zadministratorsz zhave,z zmore,z zre,source,sz ztoz zde,dicate,z ztoz zde,buggingz zthanz zde,ve,lope,rsz zthe,mse,lve,s.z zthe,yz zare,z zcompe,nsate,dz zatz zaz zhighe,rz zrate,z zasz zwe,ll.z zforz zinstance,,z zwe,bz zde,ve,lope,rsz zmake,z zapproximate,lyz zz60,000z zaz zye,arz zinz zthe,z zus;z zwe,bz zadministrators,z zthose,z zinz zcharge,z zofz zslas,z zmake,z zaboutz z1/3z zmore,z zatz zz90,000z zaz zye,arz z(15-1199.03—we,bz zadministrators,z zn.d.).z zthisz zle,ve,lz zofz ze,xpe,rtise,z zisz zvaluable,z zbe,cause,z zitz zunde,rstandsz zhowz zthe,z zcompile,rz ztranslate,sz zc++.z z

    Firstz zprogram:z zoutputz zandz zbasicz zstringsz z

    he,lloz zworldz zisz ze,ve,ryz zprogrammingz zlanguage,’sz zbe,ginne,rz zproje,ct;z zitsz zaimz zisz ztoz zshowz zthe,z zle,arne,rz zthe,z zbasicz zsyntaxz zofz zthe,z zprogramz zandz zhowz zitz zfunctions.z zasz zyouz zle,arnz zmore,z zlanguage,sz zyouz zwillz zwrite,z zmanyz zhe,lloz zworldz zprograms.z zinz zthe,z zpre,viousz zse,ction,z zwe,z zuse,dz zitz ztoz ze,xplore,z ztopicsz zlike,z zalgorithms,z zsyntax,z zandz zc++z zprogrammingz ze,nvironme,nts.z zinz zthisz zse,ctionz zwe,z zwillz zgoz zfurthe,r:z zwe,z zwillz zmanipulate,z zthe,z zcode,.z z

    C++z zuse,sz zthe,z zcoutz zobje,ctz zfromz zthe,z ziostre,amz zlibrary.z zanz zobje,ctz zisz zaz zme,thodz zthatz zaz zcompute,rz zuse,sz ztoz zmanage,z zdata.z zinz zourz ze,xample,,z zcoutz zwasz zuse,dz ztoz zte,llz zthe,z zcompile,rz ztoz zprintz z"he,lloz zworldz zwithz zthe,z z>>z zope,rator.z zdon’tz zfre,akz zout;z zwe,z zwillz zdiscussz zope,ratorsz zandz zobje,ctsz zinz zlate,rz zchapte,rs.z zforz znow,z zit’sz ze,noughz ztoz zunde,rstandz zthatz zthe,z zcompile,rz zre,adsz zcoutz zasz zspe,cificz zinstructionsz zbe,cause,z zthatz zinstructionz zisz zde,fine,dz zinz zthe,z ziostre,amz zlibraryz zthatz zwe,z zde,clare,d.z z

    Now,z zle,t’sz zlookz zatz zhe,lloz zworldz zandz zthe,z zcoutz zobje,ctz zbyz zchangingz zthe,z zprintz zout.z zfindz zthe,z zoriginalz zcode,z zhe,re,z zsoz zyouz zcanz zuse,z zitz zasz zaz zre,fe,re,nce,:z z

    https://ide,.ge,e,ksforge,e,ks.org/e,a8zme,kidoz z

    image16.png

    z z

    he,lloz zworldz zprogramz zinz zge,e,ksforge,e,ksz zide,z z

    Thisz zscre,e,nshotz zisz zthe,z zsucce,ssfulz zrunz zofz zhe,lloz zworldz zinz zsplit-scre,e,nz zmode,.z zasz zwe,z zbe,ginz ztoz zuse,z zthe,z zide,z zforz zcodingz ze,xe,rcise,s,z znote,z zthe,z zinputz zandz zoutputz zboxe,s.z zwhile,z zthe,re,z zare,z znoz zinputsz zforz zthisz zprogram,z zyouz zwillz zinputz zdataz zintoz zthe,z ztopz zboxz zlabe,le,dz zinputz zgoe,sz zhe,re,…z zwhe,nz zprompte,dz zbyz zthe,z zprogramz zinz zthe,z zoutputz zbe,low.z z

    Youz zcanz zacce,ssz zthisz zprogramz zinz zthe,z zsave,dz zide,z zhe,re,:z zhttps://ide,.ge,e,ksforge,e,ks.org/e,a8zme,kido.z z

    Youz zcanz zalsoz zvie,wz zaz zcopyz zofz zthe,z zcode,z zinz zthe,z zinde,x.z z

    Usingz zcoutz z

    The,z zcoutz zobje,ctz zuse,sz zthe,z z<

    He,lloz zworldz z

    Iz zamz zle,arningz zc++z z

    Z z

    Like,z zthis:z z

    image30.png

    z z

    Addingz zcoutz zobje,ctsz z

    Thisz zscre,e,nshotz zisz zthe,z zsucce,ssfulz zrunz zofz zourz ze,dite,dz zhe,lloz zworldz zprogramz zinz zsplit-scre,e,nz zmode,.z zwhile,z zthe,z zprogramz zranz zwithoutz zanyz ze,rrors,z zitz zdidn’tz zproduce,z zthe,z zre,sultz zwe,z zwante,d.z zobse,rvingz zthe,z zoutput,z zthe,z zprinte,dz zte,xtz zisz zmissingz zaz zne,wz zline,.z zwe,z zwillz zhave,z ztoz zinstructz zthe,z zcompile,rz ztoz zaddz zthe,z zne,wz zline,z ztoz zge,tz zthe,z zde,sire,dz zre,sult.z z

    Addingz zline,sz zcanz zbe,z zdone,z zinz zse,ve,ralz zways:z zwe,z zcanz zaddz zde,limite,rsz zwithinz zthe,z zstringsz zorz zuse,z zanothe,rz zmanipulatorz zobje,ctz zfromz zthe,z ziostre,amz zlibrary.z z

    Usingz ze,scape,z zse,que,nce,sz z

    Althoughz zitz zmightz zbe,z zte,mptingz ztoz zwrite,z zaz zstringz zwithinz zcoutz zandz ze,nte,rz zaz zline,,z zitz zwillz znotz zwork.z zitz zwillz zbre,akz zthe,z zcode,z zandz zitz zwillz znotz zrun.z zdon’tz zbe,lie,ve,z zme,?z zte,stz zit!z z

    Youz zcanz zaddz zaz zne,wz zline,z zbyz zusingz zanz ze,scape,z zse,que,nce,.z ze,scape,z zse,que,nce,sz zare,z zuse,dz zinz zmanyz zinstance,sz zwhe,re,z zyouz zne,e,dz ztoz zintroduce,z zspe,cialz zcharacte,rsz zwithinz zstringsz zandz zcharacte,rz zstre,ams.z zitz zcanz zalsoz zaddz zline,s,z zlike,z zso:z z

    image23.png

    z z

    Usingz zin-stringz ze,scape,z zse,que,nce,sz ztoz zde,limitz zandz zmanipulate,z zthe,z zoutputz z

    Thisz zscre,e,nshotz zisz zthe,z zsucce,ssfulz zrunz zofz zourz ze,dite,dz zhe,lloz zworldz zprogramz zinz zsplit-scre,e,nz zmode,.z zusingz z 00029.jpeg ,z zwe,z zwe,re,z zable,z ztoz zge,tz zourz ze,xpe,cte,dz zoutput.z z

    Asz zyouz zlookz zatz zthe,z zcode,,z zyouz zcanz zse,e,z zthatz zdouble,sz zquote,sz zare,z zuse,d.z zso,z zifz zyouz zwantz ztoz zaddz zdouble,z zquote,sz zinz zaz zstring,z zyouz zwillz zhave,z ztoz zuse,z zanz ze,scape,z zse,que,nce,z zsoz zthatz zthe,z zcompile,rz zknowsz zthatz zisz znotz zaz zpartz zofz zthe,z zcode,.z znotz zdoingz zsoz zmayz zcause,z zunfore,se,e,nz ze,rrorsz zorz zbugs.z zthisz zisz zwhyz ze,scape,z zse,que,nce,sz zmatte,r.z zhe,re,z zisz zaz zlistz zofz zthe,z zmanyz zinstance,sz zwhe,re,z zthe,yz zcanz zbe,z zuse,dz z(e,scape,z zse,que,nce,s—cppre,fe,re,nce,.com,z zn.d.):z z

    00030.jpeg :z zuse,dz zforz zsingle,z zquote,sz z

    00031.jpeg :z zuse,dz zforz zdouble,z zquote,sz z

    00032.jpeg :z zuse,dz zforz zque,stionz zmarksz z

    00033.jpeg :z zuse,dz zforz zbackslashe,sz z

    00034.jpeg :z zstandsz zforz zformz zfe,e,dz zandz zisz zuse,dz ztoz zgoz ztoz zthe,z zne,xtz zpage,z z

    00029.jpeg :z zstandsz zforz zline,z zfe,e,dz zandz zisz zuse,dz ztoz zgoz ztoz zthe,z zne,xtz zline,z z

    00035.jpeg :z zstandsz zforz zhorizonatalz ztabz zandz zaddsz z5z zspace,sz zhorizontallyz z

    00036.jpeg :z zstandsz zforz zve,riticalz ztabz zandz zisz zuse,dz zforz zspacingz zinz zve,rticalz zlanguage,sz z

    Note,:z zifz zyouz zde,cide,z ztoz ztryz zdiffe,re,ntz ze,scape,z zse,que,nce,sz zasz zte,xtz zde,limite,rs,z zbe,z zsure,z ztoz zonlyz zuse,z zthe,z z

    00037.jpeg00038.jpeg00039.jpeg

    z zbuttonz ztoz zsave,z zyourz zworkz zatz zanothe,rz zurlz ztoz zre,turnz ztoz zlate,r.z ztoz zre,turnz ztoz zourz ze,xe,rcise,,z zyouz zcanz zuse,z

    Enjoying the preview?
    Page 1 of 1