zoukankan      html  css  js  c++  java
  • CET成绩批量查询

    查询方法:

    curl http://cet.99sushe.com/getscore.html -e http://cet.99sushe.com/  -d id=准备证号 -d vc=novcversion http://cet.99sushe.com/getscore.html

    批量查询循环:

    #include<stdio.h>
    #include
    <stdlib.h>
    int main(){
        
    char buf[512];
        
    char buf1[512]="curl http://cet.99sushe.com/getscore.html -e http://cet.99sushe.com  -d id=35213*****";
      //*号为隐藏号
        
    char buf2[512]=" -d vc=novcversion http://cet.99sushe.com/getscore.html >>cet4.txt";
        
    char num[6]="00000";
        
    int i, j;
        
    for(j=1;j<200;j++){
            num[
    0]='0'+j/100;
            num[
    1]='0'+(j%100)/10;
            num[
    2]='0'+j%10;
            
    for(i=1;i<=30;i++){
                num[
    3]='0'+i/10;
                num[
    4]='0'+i%10;
                sprintf(buf,
    "%s%s%s\n",buf1,num,buf2);
                
    //printf("%s\n",num);
                system(buf);
            }
        }
    }
  • 相关阅读:
    每日总结
    每日总结
    每日总结
    每日总结
    每周总结
    每日总结
    10.20
    10.19
    10.18
    10.17
  • 原文地址:https://www.cnblogs.com/yequan/p/1677162.html
Copyright © 2011-2022 走看看