RSA公钥密码系统的Java实现 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package rsa; import java.math.BigInteger; import java.util.Scanner; import java.util.Random; /** * * @author Administrator */ public cl
这是我的作业。。。。希望对各位有#include #include #include #define SIZE (xsize*ysize+1) //一系列全局变量便于传递参数 int *location,*way, xsize,ysize,firstx,firsty, noworder; int getnum (void);//取数函数,取数成功返回1,否则返回-1 int init (void); //初始化函数,申请数组空间,以及初始化数组, //申请成功返回1,否则返回-1 int
部分代码: int main(int argc, char *argv[]) { int year,month,leap_year,i,j,days_this_year,week_days; long days; int months[12]={31,28,31,30,31,30,31,31,30,31,30,31}; leap_year=0; days_this_year=0; days=0; week_days=0; printf("Please input year and month: