Jump to content

Just Got Back From Camp And Need Good Challenge


Archerzz

Recommended Posts

  • Replies 50
  • Created
  • Last Reply

Top Posters In This Topic

You could do...

 

   for (begin = 0; begin < end; begin++)
  {
        cout << love[0];
        cout << love[1];

        if (begin == (end - 1)) {
            srand(time(NULL));
            if ( (rand() % 2) == 1 ) {
                cout << love[0];
            }
        }
  }

Share this post


Link to post
Share on other sites

lol. I guess you could also do... uhm....

 

for (begin = 0; begin < end; begin++)
{
  cout << love[0];
  cout << love[1];

  if (begin == (end - 1)) {
     srand(time(NULL));
     if ( (rand() % 100) & 1 ) {
        cout << love[0];
     }
  }
}

 

I think this one would be better (the & 1 is a test for odd or even incase you don't know)

 

EDIT: and it just occured to me I don't have to use 0x0001 and it's probly better to just use 1 :D

Share this post


Link to post
Share on other sites

Me too I live to serve you masters...... *bows down*....

 

 

Its not that I cant teach myself, I actully think I am learning better from myself than I did in class but I just cant come up with good program ideas. :unsure:

Share this post


Link to post
Share on other sites

Me too I live to serve you masters...... *bows down*....

Its not that I cant teach myself, I actully think I am learning better from myself than I did in class but I just cant come up with good program ideas.  :unsure:

521309[/snapback]

 

OCC Instant Messenger (a.k.a go on IRC thing) :D

 

No but really. I've no ideas either, not for anything useful that I need anyway.

 

Actually, I think I might have a go at a mini totally unfunctional chat server thing and see what happens. Could be interesting... could get logins from MySQL and... and.... *goes away and looks at network programming function stuffs*

Share this post


Link to post
Share on other sites

No markie, you're still a young man! Don't waste away your innosence!

521367[/snapback]

 

lol.. i just realised a client would have to be like.. graphical and stuff... brr! that would be quite a task..... and... i guess the server would have to be threaded...... eek

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...