Your Ad Here Your Ad Here
Results 1 to 8 of 8

Thread: Borland C++ Error Message

  1. #1
    masta.z's Avatar Canadian Scot
    Join Date
    Dec 2002
    Location
    Ottawa, Canada
    Posts
    273
    hey, does anyone know wtf causes this error? cos our school computers display it everytime you try to enter a decimal number in "double" variables but my home computer has no problems,

    http://www.geocities.com/stany_z/error.bmp

    any help would be appreciated

    Masta.z! :music1:


    edit: copy and paste the link and it should work

    I'm gonna buy a gun and start a war // if you can tell me something worth fighting for

  2. Software & Hardware   -   #2
    One might comment only if they could see it

    Rule 101: Geocities doesnt allow hotlinking.
    <span style='color:black'> I am a part of all that I have met - Lord Tennyson</span>
    <span style='color:blue'>Try not to let your mind wander...it is too small and fragile to be out by itself</span>

  3. Software & Hardware   -   #3
    still doesn&#39;t work...
    At a guess it may not work unless you have it as a picture on a webpage hosted at geocities

  4. Software & Hardware   -   #4
    4play's Avatar knob jockey
    Join Date
    Jan 2003
    Location
    London
    Age
    35
    Posts
    5,530
    to tell you the truth i have completely forgotten what kinda data you can store in a double variable but are you sure it can take decimals.

    try using real instead and see if it stops the errors.

  5. Software & Hardware   -   #5
    masta.z's Avatar Canadian Scot
    Join Date
    Dec 2002
    Location
    Ottawa, Canada
    Posts
    273
    i changed the picture to a link cos geocities i one of the few places i can access when i&#39;m at school and it worked for me but for some reason not now...
    the error message it gives is "floating point: overflow"

    also double is the correct declaration because it works perfectly at home just not at school for some obscure reason

    Masta.z&#33; :music1:

    edit: thought i&#39;d mention it&#39;s using borland C++ v4.5

    I&#39;m gonna buy a gun and start a war // if you can tell me something worth fighting for

  6. Software & Hardware   -   #6
    4play's Avatar knob jockey
    Join Date
    Jan 2003
    Location
    London
    Age
    35
    Posts
    5,530
    why not get try using the 5.5 version of borlands compiler they give it away free from there site.

    what are you trying to store in there and can we see some code.

  7. Software & Hardware   -   #7
    h1
    Guest
    It&#39;s just what it sounds like, you smashed the stack.

  8. Software & Hardware   -   #8
    masta.z's Avatar Canadian Scot
    Join Date
    Dec 2002
    Location
    Ottawa, Canada
    Posts
    273
    Originally posted by 4play@29 March 2004 - 19:52
    why not get try using the 5.5 version of borlands compiler they give it away free from there site.

    what are you trying to store in there and can we see some code.
    it&#39;s up to the shitty school to upgrade to a better version but they won&#39;t... believe me i&#39;ve tried to get them to,


    variable declaration
    Code:
    double trans_amount; &nbsp;// value of transaction
    input statement
    Code:
    cout&#60;&#60; &#34;Please enter the positive value of the transaction&#58; &nbsp;&#34;;
    cin&#62;&#62; trans_amount;
    and when you input any decimal number (2.2, 4.7, 6.66, etc...) it gives the error message http://www.geocities.com/stany_z/error.bmp (copy and paste, don&#39;t click on the link)

    it works perfectly on my home computer, but as soon as i try to run it on the school&#39;s computers there&#39;s the error

    I&#39;m gonna buy a gun and start a war // if you can tell me something worth fighting for

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •