Ok I have Visual C++ 2008 and I made a new project and made an app. It's a basic window with a menu, icon, etc. Now I have the following program for instance:
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
char answer;
float c, e, x, Derivative;
cout << "\nWhat is the coefficient, exponent, and x; "<< endl << "Seperate each with a space.\t";
cin >> c >> e >> x;
Derivative = ((c * e) * (pow((x) , (e - 1))));
cout << "\n Your derivative is: " << Derivative << "." << endl << "Thanks for using our program!";
cout << "\nPress <0> to exit the program:\t";
cin >> answer;
if (answer == '0')
{
exit(1);
}
else
{
if (answer != '0')
{
main();
}
}
return 0;
}
What I want to do is have this run within the window I already have made. SO it will run like it does in command prompt, but in the window: get it? Thanks in advance.