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 (446)
friend function exampleAli Nawkhas Murad C++ANSI6.5 (428)
Three Dimension Coordinate Systems ConverterAli Nawkhas Murad C++ANSI5.3 (108)
Templated stack class Ali Nawkhas Murad C++ANSI9.1 (1921)
Pascal's TriangleAli Nawkhas Murad C++ANSI6.3 (519)
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.3 (140)
Previous 30

Add a snippet!