|
-
Dec 11th, 2003, 09:54 PM
#1
Thread Starter
Junior Member
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
-
Dec 12th, 2003, 03:35 AM
#2
transcendental analytic
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.
-
Dec 12th, 2003, 10:52 AM
#3
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|