All pastes #362783 Raw Edit

Someone

public cpp v1 · immutable
·published 2007-02-19 01:32 UTC
rendered paste body
//  ************************** Raise Character Case **************************void	raiseCase						// Raise character case			(string  mat[],				// Matrix of strings			 int     rows,				// Number of rows			 int     r,					// Row			 int     c,					// Column			 int     ri,				// Row    increment			 int     ci,				// Column increment			 int     count)				// Number of characters{	char	  ch;						//  Character		// While there are characters to process	while (count > 0)	{		// Get a character		ch = getCharacter(mat, rows, r, c);		// If the character is valid		if (ch != '\0')		{			// Convert to upper case			mat[r][c] = toupper(ch);		}		// Increment the row		r += ri;		// Increment the column		c += ci;		// Decrement the count		count--;	}}