Current time: 02-08-2012, 03:56 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The Monkey Theory
02-17-2010, 05:53 PM
Post: #11
RE: The Monkey Theory
(02-17-2010 05:08 PM)zzbomb Wrote:  Grr. Gimme 5 min. ill program it legitly.
And done. Check it out. After a minute. the count is up to 400,000 and going......

2.5Million.
Code:
#include <iostream>
using namespace std;

int main()
{
    int i;
    long int count = 0;
    string banana ="";
    srand((unsigned int)time(NULL));
    while ( banana != "BANANA" )
    {
          for ( i = 0; i < 6; i++ )
          {
              
              int n = rand() % 26;
              char c = (char)(n+65);
              banana += c;
          }
          cout << banana << " ";
          
          if ( banana != "BANANA" )
          {
               banana = "";
               count++;
          }
          cout << count << endl;

    }
    
    system("pause");
    return 0;
}

ok im gunna stop this now it is at 6million lol.

Real experimenters would let it keep running. I'm already at 715,000,000 Tongue

Nelson - Retired TheHostingTool Developer
[Image: sleek.png]
Find all posts by this user
Quote this message in a reply
02-17-2010, 08:53 PM (This post was last modified: 02-17-2010 08:53 PM by Kevin.)
Post: #12
RE: The Monkey Theory
Real experimenters would add garbage collection. Big Grin

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
Quote this message in a reply
02-17-2010, 09:23 PM
Post: #13
RE: The Monkey Theory
(02-17-2010 08:53 PM)Kevin Wrote:  Real experimenters would add garbage collection. Big Grin

Rolleyes

Nelson - Retired TheHostingTool Developer
[Image: sleek.png]
Find all posts by this user
Quote this message in a reply
02-17-2010, 11:26 PM
Post: #14
RE: The Monkey Theory
(02-17-2010 09:23 PM)Nelson Wrote:  
(02-17-2010 08:53 PM)Kevin Wrote:  Real experimenters would add garbage collection. Big Grin

Rolleyes

That was mainly directed @zzbomb and his C++, but ok. Tongue

PS: C# ftw

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
Quote this message in a reply
02-18-2010, 12:44 AM
Post: #15
RE: The Monkey Theory
(02-17-2010 11:26 PM)Kevin Wrote:  
(02-17-2010 09:23 PM)Nelson Wrote:  
(02-17-2010 08:53 PM)Kevin Wrote:  Real experimenters would add garbage collection. Big Grin

Rolleyes

That was mainly directed @zzbomb and his C++, but ok. Tongue
I know, Kevin Tongue
Quote:PS: C# ftw
Big Grin

Nelson - Retired TheHostingTool Developer
[Image: sleek.png]
Find all posts by this user
Quote this message in a reply
02-18-2010, 09:37 AM
Post: #16
RE: The Monkey Theory
Grr. Im just learning c++ so whatever.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-13-2011, 04:00 PM
Post: #17
RE: The Monkey Theory
mhmm bullies i dont know if i wanna stat :o Lol only jokin Tongue
Find all posts by this user
Quote this message in a reply
04-20-2011, 02:18 AM
Post: #18
RE: The Monkey Theory
I had some problem with 350 MB RAM usage and unlimited execution time, I really need help for this. If any one can suggest me something to this issue.[/align]

dean graziosi
Find all posts by this user
Quote this message in a reply
04-23-2011, 05:56 PM
Post: #19
RE: The Monkey Theory
if you want ill leave it going all night if u find a new word let it go upto like 1 billion monkeys im about to buy a new desktop with 8gb ram and 12ghz cpu Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)