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++ANSI7.0 (398)
friend function exampleAli Nawkhas Murad C++ANSI7.2 (380)
Three Dimension Coordinate Systems ConverterAli Nawkhas Murad C++ANSI5.3 (108)
Templated stack class Ali Nawkhas Murad C++ANSI8.7 (962)
Pascal's TriangleAli Nawkhas Murad C++ANSI6.8 (474)
An example of Exception HandlingAli Nawkhas Murad C++ANSI4.6 (92)
Color header for Windows that integrates with coutSang-drax C++Windows5.4 (256)
Examples of dynamic multidimensional arraysAli Nawkhas Murad C++ANSI5.6 (127)
Calculates 1 variable statisticsPaul Kennedy C++ANSI2.3 (33)
Simple Windows Socket Server ExampleJahan Addison C++Windows5.2 (139)
Previous 30

Add a snippet!