Search found 3 matches

by gaugui
Wed Jul 23, 2003 11:48 am
Forum: Volume 3 (300-399)
Topic: 374 - Big Mod
Replies: 79
Views: 11791

Runtime Error (SIGSEGV) 374

mycode but Runtime Error (SIGSEGV)???/ why (a * b) mod c = ((a mod c) * (b mod c)) mod c BP = BP / 2 * BP / 2 BP = BP - 1 * B [cpp] #include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> using namespace std; long big_mod( long b, long p, long m) { long c; if(p==1){ return b%m; }el...
by gaugui
Wed Jul 23, 2003 8:05 am
Forum: Volume 7 (700-799)
Topic: 755 - 487--3279
Replies: 115
Views: 28618

why cpp with class usually be judged Compile Error ?

the fallowing is the q755`s code ,it has been Compiled by miniGW & vc++ , & worked well local test .why it can be judged Compile Error ??? ???????????????????????????? #include <iostream> #include <string> #include <cstdlib> #include <list> #include <algorithm> using namespace std; class TelNumber {...
by gaugui
Wed Jul 23, 2003 8:03 am
Forum: Volume 7 (700-799)
Topic: 755 - 487--3279
Replies: 115
Views: 28618

why cpp with class usually be judged Compile Error ?

the fallowing is the q755`s code ,it has been Compiled by miniGW & vc++ , & worked well local test .why it can be judged Compile Error ??? ???????????????????????????? #include <iostream> #include <string> #include <cstdlib> #include <list> #include <algorithm> using namespace std; class TelNumber {...

Go to advanced search