암호화 (1) 썸네일형 리스트형 [CPP|초급] mod 클래스 아마 숙제 출제자의 의도와는 맞지 않는 답일 듯. 나머지연산 클래스를 만들어서 해 봤다. 클래스 연습이겠다. 이게 메인 // ModClass.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "Mod.h" int main(int argc, char* argv[]) { CMod mod47(47); int a, b; printf("7^13 mod 47 = %d\n", mod47.Pow(7, 13)); printf("7^13 x 21 mod 47 = %d = a\n", mod47.Mul(mod47.Pow(7, 13), 21)); printf("14^13 mod 47 = %d\n", mod47.Pow.. 이전 1 다음