Sunday, August 2, 2009

I need help with my program coz im too dum and its in c++?

well i have been working on my program and i have some books on c++ and stuff.








I have made my program but the button dos not work and i put the Functional code in but it did not work.





i want my program to Generate random letters and numbers


a-z and 0 - 9





its a Random Key Generator ( 4 numbers and 14 letters )





e.g : 1GEN-6HKE-8IJC-0FOE





my program ( without the Functional code my program works fine but the button and the text boxes dos notting lol)





so can you help me make my code or do you have some tips or links i can have ect








note:





My program has no Functional code for the button to make A key code Generator coz the Funcitonal codes in my college books dont work lol + i tryed to edit it to get it to work.

I need help with my program coz im too dum and its in c++?
You will get more help at http://www.codeguru.com
Reply:Have a look here http://www.cprogramming.com/tutorial.htm...
Reply:This would depend on what IDE you are using. VC++?? Borland ?? what. Each one has a different way of using controls on a form and initiating them. They are usually subclassed classes of the form type and you will have to give them variable names and functions in order to make them do what you want.
Reply:You don't just copy code around, you have to write code!





Note, also, that your sample code has 4 numbers and *12* letters, not 14.





Given the sample I would make a routine that returned a random number, another that returns a random letter, a third that calls the first once and the second 3 times to build a group and then a fourth that calls the third 4 times to build the result.





Routines 3 and 4 could use loops but personally I would not do so.


No comments:

Post a Comment