这是对这个问题的跟进:
我修改了修改后的代码,我认为排序应该正常,但我觉得我没有正确使用指针.我的printf语句没有出现在控制台上,它们在注释中标出.
我是C的新手,所以这可能是显而易见的,但我只是在打印不打印时如何调试.
当前的编译器警告:
Q1.c: In function 'generate':
Q1.c:28: warning: implicit declaration of function 'time'
Q1.c:35: warning: implicit declaration of function 'dupe'
Q1.c: In function 'output':
Q1.c:61: warning: implicit declaration of function 'sort'
Q1.c: At top level:
Q1.c:68: warning: conflicting types for 'sort'
Q1.c:61: warning: previous implicit declaration of 'sort' was here
Q1.c: In function 'sort':
Q1.c:82: warning: implicit declaration of function 'deallocate'
Q1.c: At top level:
Q1.c:90: warning: conflicting types for 'deallocate'
Q1.c:82: warning: previous implicit declaration of …Run Code Online (Sandbox Code Playgroud) 这个问题是这个问题的衍生物:在Windows游戏项目上创建XNA AudioEngine
我正在使用同一本书,并且遇到与原始问题相同的问题.安德鲁提供的解决方案不起作用,因为不存在.
我无法AudioEngine在我的项目中使用class.我尝试使用以下语句添加:
using Microsoft.Xna.Framework.Xact;
Run Code Online (Sandbox Code Playgroud)
我不知道该怎么做.