I want to change all my int
type in my program to support arbitrary position integer. I chose to use GMP
.
I am thinking about is it possible to do a #define
to replace all int
to mpz_class
.
I start by a small program
#include <iostream>
#define int long long int
using namespace std;
int main(){
// .... code
}
The compiler is already complaining about main
have to return an int
type.
Is it possible to add exception to #define
? or this is a really bad idea to do so?