Jump to content
Sign in to follow this  
Archerzz

Just Got Back From Camp And Need Good Challenge

Recommended Posts

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

markie and kb can you take me under your wings and teach me programming i tried but failed on my own i need a teacher/s. i also want to learn html

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

Yes, we can.

 

Hit me up on AIM or MSN, Kamikazebadger2 and [email protected] respectively. And just simply spam this forum for markie's assistance.

 

We will train you...for a price... well, not for a price, but still... money makes us smarter :D.

Edited by Kamikaze_Badger

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×