Introduction

From TRCCompSci - AQA Computer Science
Revision as of 22:06, 16 December 2016 by Jared (talk | contribs) (Created page with "== Introduction to C++ == C++ is a language that is similar to C#, it shares much of the syntax and formatting. This is due to C# having been created as an advancement on C++...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction to C++

C++ is a language that is similar to C#, it shares much of the syntax and formatting. This is due to C# having been created as an advancement on C++. A key difference that is essential to know is C# is protected, it is far harder to cause serious damage or make inefficient code that causes large slow downs, this differs to C++ which lacks this protection. Despite the risks working in C++ allows for better interaction with hardware, and better manipulation for memory. This means that when programming something extremely large, or working directly with hardware C++ can be of more use, furthermore knowing C++ allows someone access to almost any aspect of programming.

Differences

C++ has a feature that is not within C#, Pointers. A pointer is a direct target at memory, this means that as opposed to recreating something such as an image or passing a reference to where the image is, the program can directly look at the memory.