南开100题 100道 上机题 #include long fun(int n) { if (___1___) return (n*fun(___2___)); return ___3___; } main() { printf("10!=%ld\n", fun(10)); } #include #include /********found********/ IsPrime(int n); { int i, m; m = 1; /********found********/ for (
数独解题VC++源程序,原创的。 // ccc.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include #include int main(int argc, char* argv[]) { int i,j,k,p,t,x,y,m,n,pn,tmpi,tmpj,na; int ia,ja,tt=1,no=0
/* Note:Your choice is C IDE */ #include "stdio.h" #include "conio.h" #include "string.h" #include "math.h" #include "stdlib.h" int main() { int year,month,day; int days[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int sum=0; int i; printf("Please inp
#include #include #include #include #define STU struct student STU {long num; char name[20]; int sex; long classes; long birth; }; /***************************input****************************/ void input(int k,STU *st) {int n,i; FILE *fp; long b; S
国二c语言程序的改错题,例如 第1题 #include #include /********found********/ IsPrime(int n); { int i, m; m = 1; /********found********/ for (i=2; i<n; i++) if !(n%i) { m = 0; break; } return(m); } main() { int j, k; printf("\nplease enter an integer number bet