Click here to Skip to main content
15,892,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Strange runtime behavior without breakpoint Pin
Code-o-mat13-Aug-09 2:07
Code-o-mat13-Aug-09 2:07 
GeneralRe: Strange runtime behavior without breakpoint Pin
Tomas(cz)13-Aug-09 3:41
Tomas(cz)13-Aug-09 3:41 
QuestionCapture inactive desktop in windows Pin
Stifly13-Aug-09 0:36
Stifly13-Aug-09 0:36 
AnswerRe: Capture inactive desktop in windows Pin
Code-o-mat13-Aug-09 6:57
Code-o-mat13-Aug-09 6:57 
QuestionRandom Name Generator Pin
Chuck Vought13-Aug-09 0:30
Chuck Vought13-Aug-09 0:30 
QuestionRe: Random Name Generator Pin
CPallini13-Aug-09 0:55
mveCPallini13-Aug-09 0:55 
AnswerRe: Random Name Generator Pin
Chuck Vought13-Aug-09 2:11
Chuck Vought13-Aug-09 2:11 
GeneralRe: Random Name Generator Pin
CPallini13-Aug-09 2:31
mveCPallini13-Aug-09 2:31 
Chuck Vought wrote:
How do you go about randomly assigning alternating vowels and consonants? I have created arrays for each but can not determine the way to alternate them.

That's simple, Stuart already provided the way, see [^]. The idea is:
the index of a loop takes alternatively even and odd values, you should choose a consonant whenever the loop index is even (a vowel whenever it is odd). To test for evenness (or oddness) use the modulus operator % this way: (i%2) (it returns 0 whenever i is even and 1 whenever i is odd).
As about assigning names to an array, what is your doubt?
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: Random Name Generator Pin
Chuck Vought13-Aug-09 3:10
Chuck Vought13-Aug-09 3:10 
General[Message Deleted] Pin
Chuck Vought13-Aug-09 4:17
Chuck Vought13-Aug-09 4:17 
GeneralRe: Random Name Generator Pin
sashoalm13-Aug-09 4:48
sashoalm13-Aug-09 4:48 
GeneralRe: Random Name Generator Pin
Sauce!14-Aug-09 1:04
Sauce!14-Aug-09 1:04 
GeneralRe: Random Name Generator Pin
CPallini17-Aug-09 22:08
mveCPallini17-Aug-09 22:08 
AnswerRe: Random Name Generator PinPopular
Stuart Dootson13-Aug-09 1:01
professionalStuart Dootson13-Aug-09 1:01 
AnswerRe: Random Name Generator Pin
sashoalm13-Aug-09 5:16
sashoalm13-Aug-09 5:16 
GeneralRe: Random Name Generator Pin
Chuck Vought13-Aug-09 9:16
Chuck Vought13-Aug-09 9:16 
GeneralRe: Random Name Generator Pin
Chuck Vought13-Aug-09 13:27
Chuck Vought13-Aug-09 13:27 
AnswerRe: Random Name Generator Pin
David Crow14-Aug-09 2:49
David Crow14-Aug-09 2:49 
GeneralRe: Random Name Generator Pin
Chuck Vought14-Aug-09 4:15
Chuck Vought14-Aug-09 4:15 
AnswerRe: Random Name Generator Pin
David Crow14-Aug-09 4:23
David Crow14-Aug-09 4:23 
GeneralRe: Random Name Generator Pin
Chuck Vought14-Aug-09 5:06
Chuck Vought14-Aug-09 5:06 
GeneralRe: Random Name Generator Pin
David Crow14-Aug-09 5:09
David Crow14-Aug-09 5:09 
GeneralRe: Random Name Generator Pin
Chuck Vought14-Aug-09 5:12
Chuck Vought14-Aug-09 5:12 
GeneralRe: Random Name Generator Pin
David Crow14-Aug-09 5:15
David Crow14-Aug-09 5:15 
GeneralRe: Random Name Generator Pin
Chuck Vought14-Aug-09 5:18
Chuck Vought14-Aug-09 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.