C and C++ Source Code SnippetsThanks for your interest in helping programmers everywhere by submitting a useful code snippet. Please keep your submission clean. All entries are reviewed prior to being posted. If you do not want your email address posted, please leave the email field blank.
There is no need to surround any source code with <pre> tags to ensure proper formatting as your submission will be formatted exactly as you enter it (and you may use special characters such as < or > directly in your code). Please note that by submitting your snippet for others to use, you grant Cprogramming.com the right to display your snippet, and visitors of Cprogramming.com the right to use your snippet. We reserve the right to edit all submissions for clarity and content.