| delorie.com/archives/browse.cgi | search |
| From: | "neohashi" <Neohashi AT mail DOT tele DOT dk> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: small problem with namegenerator. |
| Date: | Sun, 31 Dec 2000 12:48:41 +0100 |
| Organization: | Posted Courtesy of Tele Danmark or one of its European Subsidiaries |
| Lines: | 32 |
| Message-ID: | <92n64p$2rb$1@news.inet.tele.dk> |
| References: | <92ldqa$300$1 AT news DOT inet DOT tele DOT dk> <Mns36.97320$8r2 DOT 2058371 AT nlnews00 DOT chello DOT com> |
| NNTP-Posting-Host: | ip152.odnxr2.ras.tele.dk |
| X-Trace: | news.inet.tele.dk 978263001 2923 195.249.49.152 |
| X-Complaints-To: | the appropriate department of the poster's provider |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
> // the problem was that you used > // > // if (ran <= 5) > // n2 = "ka"; > // else > // n2 = "cona"; > // > // but I think that should be: > // > // if (ran <= 5) > // n1 = "ka"; > // .... > // use n1 instead of n2 because you use that with the next random urg... that was a small type error :/ (happened when I sized down the code in order to make it more simple)... well the problem is that if I don't use the sprintf() funtion, to merge the n strings into one string, but insted plece n1,n2 and n3 in 3 temporary strings nested inside the city struct, then the city names _are_ different!! If I do use usprint() all the cities has the same name, but they are random in that sense that they are different on each startup. it's very strange.... help anyone? TIA. neohashi
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |