摘要: #include // cout #include // find_end #include // vector using namespace std; bool myfunction (int i, int j) { return (i==j); } int main () { int myints[] = {1,2,3,4,5,1,2,3,4... 阅读全文
posted @ 2018-10-20 23:55 anobscureretreat 阅读(485) 评论(0) 推荐(0) 编辑
摘要: #include /* printf */ #include /* assert */ void print_number(int* myInt) { assert (myInt!=NULL); printf ("%d\n",*myInt); } int main () { int a=10; int * b = NULL; int * c = ... 阅读全文
posted @ 2018-10-20 22:19 anobscureretreat 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #include double factorial(unsigned int i) { if(i <= 1) { return 1; } return i * factorial(i - 1); } int main() { int i = 15; printf("%d 的阶乘为 %f\n", i, factorial(i)); ... 阅读全文
posted @ 2018-10-20 17:48 anobscureretreat 阅读(149) 评论(0) 推荐(0) 编辑