Author Topic: C::B stuck on would you like to build this file menu?  (Read 4718 times)

Offline minimildew

  • Single posting newcomer
  • *
  • Posts: 7
C::B stuck on would you like to build this file menu?
« on: April 22, 2013, 09:48:56 am »
I'm trying to write a script, and when I attempt to build and run it, the usual message with the text "It seems that this file has not been built yet. Do you want to build it now?" with the options yes, no, and cancel. If I click yes, it simply prompts me again, and again, and again, without doing anything. If I click no, it returns a value of 1987310729. I feel like I'm making a really simply and stupid mistake, what am I doing wrong?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B stuck on would you like to build this file menu?
« Reply #1 on: April 22, 2013, 09:55:14 am »
What script? Scripts doesn't need compilation.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline minimildew

  • Single posting newcomer
  • *
  • Posts: 7
Re: C::B stuck on would you like to build this file menu?
« Reply #2 on: April 22, 2013, 09:56:14 am »
#include <iostream>

using namespace std;

int main ()
{
  int a=5;
  int b(2);
  int result;
  result = a - b;
  cout << result;
  cin.get();
  return 0;
}



(I'm still learning C++ xD)

Offline minimildew

  • Single posting newcomer
  • *
  • Posts: 7
Re: C::B stuck on would you like to build this file menu?
« Reply #3 on: April 22, 2013, 09:57:31 am »
I guess it's not really a script, more of a basic block of code.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B stuck on would you like to build this file menu?
« Reply #4 on: April 22, 2013, 09:58:21 am »
Oh, misleading question... this is not a script :)
Read a book and install a compiler (search the manual or the wiki for details)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]