Difference between revisions of "CPP"
From ProgrammingExamples
(Create a dispatch page for the C++ examples) |
(Pull the C++ examples to this page) |
||
Line 3: | Line 3: | ||
---- | ---- | ||
=== Programming Examples === | === Programming Examples === | ||
+ | * [[CPP/AlphebetizeString|Alphabetize a vector of strings]] | ||
+ | * [[CPP/ZeroPad|Pad a number with zeros]] | ||
+ | * [[CPP/Array|Array]] | ||
+ | * [[CPP/2DArray|2D Array]] | ||
+ | * [[CPP/BinaryIO|Binary input and output]] | ||
+ | * [[CPP/ExecuteLinuxCommand|Execute a linux command]] | ||
+ | * [[CPP/Casting|Casting]] | ||
+ | * [[CPP/CharacterArray|Character array]] | ||
+ | * [[CPP/KeyboardInput|Keyboard input]] | ||
+ | * [[CPP/CommandLineArguments|Command line arguments]] | ||
+ | * [[CPP/DeepCopy|Deep copy]] | ||
+ | * [[CPP/DefaultArguments|Default arguments]] | ||
+ | * [[CPP/Enum|Enum]] | ||
+ | * [[CPP/Exceptions|Exceptions]] | ||
+ | * [[CPP/FunctionPointer|Function pointer]] | ||
+ | * [[CPP/Infinity|Infinity]] | ||
+ | * [[CPP/Logging|Logging]] | ||
+ | * [[CPP/Macros|Macros]] | ||
+ | * [[CPP/Namespaces|Namespaces]] | ||
+ | * [[CPP/NAN|NAN (not a number)]] | ||
+ | * [[CPP/OverloadOperator|Overload operator]] | ||
+ | * [[CPP/ParallelSort|Parallel sort]] | ||
+ | * [[CPP/RandomNumbers|Random numbers]] | ||
+ | * [[CPP/StringStream|StringStream]] | ||
+ | * [[CPP/Struct|Struct]] | ||
+ | * [[CPP/Switch|Switch]] | ||
+ | * [[CPP/Typedef|Typedef]] | ||
+ | * [[CPP/VariableNumberOfArguments|Variable number of function arguments]] | ||
+ | |||
+ | === I/O === | ||
+ | * [[CPP/IO/Setw|Column width (setw)]] | ||
+ | * [[CPP/IO/FileInput|File input]] | ||
+ | * [[CPP/IO/FileOutput|File output]] | ||
+ | * [[CPP/IO/ReadingLines|Reading lines from a text file]] | ||
+ | |||
+ | === Strings === | ||
+ | * [[CPP/Strings/Compare|Compare strings]] | ||
+ | * [[CPP/Strings/Concatenate|Concatenate]] | ||
+ | * [[CPP/Strings/CountCharacters|Count characters]] | ||
+ | * [[CPP/Strings/Split|Split]] | ||
+ | * [[CPP/Strings/Case_Conversion|Case conversion]] | ||
+ | |||
+ | === Classes === | ||
+ | * [[CPP/Classes/ClassTemplate|Class template]] | ||
+ | * [[CPP/Classes/ConstructorInheritance|Constructor inheritance]] | ||
+ | * [[CPP/Classes/InitializationList|Initialization list]] | ||
+ | * [[CPP/Classes/DerivedClass|Derived class]] | ||
+ | * [[CPP/Classes/DownCasting|Down casting]] | ||
+ | * [[CPP/Classes/FriendClass|Friend class]] | ||
+ | * [[CPP/Classes/NestedClasses|Nested classes]] | ||
+ | * [[CPP/Classes/PureVirtualFunction|Pure virtual function]] | ||
+ | * [[CPP/Classes/Singleton|Singleton]] | ||
+ | |||
+ | === Loops === | ||
+ | * [[CPP/Loops/DoWhile|Do while]] | ||
+ | * [[CPP/Loops/While|While]] | ||
+ | * [[CPP/Loops/For|For]] | ||
+ | |||
+ | === STL Data Structures === | ||
+ | *[[CPP/STL/String|String]] | ||
+ | *[[CPP/STL/Vector|Vector]] | ||
+ | *[[CPP/STL/List|List]] | ||
+ | *[[CPP/STL/Set|Set]] | ||
+ | *[[CPP/STL/MultiSet|MultiSet]] | ||
+ | *[[CPP/STL/Map|Map]] | ||
+ | *[[CPP/STL/MultiMap|MultiMap]] | ||
+ | *[[CPP/STL/Pair|Pair]] | ||
+ | *[[CPP/STL/PriorityQueue|Priority queue]] | ||
+ | *[[CPP/STL/Queue|Queue]] | ||
+ | *[[CPP/STL/Tuple|Tuple]] | ||
+ | |||
+ | === STL Algorithms === | ||
+ | *[[CPP/STL/RandomShuffle|Random shuffle]] | ||
+ | *[[CPP/STL/Sort|Sort]] | ||
+ | |||
+ | === Debugging === | ||
+ | * [[CPP/Debugging/Assert|Assert]] | ||
+ | * [[CPP/Debugging/LineNumbers|LineNumbers]] | ||
+ | |||
+ | === C++ TR1 === | ||
+ | |||
+ | *[[CPP/TR1/Regex_Tokenising|Tokenising with RegEx]] | ||
+ | |||
+ | === C++0x === | ||
+ | *[[CPP/C++0x/Hash|Hash]] | ||
+ | |||
+ | === Math === | ||
+ | *[[CPP/Math/Exponential|Exponential function]] | ||
+ | *[[CPP/Math/MinMax|Min and Max]] | ||
+ | *[[CPP/Math/Trig|Trig functions]] |
Revision as of 21:25, 26 June 2010
Contents
C++
A statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. It is regarded as a "middle-level" language, as it comprises a combination of both high-level and low-level language features. It was developed by Bjarne Stroustrup starting in 1979 at Bell Labs as an enhancement to the C programming language and originally named C with Classes. It was renamed C++ in 1983. (http://en.wikipedia.org/wiki/C++)
Programming Examples
- Alphabetize a vector of strings
- Pad a number with zeros
- Array
- 2D Array
- Binary input and output
- Execute a linux command
- Casting
- Character array
- Keyboard input
- Command line arguments
- Deep copy
- Default arguments
- Enum
- Exceptions
- Function pointer
- Infinity
- Logging
- Macros
- Namespaces
- NAN (not a number)
- Overload operator
- Parallel sort
- Random numbers
- StringStream
- Struct
- Switch
- Typedef
- Variable number of function arguments
I/O
Strings
Classes
- Class template
- Constructor inheritance
- Initialization list
- Derived class
- Down casting
- Friend class
- Nested classes
- Pure virtual function
- Singleton