Please support our C advertiser: Programming Forums
Contribute Code

Morse Code

This code uses a structure to map a letter to an equivalent representation of Morse code. It simply loops through either a string to encode or decode looking for text to substitute with a replacement string or character. Output is presented to the stdout. (View Snippet)

Wordwrap

This program outputs a given string word-wrapped to N columns in console. The program can also handle words whose length is greater than N. (View Snippet)

Strings: Comparing, Case-Insensitive

How might I write an implementation in C of a case-insensitive version of the standard library function strcmp? Here's how I might. This this is often available as a nonstandard function that may be called stricmp, _stricmp, strcmpi, or strcasecmp. See also Strings: Comparing. (View Snippet)

Read an Integer from the User, Part 3

This is a strtol version of Read an Integer from the User, Part 2. (View Snippet)

Parsing a String into Tokens Using strcspn, Part 2

This snippet is a variation of the code in Parsing a String into Tokens Using strcspn, Part 1. It uses canned strings rather than reading from a file. See also Parsing a String into Tokens Using strcspn, Part 3. (View Snippet)

Parsing a String into Tokens Using strcspn, Part 3

Yet another angle at this same topic. See also Parsing a String into Tokens Using strcspn, Part 1 and Parsing a String into Tokens Using strcspn, Part 2. (View Snippet)

ROUND ROBIN SCHEDULING

THIS IS A SCHEDULING ALGO BASED ON ROUND ROBIN SCHEDULING. (View Snippet)

strocc function

count the number of occurrences of a sub-string in another string. a good example for learning how to make your own functions like strcpy, strlen and strcmp (View Snippet)

A Simple Calculator

Beginner C++ - A simple calculator writen in C++, compiled on Tubo C++ v4.5 & Borland C++ 5.5. The user inputs numbers & chooses '+','-','*'/' The operator is tested. If correct the appropriate sum is preformed. (View Snippet)

Binary Search Tree Template

Introduction There are many times when we try to create a binary search tree of many different data types. This article explains creation of a template library CTree. template <class T>class CTree can be used to create a binary search tree (BST) of any data type. Features This class support all... (View Snippet)
Contribute Code
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:43 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC