M
Max
I am working on a calculator program. It is very simple (in
implementation, not use), but I am having trouble with getting input.
How can I take input and run it. I should note that I want all of the
math available in C++ to be available to the user (casting, shift,
etc.). Can anyone help me.
--
Here's the code:
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <cmath>
#define newl "\n"
using namespace std;
int main(int argc, char *argv[]);
string i = "";
int main(int argc, char *argv[]){
cout << "? ";
cin >> i;
cout << i << newl;
cout << "";
getchar();
return 0;
}
AdvTHANKSance!
implementation, not use), but I am having trouble with getting input.
How can I take input and run it. I should note that I want all of the
math available in C++ to be available to the user (casting, shift,
etc.). Can anyone help me.
--
Here's the code:
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <cmath>
#define newl "\n"
using namespace std;
int main(int argc, char *argv[]);
string i = "";
int main(int argc, char *argv[]){
cout << "? ";
cin >> i;
cout << i << newl;
cout << "";
getchar();
return 0;
}
AdvTHANKSance!