Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 String Manipulations
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jessica359




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Sean




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: