Computer Science Canada

String Manipulations

Author:  Jessica359 [ Mon May 26, 2008 10:48 am ]
Post subject:  String Manipulations

What Function would i use for this?

A name abbreviation application which allows the user to enter their full name and displays the name in abbreviated format.

Very Happy

Author:  Sean [ Mon May 26, 2008 11:37 am ]
Post subject:  Re: String Manipulations

You would need to use arrays. Then take the first character value of both.

Turing:

var names : array 1 .. 2 of string (30)

get names (1)
get names (2)

put names (1) (1), names (2) (1)


This takes the two names that is entered, and takes the first character value for each of the arrays. Then displays them.


: