我收到了这个错误,我不知道为什么。该代码在错误之前初始化和分配其他变量,但始终在此代码的最后一行抛出此异常。
#include <stdlib.h>
#include <stdio.h>
#include <strings.h>
#include "math.h"
int main(int argc, const char * argv[])
{
// insert code here...
FILE *BetaDecay1;
FILE *BetaDecay2;
///////////////////////////////////////////////////////
int nProtons = 83; // Bismuth-210
int nNeutrons = 210 - nProtons;
int AtomicWeight_Bi210 = 210;
// BETA (—) DECAY
int nProtons_after = nProtons + 1;
int nNeutrons_after = nNeutrons - 1;
double massElectron = 9.10938E-31; // kg, kilograms
double r0 = 1.25E-15; // m, meters
double radius_Bi210 = r0 * ( AtomicWeight_Bi210^(1/3) );
double xPointOfBetaRelease = radius_Bi210;
double yPointOfBetaRelease = 0;
double zPointOfBetaRelease = 0;
double xBetaPos = xPointOfBetaRelease;
double yBetaPos = yPointOfBetaRelease;
double zBetaPos = zPointOfBetaRelease;
double Qvalue_MeV = 1.161292E6;
double Qvalue_Joules = Qvalue_MeV * 1.60217657E-13;
double magnitudeBetaVelocity;
double arrayOfEnergies1[180000];
double arrayOfEnergies2[324000000];
int iteration1 = 0;