标题:编译的时候第一行显示error:expected constructor, destructor, or type c ...
取消只看楼主
regor
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2020-9-29
结帖率:0
已结贴  问题点数:10 回复次数:0 
编译的时候第一行显示error:expected constructor, destructor, or type conversion before '('
程序代码:
Algo(A, start, end){
if start = end 
L.insert((start, end, A[start]))
return L
else
mid = floor( (start + end)/2)
L.append(Algo(A, start, mid))
L.append(Algo(A, mid+1, end))
L.append(BetSlices(A, start, mid, end))
return L
BetSlices(A, start, mid, end)
li = mid; t = A[mid] ;
for i = mid downto start
if A[i] != t
li = i +1
break
ri = mid ;
for i = mid to end
if A[i] != t
ri = i -1
break
L.insert((li,ri,t))
return L
搜索更多相关主题的帖子: if end start return mid 
2020-10-20 10:09



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-503545-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.125543 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved