-
Borland Problem.
Well I have no idea on how to run code that use's iostream and the commands like "cout <<" "cin <<" since I have no idea if borland even supports it.
I tried starting just a normal cpp file but it wouldn't allow me to compile. I tried using a batch file but I guess that wouldn't work either. Then I just tried the basic Form project which I had a good idea it wouldn't work either. :( Anyone know what the problem might be?
-
I have several Borland C++ compilers. Which specific one are you using? If there's a basic Form project it certainly sounds like it'll support C++.
-
I have Borland C++ Builder 6.
EDIT: Heres what I was doing, I load up borland. Click New then Other then CPP File.
I type this in:
Code:
#include <iostream>
using namespace std;
int main()
{
int a, b, c;
cout << "Hello!\nPlease Enter Any Whole Number: ";
cin >> a;
cout << "Alright! You entered ";
cout << a;
cout << "\nAlright! Now Enter Another Whole Number: ";
cin >> b;
cout << "Alright! You entered ";
cout << b;
cout << "\nNow where going to add ";
cout << a;
cout << " and ";
cout << b;
cout << "! = ";
c = a + b;
cout << c;
cout << "\n";
cout << "\nPlease Press Enter To Exit!";
cin.get();
cin.get();
return 0;
}
-
-
It wont run, what happens is it will run for half a second and quit.