News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

C::B stuck on would you like to build this file menu?

Started by minimildew, April 22, 2013, 09:48:56 AM

Previous topic - Next topic

minimildew

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?

oBFusCATed

(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!]

minimildew

#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)

minimildew

I guess it's not really a script, more of a basic block of code.

oBFusCATed

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!]