当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 在数据库中,我将此字段设置为:文本---255字节 <html>代码: <asp:radiobuttonlist id="icon" runat="server" repeatcolumns="5" repeatdirection="horizontal" width="630px&......
 ·入门求助,从和入手    »显示摘要«
    摘要: 我懂java的基础知识,曾用其做过单机版的五子棋等小软件。现在想用asp开发一个网上书店(毕业论文)。可是我没有基本的网络知识(是零:))我想请教几个问题。 1. 什么php, j2ee, 他们和asp是什么关系呢? 2. 我是不是得先学一些基本的网络知识,象架构什么的? 3. 那就是该看什么书了? 推荐几本好书吧,各位高手! 非常感谢,希望大家多多交流,谢谢! ......


紧求助 谁有关于彩票的c源程序 万分感谢

哪位有源代码的话请告诉我啊     不一定要能运行     但是要有整体的框架和思路

NO.1   作者: zhusunme

/*   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *  
    *           This   is   a   program   for   lottery   :P                                                     *  
    *           I   wish   that   you   will   have   fun   from   it   ^_^                                   *  
    *           Author:     Slivermedol                                                                             *  
    *           Ver   0.1         2003/12/8                                                                             *  
    *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   */  
   
   
  #include   <stdlib.h>  
  #include   <stdio.h>  
  #include   <time.h>  
  #include   <dos.h>  
   
   
  void   lucky36()  
  {  
    int   lucky[7],   tag[37],   loop,   timedelay,   output_temp;  
    srand(time(NULL));                                                           /*   生成随机数的种子                                           */  
    for(loop=0;   loop<37;   loop++)                                       /*   建立一个标志数组,标志哪些数被取过了   */  
        tag[loop]=0;                                                                   /*   若相应数的标志位为0,则表示此数可取     */                
    for(loop=0;   loop<7;   loop++)  
    {  
      lucky[loop]=rand()%36+1;                                             /*   生成7个36选7的随机数                                   */  
      while(1)  
      {  
        if(tag[lucky[loop]]==0)  
            {  
              tag[lucky[loop]]=1;  
              break;  
            }  
        else  
            lucky[loop]=lucky[loop]*49%31+3;                       /*   若本次取到的随机数之前已被取走,则再生成一个   */  
      }  
    }  
      for(loop=0;   loop<37;   loop++)                                     /*   打印得到的结果   */  
      {  
          /*for(timedelay=0;   timedelay<8;   ++timedelay)  
          delay(1000000000);   */  
          if(tag[loop]==0)  
          ;  
          else                                                                                 /*   只有标志数组值中为1的,才能被打印     */  
          {  
            printf("%5d",   loop);  
          }  
      }  
      printf("\n");  
  }  
   
  main()  
  {  
    int   i,   tag=1;  
    char   choice;  
    system("cls");  
    printf("Lucky   Today!\n");  
    printf("Press   any   key   to   continue");  
    getch();  
    while(tag)                                                                        
    {  
      printf("\n");  
      printf("Now   Loading");                                               /*   在屏幕上显示一个用于骗人的Now   Loading....   */  
      for(i=0;   i<10;   ++i)  
      {  
        delay(1000000000);  
        printf(".");  
      }  
      printf("\n");  
      lucky36();  
      printf("This   is   your   lucky!!!\n");  
      printf("Do   you   want   to   have   another   try?   \"Y\"or\"N\":");  
      choice=getch();  
      switch(choice)                                                                 /*   选择的结果决定tag,若tag=1,则继续下一次的取数   */  
      {  
      case   y:  
      case   Y:  
              printf("%c\n",   choice);  
              break;  
      case   n:  
      case   N:  
              printf("%c\n",   choice);  
              printf("\n");  
              printf("Thank   you   for   using   it");  
              tag=0;                                                                         /*   若tag=0,则终止取数,退出程序   */  
              break;  
      default:  
              printf("%c\n",   choice);  
              printf("\n");  
              printf("Wrong   Choice!!   It   will   be   terminate!!!");  
              tag=0;                                                                         /*   若选择的结果不是Y或y或N或n,则终止程序   */  
              break;  
      }  
    }  
  }  
 


 ·怎样在两个applet之间传值    »显示摘要«
    摘要: 我现在正在做applet 程序,请问两个applet之间怎么传值,另外,用applet 做程序,服务器还用安装tomcat 或者weblogic还是用iis,多谢 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE