term does not evaluate to a function taking 2 arguments
Hi, this is the first c++ program I write on my own. It should be about the RSA algorithm for encrypting data.
The source code is attached. It gives me this error when I try to compile:
error C2064: term does not evaluate to a function taking 2 arguments
The error started when I started to include the euclidic algorithm, nevertheless the euclidic algorithm alone works to compile (and also gives me the gct).
I'm very new to programming (just started three days ago), so please don't blame me if the error is very stupid.
Re: term does not evaluate to a function taking 2 arguments
It looks like you declared a local variable named ggt, and thus the name of the variable hides the name of the function. This is one reason why it is good to follow the "declare variables near first use" rule of thumb.
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar
Re: term does not evaluate to a function taking 2 arguments
In the first line of main, you declare a bunch of ints. One of them is called ggt, which is the same name as your function ggt. You need to change one of them.
I'd get out of the habit of using single character and meaningless variable names ASAP.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.