1.易语言源码 求大神 这一步看不懂了 在线等 谢谢
2.const void is 商城商城web server源码not a pointer-to-object type
易语言源码 求大神 这一步看不懂了 在线等 谢谢
elseif($paytypes=="Alipay"){
$url="alipay_".$paytypes."/alipayto.php?product=".$products."&total_fee=".$total_fee."&body=".$names."&out_trade_no=".$out_trade_nos;
Header("Location:$url");
exit;
}
const void is not a pointer-to-object type
#include<stdio.h>
#include<stdlib.h>
#include<string>
#include<iostream>
using namespace std;
typedef struct
{
unsigned long weight;
unsigned long long got;
int num;
}TAOTAO;
unsigned long m,n,i,j,apple[];
TAOTAO taotao[];
int comp(const void*a,const void*b)
{
return *(unsigned long*)b-*(unsigned long*)a;
}
int compweight(const void*a,const void*b)
{
return ((TAOTAO *)a)->weight-((TAOTAO *)a)->weight;
}
int compnum(const void*a,const void*b)
{
return ((TAOTAO *)a)->num-((TAOTAO *)b)->num;
}
int main()
{
cin>>n>>m;
for(;i<=n-1;i++)
cin>>apple[i];
for(;j<=m;j++)
{
taotao[j].num=j;
cin>>taotao[j].weight;
}
qsort(apple,n,sizeof(unsigned long),comp);
qsort(taotao,m,sizeof(TAOTAO),compweight);
for(i=0;i<=n-1;i++)
taotao[i%m].got+=apple[i];
qsort(taotao,m,sizeof(TAOTAO),compnum);
for(j=0;j<=m-1;j++)
cout<<taotao[j].got;
return 0;
}