Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
Qsort()
的声明,以便第二个和第三个参数为unsigned long
而不是size_t
。Qsort()
的定义,以便第二个和第三个参数为unsigned long
而不是unsigned
。附带说明一下,
Qsort()
的声明和定义在签名中(必然)不匹配,这是不正确的。Qsort()
so the second and third parameters areunsigned long
rather thansize_t
.Qsort()
so the second and third parameters areunsigned long
rather thanunsigned
.As a side note, the declaration and the definition of
Qsort()
didn't (necessarily) match in signature, and that's incorrect.在 qsort.cpp 中将函数减速更改为:
因此,我们只是将
long
添加到num
和width
变量。您还必须解决一些简单的问题,例如
#include
->#include
In qsort.cpp change the function decleration to:
So we just added
long
tonum
andwidth
variables.You will also have to fix simple problems like
#include <strstream.h>
->#include <strsream>