Cout Bus Error

I do not contain my entire code, because of privacy reasons and personal requests. Problem on "cout << "unsignedssd intsdsd: << endl;" Bus Error. I changed random characters like debuges and unsignedssd so that the program would never think of them like debug and unsigned, but just for debugging the actual program later on, I found this.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
  void prime() {  //add debugesger
    cout << "starting\n";
    unsigned int prime[MAXp], number=5, pnums=2, i;
    bool debuges=false;
    cout << "unsignedssd intsdsd" << endl;
    bool isPrime=false;
    cout << "bool false" << endl;
    outfile.open("prime");
    outfile2.open("dprime");
    logfile.open("prime-log");
    cout << "log started" << endl;
    prime[0]=2;
    prime[1]=3;
    cout << "primes 0 and 1 good" << endl;
Topic archived. No new replies allowed.