Menu

Need help with compiler

ksparkstx
2007-08-19
2012-09-26
  • ksparkstx

    ksparkstx - 2007-08-19

    Have the newest version of Bloodshed, when I wrote my first C++ app, the compiler gives the following error:

    "Access violation at address 00403CA0 in module DevCpp.exe. Read of address 371383AE"

    Any ideas?

     
    • ksparkstx

      ksparkstx - 2007-08-19

      Here is my code:

      include <stdio.h>

      include <iostream.h>

      int main()
      {
      int one=0;
      int two=0;
      int placeholder=0;
      cout << "Please enter an integer";
      cout << "Please enter one more integer";
      cin >> one >> two;
      placeholder=one+two;
      cout << placeholder;
      placeholder=one-two;
      cout << placeholder;
      placeholder=one*two;
      cout << placeholder;
      placeholder=one/two;
      cout << placeholder;

      }

       
      • Osito

        Osito - 2007-08-19

        Shouldn't you use:

        include <cstdlib>

        include <iostream>

        for C++? I really only use C, so I'm not sure. I compiled your program fine. Have you successfully compiled other programs?

         
    • Anonymous

      Anonymous - 2007-08-20

      "newest version"!? What version number would that be? It is displayed on the applications title bar, and in the about box.

      Regardless of your code (and its use of deprecated headers), the crash appears to be in the IDE rather than your application. It is important therefore that you explain exactly when it crashes, and the steps you take to reproduce the crash. Also you did not mention the OS version.

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.