..
benf吧
全部回复
仅看楼主
level 6
benf 楼主
#include <iostream>
using namespace std;
void insertSort(int data[], int &n, int a)
{
     int i;
     for (i=0;i<n;i++)
         if (a<data[i]);break;
}
void print(int data[],int n)
{
}
void main()
{
     int data[10],int nNum=0,int a;
     for (int i=0;i<9;i++){
         cout<<"enter the "<<i<<"th number of array"<<endl;
         cin>>a;
         insertSort(data,nNum,a);
     }
     print (data,nNum)
}
2011年04月11日 01点04分 1
level 6
benf 楼主
具体方法如下:   
   1、下载netcat工具nc.exe   
   2、编写vote.bat   
   @ECHO    OFF     
   SET    /A    counter=0   
   :top     
   SET    /a    counter=%counter% 1     
   ECHO    已经投了    %counter%    票     
    
   nc    -r    -i    1    dvote.cctv.com    80    <vote.txt     
    
   if    %counter%    LSS    10000000000000000    GOTO    :top     
   ECHO    Run    complete   
    
    
   3、编写vote.txt文件   
    
   POST    /vote/vote.vo    HTTP/1.1   
   Accept:    image/gif,    image/x-xbitmap,    image/jpeg,    image/pjpeg,    application/x-shockwave-flash,    application/vnd.ms-excel,    application/vnd.ms-powerpoint,    application/msword,    */*   
   Referer:   http://www.cctv.com/special/C16021/12/   
   Accept-Language:    zh-cn   
   Content-Type:    application/x-www-form-urlencoded   
   Accept-Encoding:    gzip,    deflate   
   User-Agent:    Mozilla/4.0    (compatible;    MSIE    6.0;    Windows    NT    5.1;    SV1;    .NET    CLR    1.1.4322)   
   Host:    dvote.cctv.com   
   Content-Length:    186   
   Connection:    Keep-Alive   
   Cache-Control:    no-cache   
    
   srvyid=6511&sigmult1=1&ansnum1=60&quesnum=1&clicktype=1&cdn=cctv&starttime=20060703105555&endtime=20060826000000&checkout=0&ans1_48=on&ans1_48=on&ans1_48=on&ans1_48=on&ans1_48=on&ans1_48=on

2011年05月03日 11点05分 2
level 6
benf 楼主
oranize
http://www.duote.com/tech/5/12318.html
<html> <head> <script> function clear() { Source=document.body.firstChild.data; document.open(); document.close(); document.body.innerHTML=Source; } </script> </head><body onload=clear()> Test </body> </html>

2011年07月08日 00点07分 3
1