标程
#include<stdio.h>
#include<windows.h>
#include<conio.h>
#include<iostream>
#ifdef URLDownloadToFile
#undef URLDownloadToFile
#endif
using namespace std;
typedef int(__stdcall *UDF)(LPVOID,LPCSTR,LPCSTR,DWORD,LPVOID);
UDF URLDownloadToFile = (UDF)GetProcAddress(LoadLibrary("urlmon.dll"),"URLDownloadToFileA");
char* strfind(char *text,char *temp)
{
int i = -1,j,l = strlen(temp);
while(text[++i])
{
for(j=0;j<l;j++)if(text[i+j] == 0 || text[i+j] != temp[j])break;
if(j == l)return text+i+l;
}
return 0;
}
void UTF8ToANSI(char *str)
{
int len = MultiByteToWideChar(CP_UTF8,0,str,-1,0,0);
WCHAR *wsz = new WCHAR[len+1];
len = MultiByteToWideChar(CP_UTF8,0,str,-1,wsz,len);
wsz[len