Hello friends of all, what is said ni? Hmm .. what else you create bete at home, bored playing poker or facebook and want to do something you've probably never done, or maybe you want to make something useful like a dictionary? Well, now I will give you an answer on how to create a dictionary with C + + Builder. Yes, maybe for some people who have experienced this is something that ordinary (or roughly stale = ( "). But it does not matter to me, because I think there are many people out there who do not know and need this knowledge.
Fine, I'll shorten reading =). Previously, this article I quoted from one of the magazine where I used to be members. I've always learned, and the results fairly. But for now I've never tried it again and could only try to write for other people =).
Initial step to make this dictionary are:
1. run the program C + + builder. Select New, then will appear the image and select Application. Then press OK.
2. On the Form, input components and Button Edit. With the arrangement as follows:
Components ------- ------- ------- -------- -------- Property Value ---------
Form Name Dictionary
Edit Name Indonesia
Text (blank)
Edit Name Home
Text (blank)
Button Name Translate
Caption Translate
3. If the above components have been completed, then the coding is done by clicking twice (2x) component button. Then enter the following code:
void __fastcall TForm1:: Button1Click (TObject * Sender)
31
(
if (Indonesia-> Text == "where") bahasa-> Text = "where";
if (Indonesia-> Text == "home") English-> text = "home";
if (Indonesia-> Text == "sedan") bahasa-> Text = "car";
if (Indonesia-> Text == "false") bahasa-> Text = "false";
)
After that did RUN or by pressing F9.
========================Hopefully Helpful====================
okeh okeh... moga berhasil bro =)
BalasHapus