Results 1 to 3 of 3

Thread: Important for a project

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    16

    Important for a project

    I am writing a translation program spanish to english
    in void main i have put functions [a] through [z] I want the function to be activated by only the first letter of the word under the function i have made if statements and i have used apstring if word==the spanish word then english word how do I call only the first letter of the word typed in from main to call the function

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    thats not really a good idea. If you're using C++ use a map, if you're using C, find a decent tree on the net.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Member
    Join Date
    Jun 2003
    Posts
    43

    Smile

    Hi friend,

    Its not tough. Use suitable DATA STRUCTUR. Like map, array or tree. It will work..
    Try..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width