What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » c++ help

c++ help
Author: Message:
Muss
Former Moderator
*****

Avatar
This Is The Start To A New Era

Posts: 1349
Reputation: 8
39 / Other / –
Joined: Apr 2002
O.P. RE: c++ help
Well that doesn't help then :refuck:



Anyway I fgured out A way to do it, probably isn't very efficient, but it works well enough.


Generate random number
Enter For loop that loops until 'i' = the random number, and increment 'i'

In the loop read in a line of the text.

'i' then gets incremented, and is checked if it is = to the random number

if it isn't, we carry on the loop and the next line of text is read.


That happens until 'i' = the random number.


And thus have a semi random word :P



(used the srand time random thingy, so it generates a random number in relation to the time since some date, so it is basically truely random :P)


Thanks for attempting to help mike :P
05-29-2004 08:52 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
c++ help - by Muss on 05-29-2004 at 07:32 AM
RE: c++ help - by Mike on 05-29-2004 at 08:36 AM
RE: c++ help - by Muss on 05-29-2004 at 08:52 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On