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)
The standard ASCII table generator.Ali Nawkhas Murad C++ANSI6.4 (455)
friend function exampleAli Nawkhas Murad C++ANSI6.5 (439)
Three Dimension Coordinate Systems ConverterAli Nawkhas Murad C++ANSI5.3 (110)
Templated stack class Ali Nawkhas Murad C++ANSI9.6 (4668)
Pascal's TriangleAli Nawkhas Murad C++ANSI6.3 (532)
An example of Exception HandlingAli Nawkhas Murad C++ANSI4.6 (94)
Color header for Windows that integrates with coutSang-drax C++Windows5.4 (257)
Examples of dynamic multidimensional arraysAli Nawkhas Murad C++ANSI5.8 (135)
Calculates 1 variable statisticsPaul Kennedy C++ANSI2.3 (34)
Simple Windows Socket Server ExampleJahan Addison C++Windows5.3 (142)
Previous 30

Add a snippet!