C and C++ Source Code Snippets

Welcome to Cprogramming.com's programming code snippet repository. Peruse the archives or add your own snippets for others to use! (Check the following link a better definition of a snippet)

Sort by clicking on any of the headers.

SnippetAuthorLanguagePlatformRating (votes)
Templated stack class Ali Nawkhas Murad C++ANSI5.0 (100)
Three Dimension Coordinate Systems ConverterAli Nawkhas Murad C++ANSI5.3 (106)
friend function exampleAli Nawkhas Murad C++ANSI4.7 (66)
A portable card deck class with shufflingSlyMaelstrom C++ANSI5.6 (9)
The standard ASCII table generator.Ali Nawkhas Murad C++ANSI5.0 (99)
A simple double linked list using OOP techniquesAli Nawkhas Murad C++ANSI5.5 (141)
An example of simple stack using linked lists.Ali Nawkhas Murad C++ANSI6.1 (90)
Integer subset generatortreenef C++ANSI5.3 (10)
Calculates 1 variable statisticsPaul Kennedy C++ANSI5.8 (9)
A simple example of hashtableAli Nawkhas Murad C++ANSI5.5 (131)
Color header for Windows that integrates with coutSang-drax C++Windows5.8 (231)
binary addition using stack in STLanmol C++ANSI4.9 (96)
Simple example for using thousand separator (,)Ali Nawkhas Murad C++ANSI5.9 (63)
Conversions between number systemsAli Nawkhas Murad C++ANSI5.1 (106)
ASCII table generatorAbdul Haseeb Mir C++ANSI5.9 (79)
An example of Exception HandlingAli Nawkhas Murad C++ANSI5.7 (66)
Previous 30

Add a snippet!