64,648
社区成员
发帖
与我相关
我的任务
分享
class calculate()
{
calculate();
~calculate();
unsigned get_count(unsigned value);
};
#include "stdafx.h"
#include<string>
#include<iostream>
using namespace std;
bool getReulst(const char* url, std::sting& host, unsigned &port)
{
int k=0;
vild(url);
cout<<a[0]<<endl;
int i=0;
while(url[i]!='/')
{i++;}
i+=2;
while(((url[i])!='\0')&&(url[i]!='/'))
{
if(url[i]!=':'&&k==0)
{
host=s+url[i];
else
{k=1;
port+=url[i];
}
}
if(port.empty())
sport="80";
return true;
}