我对C++很新,我在阅读错误时遇到了问题我能够消除其中的大多数错误但是我已经找到了一些,我请求帮助.
这是程序
#include <string>
#include <iostream>
using namespace std;
int main(){
int *bN = new int[9];
string bankNum;
int *number = new int[9];
int total, remain;
int *multi = new int{7,3,9,7,3,9,7,3};
cout<<"Please enter the bank number located at the bottom of the check"<<endl;
cin>>bankNum;
for(int i = 0; i < 8; i++){
bN[i]= (bankNum[i]-48);
}
for(int i = 0; i < 8;i++){
cout<<bN[i];
}
cout<<endl;
for(int i = 0; i < 8;i++){
cout<<multi[i];
}
cout<<endl;
for(int i = 0; i …Run Code Online (Sandbox Code Playgroud) 我已经启动了一个Intent并要求它进入主要活动,当它尝试应用程序崩溃时.
以下是尝试转到主要活动的代码.
Intent i = new Intent(
".MAIN_ACTIVITY");
startActivity(i);
Run Code Online (Sandbox Code Playgroud)
这是Main_Activity的XML清单.
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN_ACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Run Code Online (Sandbox Code Playgroud)
我对此仍然很陌生,所以任何帮助和/或建议都很有价值.