我在anddev.org上发布了这个问题,而且你也可以在这里发布这个问题,因为这个网站有一个更大的用户组.
我会在这里缩短:如何在Android平台上播放.xm或.mod文件?是否有一个良好的Android兼容库用于播放?我好像找不到一个.我不搜索像扩展多媒体播放器这样的播放器,只是一个库.
我知道我可以将所有模块转换为mp3,但我不喜欢它.它会炸毁文件大小的应用程序.
问候.
我知道我不应该使用Dev-C++,但它在学校是强制性的,所以我对此无能为力.
主题是C/C++中的指针,并且在测量整数数组的长度时发生了错误.请参阅以下代码:
// POINTER
# include<iostream>
# include<string.h>
using namespace std;
int main(){
//neues Feld anlegen
int *a = new int[5];
a[0] = 12;
a[1] = 5;
a[2] = 43;
a[3] = -12;
a[4] = 100;
// Feld füllen
for(int i = 0; i<sizeof(a);i++){
cout<<a[i]<<"\n"<<endl;
}
cout<<sizeof(a);
system("pause");
return 0;
}
Run Code Online (Sandbox Code Playgroud)
sizeof()返回4而不是5 ...任何想法?
我有一个关于从App.configvia检索值的问题ConfigurationManager。
这是我的App.config。我计划将这些值外包给 aprinters.config并将这些值拉入 via printerOverrides configSource="printers.config" />。
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="printerOverrides">
<section name="host" type="System.Configuration.NameValueSectionHandler" />
</sectionGroup>
<section name="test" type="System.Configuration.NameValueSectionHandler"/>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<printerOverrides>
<host name="machine1">
<add key="defaultPrinter" value="Overridden" />
</host>
<host name="machine2">
<add key="defaultPrinter" value="Overridden" />
<add key="otherSetting" value="OtherSettingValue" />
</host>
</printerOverrides>
<test>
<add key="key1" value="value1" />
</test>
</configuration>
Run Code Online (Sandbox Code Playgroud)
我能够从<test>-Section获取值,而此代码段没有任何问题:
var test = ConfigurationManager.GetSection("test") as NameValueCollection;
Debug.WriteLine(test["key1"]);
Run Code Online (Sandbox Code Playgroud)
但是我无法通过 SectionGroup 元素中的部分检索数据
var …Run Code Online (Sandbox Code Playgroud)