#include<iostream>
using namespace std;
void output(int t,char s[])
{
s[0]='%';
if(t/16>9)
{
s[1]=char('A'+t/16-10);
//cout<<char('A'+t/16-10);
}
else
{
s[1]=char('0'+t/16);
//cout<<char('0'+t/16);
}
if(t%16>9)
{
s[2]=char('A'+t%16-10);
//cout<<char('A'+t%16-10)<<endl;
}
else
{
s[2]=char('0'+t%16);
//cout<<char('0'+t%16)<<endl;
}
s[3]='\0';
//cout<<s<<endl;
}
int main()
{
char str[256];
char s[100];
char ts[10];
while(1)
{
memset(str,0,sizeof(str));
cin>>s;
strcpy(str,"start http://www.baidu.com/s?wd=");
for(int i=0;i<strlen(s);i++)
{
output(int(s[i]&0xff),ts);
strcat(str,ts);
}
cout<<str<<endl;
system(str);
}
return 0;
}
- 1
- 2
- 3
- 4
前往页