CodeCogs - A iteractive open source Numerical library in C/C++, with wrappers for .NET and Excel Welcome... Login
Site Map
shopping cart
OSX compatibleWindows compatibleLinux compatible
Search CodeCogs
Numerical Components
Worked Examples

Valid RSS

strings

word count

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 0.40
sub units 0.00
add a commercial licence to your cart
0
viewed 8193 times and licensed 201 times

This function determines the number of words in a string.

Controller: nitin_ananda    Contact Controller

+View version details
Contents hide toc

Interface

#include <codecogs/strings/word_count.h>

using namespace Strings;

int word_count (char * szInputString)
This function determines the number of words in a string.
ExcelInteger cc_word_count (String szInputString)
This function is available as a Microsoft Excel add-in.

Function Documentation

Word Count Calculator
  
Add calculator to website or email
 
intword_countchar*szInputString )
The assumptions involved are:
Example:
#include<codecogs/strings/word_count.h>
void main () {
   char * sz = "This is a string used to     count wordcount using the  
   word_count function.";
   int nWordCount = word_count (sz);
   printf ("The word count is %d", nWordCount);
}
Output:
12
Parameters:
szInputStringThe null terminated input string
Returns:
Number of words in the input string.
Authors:
Nitin Ananda
Source Code:

You do not own any licences for this module.
To view or download source code you must get a GPL licence or buy a commercial licence.

buy now     get GPL     add to cart

For advanced download and development options Register with CodeCogs. Already a Member, then Login.


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 18 Oct 07 @ 17:07     Page Rendered: 2008-11-21 00:02:23

Valid CSS!   Valid XHTML 1.0 Transitional