回溯递归解决背包问题 int temp_c,i,total_weight,num,j=0,result[1000],total_value; scanf("%d%d",#,&temp;_c); while(num!=0||temp_c!=0) { total_value=0; total_weight=0; for(i=0;i