2011-07-29から1日間の記事一覧

階乗 有理数 判定 関数 CPP C++ C言語

cpp

from google test sample #ifndef GTEST_SAMPLES_SAMPLE1_H_ #define GTEST_SAMPLES_SAMPLE1_H_ // Returns n! (the factorial of n). For negative n, n! is defined to be 1. int Factorial(int n); // Returns true iff n is a prime number. bool IsPrim…