Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


WHY WON'T THIS BUILD!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
The Fish
Expert Cheater
Reputation: 3

Joined: 11 Aug 2008
Posts: 114
Location: Ohio bitch

PostPosted: Mon Feb 28, 2011 11:33 am    Post subject: WHY WON'T THIS BUILD! Reply with quote

Code:
// Guess The Number, by James Fisher

// Include the libraries
#include <iostream>
#include <ctime>

//Use the standard namespace
using namespace std;
 
void main ( )
{
   //Seed the random number
   srand (time (NULL) );

   //Declare the variables
   int Secret_Number = rand ( ) % 100 + 1;
   int Guess = 0;
 
   while (Guess != Secret_Number)
   {
      //This code repeats until the condition is no longer true
   
      // Get the user's guess
      cout << "Guess the secret number." << endl;
      cin >> Guess;

      //If the guess is too high, tell the user
      if (Guess > Secret_Number)
      {
         cout <<"Your guess is too high." << endl;
      }

      // If the guess is too low, tell the user
      if (Guess < Secret_Number)
      {
         cout <<"Your guess is too low." << endl;
      }

      //If the user guessed the right number, congratulate them
      if (Guess == Secret_Number)
      {
         cout <<"Good job! You guessed the secret number!" << endl;
      }
   }
   system ("PAUSE");
}


I've spent an hour trying to figure out what's wrong with it.
Could someone else try running it?

_________________
It was nice while it lasted.
Back to top
View user's profile Send private message
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Mon Feb 28, 2011 11:36 am    Post subject: Reply with quote

works perfectly bro

I am using visual dev cee plus plus borderlands

_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
The Fish
Expert Cheater
Reputation: 3

Joined: 11 Aug 2008
Posts: 114
Location: Ohio bitch

PostPosted: Mon Feb 28, 2011 11:36 am    Post subject: Reply with quote

What type of project did you use?
_________________
It was nice while it lasted.
Back to top
View user's profile Send private message
Aviar³
Grandmaster Cheater
Reputation: 50

Joined: 03 Jan 2008
Posts: 655
Location: Canada

PostPosted: Mon Feb 28, 2011 11:38 am    Post subject: Reply with quote

Haxory' wrote:
works perfectly bro

I am using visual dev cee plus plus borderlands


Youre using Borderlands?

_________________
This is the inception of deception, checking the depth of your perception.
Back to top
View user's profile Send private message
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Mon Feb 28, 2011 11:39 am    Post subject: Reply with quote

The Fish wrote:
What type of project did you use?


Quote:
visual dev cee plus plus borderlands


Sorry bro I was trolling ;-;
Wish I could help here.

_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
The Fish
Expert Cheater
Reputation: 3

Joined: 11 Aug 2008
Posts: 114
Location: Ohio bitch

PostPosted: Mon Feb 28, 2011 11:40 am    Post subject: Reply with quote

Haxory' wrote:
The Fish wrote:
What type of project did you use?


Quote:
visual dev cee plus plus borderlands


Sorry bro I was trolling ;-;
Wish I could help here.


_________________
It was nice while it lasted.
Back to top
View user's profile Send private message
Aviar³
Grandmaster Cheater
Reputation: 50

Joined: 03 Jan 2008
Posts: 655
Location: Canada

PostPosted: Mon Feb 28, 2011 11:41 am    Post subject: Reply with quote

"PAUSE"? Also, you could compile it and tell use the error the compiler gives you idiot.
_________________
This is the inception of deception, checking the depth of your perception.
Back to top
View user's profile Send private message
The Fish
Expert Cheater
Reputation: 3

Joined: 11 Aug 2008
Posts: 114
Location: Ohio bitch

PostPosted: Mon Feb 28, 2011 11:43 am    Post subject: Reply with quote

Got it working.
_________________
It was nice while it lasted.
Back to top
View user's profile Send private message
Aviar³
Grandmaster Cheater
Reputation: 50

Joined: 03 Jan 2008
Posts: 655
Location: Canada

PostPosted: Mon Feb 28, 2011 11:45 am    Post subject: Reply with quote

This is where you tell us what the problem is so others can learn.
_________________
This is the inception of deception, checking the depth of your perception.
Back to top
View user's profile Send private message
The Fish
Expert Cheater
Reputation: 3

Joined: 11 Aug 2008
Posts: 114
Location: Ohio bitch

PostPosted: Mon Feb 28, 2011 11:46 am    Post subject: Reply with quote

I wasn't using a win32 console application.
I was using a CLR console application.

_________________
It was nice while it lasted.
Back to top
View user's profile Send private message
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Mon Feb 28, 2011 11:47 am    Post subject: Reply with quote

Aviar³ wrote:
This is where you tell us what the problem is so others can learn.


Such an eager to learning, eager to spreading knowledge even person.
People learn by this mans example.

_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites