Skip to main content

Posts

Showing posts from February, 2019

1.2 Advanrages & Disadvantages of CPP

1-Introduction    Previous Post is 1.1 into to CPP now we Discuss about Advantages and Disadvantages of CPP. 1.2 Advantages and Disadvantages     Advantages vendor-neutral: The C++ Standard is the same in any platform or compiler. Industrial (as opposed to academic): evolved to satisfy the needs of software engineers, not computer scientists. Efficient , Compiles into highly optimized CPU-specific machine code with little or no run time overhead. Multi-pardigm: Allows the use and penalty-free mixing of procedural,OOP,Generic Programming,Function Programming etc. Strictly Statically typed (unlike python for example): a large amount of logic(and sometimes even calculations) can be proved and performed at compile time,by the type checking /inferring System. Has Deterministic Memory Management(as opposed to java,C# and Other languages with garbage collectors):the life time of every object is known with absolute precision,which makes destructors u...

1.1 Intro to CPP

1 - Introduction       1.1 Intro to C++                C++ is general-purpose, Case Sensitive,free-form programming language that supports procedural,object-oriented and generic programming. C++ is regarded as middle-level language,as it comprises a combination of both high-level and low level language features. C++ was developed by Bjarne Stroustrup of At&t Bell Laboratories in early 1980's,and is based on c language. The"++" is synatactic construct used in c (to increment a variable) , and c++ is intended as and incremental improvement of c.most of c a subset of c++ ,so that most c programs can be compiled (i.e. Converted into series of low-level instructions  that can execute directly) using a c++ compiler. C+= is a superset of c,and that virtually any legal c program is legal c++ program. Object-Oriented Programming C++ fully supports object-oriented programming,inclueding the four pillars of...

Cpp Tutorials

1-Introduction   1.1 Intro To C++   1.2 Advantages and Disadvantages 2-An Example of C++ Program   2.1 Structure of Program 3-Variables and Operators   3.1 Variables   3.2 Variables Scope   3.3 Constants-Literals   3.4 Variables Storage Classes   3.5 Operators 4-Compund Types   4.1 Array   4.2 String   4.3 Pointer   4.4 Structure   4.5 Reference   4.6 Enumration and Type Def 5-Input and Output   5.1 Cout (Output Stream)   5.2 Cin  (Input Stream)   5.3 Cerr (Error Stream)   5.4 Clog (Log Stream) 6-Flow of Control 6.1 Conditional Branching if 6.2 Conditional Selection Switch 6.3 Loop-While and For 6.4 Break and Continue 6.5 Random Number 7-Functions   7.1 Function Basics   7.2 Declaration ,Call and Arguments   7.3 Inline Function   7.4 Recursion 8-Object Oriented Approach   8.1 Classes Basics   8.2 Cons...