Click here to Skip to main content
15,909,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Random Name Generator Pin
David Crow14-Aug-09 7:03
David Crow14-Aug-09 7:03 
GeneralRe: Random Name Generator Pin
Chuck Vought14-Aug-09 7:51
Chuck Vought14-Aug-09 7:51 
GeneralRe: Random Name Generator Pin
David Crow14-Aug-09 7:53
David Crow14-Aug-09 7:53 
GeneralRe: Random Name Generator Pin
Chuck Vought14-Aug-09 9:31
Chuck Vought14-Aug-09 9:31 
QuestionRe: Random Name Generator Pin
David Crow14-Aug-09 9:36
David Crow14-Aug-09 9:36 
GeneralRe: Random Name Generator Pin
Chuck Vought14-Aug-09 9:40
Chuck Vought14-Aug-09 9:40 
GeneralRe: Random Name Generator Pin
Chuck Vought14-Aug-09 9:45
Chuck Vought14-Aug-09 9:45 
QuestionRe: Random Name Generator Pin
David Crow14-Aug-09 9:47
David Crow14-Aug-09 9:47 
Chuck Vought wrote:
put it in the outer for loop or does it go with the declarations?


Think about it. You are doing concatenation. At what point would name need to start over?

Chuck Vought wrote:
i still get the error subscript out of range.


Making it a constant has nothing to do with the error.

Chuck Vought wrote:
name[i] += letters[i%2][rand()%letterlength[i%2]];


name is not an array yet you are treating it as one. Remove the subscript.

"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


AnswerRe: Random Name Generator Pin
Chuck Vought14-Aug-09 9:52
Chuck Vought14-Aug-09 9:52 
AnswerRe: Random Name Generator Pin
Chuck Vought14-Aug-09 10:26
Chuck Vought14-Aug-09 10:26 
GeneralRe: Random Name Generator Pin
David Crow14-Aug-09 10:37
David Crow14-Aug-09 10:37 
GeneralRe: Random Name Generator Pin
Chuck Vought14-Aug-09 11:00
Chuck Vought14-Aug-09 11:00 
QuestionRe: Random Name Generator Pin
David Crow14-Aug-09 11:04
David Crow14-Aug-09 11:04 
AnswerRe: Random Name Generator Pin
Chuck Vought14-Aug-09 11:11
Chuck Vought14-Aug-09 11:11 
GeneralRe: Random Name Generator Pin
David Crow14-Aug-09 11:13
David Crow14-Aug-09 11:13 
GeneralRe: Random Name Generator Pin
Chuck Vought14-Aug-09 11:19
Chuck Vought14-Aug-09 11:19 
GeneralRe: Random Name Generator Pin
Chuck Vought14-Aug-09 15:12
Chuck Vought14-Aug-09 15:12 
GeneralRe: Random Name Generator Pin
David Crow15-Aug-09 5:20
David Crow15-Aug-09 5:20 
AnswerRe: Random Name Generator Pin
Chuck Vought14-Aug-09 10:19
Chuck Vought14-Aug-09 10:19 
GeneralRe: Random Name Generator Pin
David Crow14-Aug-09 10:27
David Crow14-Aug-09 10:27 
GeneralRe: Random Name Generator Pin
Chuck Vought14-Aug-09 10:36
Chuck Vought14-Aug-09 10:36 
GeneralRe: Random Name Generator Pin
sashoalm15-Aug-09 4:20
sashoalm15-Aug-09 4:20 
GeneralRe: Random Name Generator Pin
Chuck Vought15-Aug-09 13:35
Chuck Vought15-Aug-09 13:35 
Questionflowing strings on BMP image of SDI View window? Pin
rambojanggoon12-Aug-09 21:39
rambojanggoon12-Aug-09 21:39 
AnswerRe: flowing strings on BMP image of SDI View window? Pin
KarstenK12-Aug-09 22:04
mveKarstenK12-Aug-09 22:04 

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.