How Do u See if a code works

This is a discussion on How Do u See if a code works within the C++ Programming forums, part of the General Programming Boards category; i think this should go here i was reading on this site that a good free complier is devc++ program ...

  1. #1
    Nos
    Nos is offline
    Registered User
    Join Date
    Aug 2005
    Posts
    15

    How Do u See if a code works

    i think this should go here i was reading on this site that a good free complier is devc++ program i downloaded it and put the code treenef put it in new- source file and put the code in and saved it how can i see it plz help
    Newbie

  2. #2
    Nos
    Nos is offline
    Registered User
    Join Date
    Aug 2005
    Posts
    15
    it keeps saying complile and i do then i go run it said complile plz help
    Newbie

  3. #3
    Super Moderater.
    Join Date
    Jan 2005
    Posts
    374
    First you need to compile and build it.

    Or simply press this button ringed here in red.
    Attached Images Attached Images  

  4. #4
    Nos
    Nos is offline
    Registered User
    Join Date
    Aug 2005
    Posts
    15
    i did that and it saids that i dont have a program in the bin file and it still keeps saying not complied
    here it is
    my ccp
    Attached Files Attached Files
    Newbie

  5. #5
    Super Moderater.
    Join Date
    Jan 2005
    Posts
    374
    could be a prob with where u put your dev folder. Or a problem with the actual download.

    Worst comes to worst, remove dev++ from your system and do a fresh download of the latest version, and just follow the instructions. Other than that I'm not to sure.

  6. #6
    Nos
    Nos is offline
    Registered User
    Join Date
    Aug 2005
    Posts
    15
    how do u run the program is it when u do a project using hello world put the code that u did and then click complile and then run if it is this is not working can u send me you cpp file plz thanmks 4 your help your cool
    Newbie

  7. #7
    Super Moderater.
    Join Date
    Jan 2005
    Posts
    374
    1.Open dev it should reside in my computer in your c:drive
    2. click file.
    3.click new
    4.click source file.
    5.paste your code in there
    6.click execute
    7.click compile and run
    8.Save as 'test' or whatever

    And that should be it.
    If that doesn't work then it could be a problem with your actual download. Rather than trying to find out which file may be corrupt it may be better just to do a fresh download.

    But like i said, it's hard to tell what the problem is.

  8. #8
    Nos
    Nos is offline
    Registered User
    Join Date
    Aug 2005
    Posts
    15
    i got a picture of what it said when i open a cpp file up
    Attached Images Attached Images  
    Newbie

  9. #9
    Super Moderater.
    Join Date
    Jan 2005
    Posts
    374
    Ok it would seem, the makefile is missing or corrupt as opposed to you not knowing how to compile and run a program.

    Your best bet would be to remove your existing dev++. Do this from control panel and then download a fresh version of dev++
    Try this and see what happens.

    When you download it, don't change the directory or anything. Just leave it as the default.

  10. #10
    Nos
    Nos is offline
    Registered User
    Join Date
    Aug 2005
    Posts
    15
    ok i am downloading a new one now
    Newbie

  11. #11
    Registered User
    Join Date
    Jul 2005
    Posts
    69
    Make sure you download the full setup that includes the MinGW compiler. That's somewhere around a 9MB download.

  12. #12
    Nos
    Nos is offline
    Registered User
    Join Date
    Aug 2005
    Posts
    15
    i downloaded the wrong one i downloaded the 2nd one so i downloaded now the first one and did what u said treenef and it work that u soo much 4 you help on getting the dev to work
    Newbie

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Explain this C code in english
    By soadlink in forum C Programming
    Replies: 16
    Last Post: 08-31-2006, 01:48 AM
  2. Replies: 1
    Last Post: 03-21-2006, 07:52 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  5. Seems like correct code, but results are not right...
    By OmniMirror in forum C Programming
    Replies: 4
    Last Post: 02-13-2003, 01:33 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21