Difference between revisions of "CPP"
From ProgrammingExamples
Daviddoria (Talk | contribs) (→STL Algorithms) |
Daviddoria (Talk | contribs) |
||
Line 69: | Line 69: | ||
=== STL Algorithms === | === STL Algorithms === | ||
− | *[[CPP/STL/RandomShuffle|Random shuffle]] | + | * [[CPP/STL/RandomShuffle|Random shuffle]] |
− | *[[CPP/STL/Sort|Sort a vector]] | + | * [[CPP/STL/Sort|Sort a vector]] |
− | *[[CPP/STL/SetDifference|Find the different elements in two containers (set_difference)]] | + | * [[CPP/STL/SetDifference|Find the different elements in two containers (set_difference)]] |
+ | * [[CPP/STL/RandomData|Random data (std::generate)]] | ||
=== Debugging === | === Debugging === | ||
Line 78: | Line 79: | ||
=== C++ TR1 === | === C++ TR1 === | ||
− | |||
*[[CPP/TR1/Regex_Tokenising|Tokenising with RegEx]] | *[[CPP/TR1/Regex_Tokenising|Tokenising with RegEx]] | ||
Line 96: | Line 96: | ||
* [[CPP/FunctionPointer|Function pointer]] | * [[CPP/FunctionPointer|Function pointer]] | ||
* [[CPP/VariableNumberOfArguments|Variable number of function arguments]] | * [[CPP/VariableNumberOfArguments|Variable number of function arguments]] | ||
+ | |||
+ | === Boost === | ||
+ | * [[CPP/Boost/Histogram|Create a histogram (accumulator)]] | ||
+ | * |
Revision as of 15:53, 28 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
- Binary input and output
- Execute a linux command
- Casting
- Keyboard input
- Command line arguments
- Deep copy
- Default arguments
- Enum
- Exceptions
- Infinity
- Logging
- Namespaces
- NAN (not a number)
- Overload operator
- Parallel sort
- Random numbers
- StringStream
- Struct
- Switch
- Typedef
I/O
Strings
Classes
- Class template
- Constructor inheritance
- Initialization list
- Derived class
- Down casting
- Friend class
- Nested classes
- Pure virtual function
- Singleton
Loops
STL Data Structures
STL Algorithms
- Random shuffle
- Sort a vector
- Find the different elements in two containers (set_difference)
- Random data (std::generate)