Dev C++

This is a discussion on Dev C++ within the C Programming forums, part of the General Programming Boards category; I downloaded DEV C++ because i had errors in my shell account compiling some programs but i see now that ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    99

    Dev C++

    I downloaded DEV C++ because i had errors in my shell account compiling some programs but i see now that i cannot work with DEV C++, i write a program but i cannor run it, it is say to me: program has not been created although i have clicked create and i try use a simple c program

    int main()
    {
    printf("sa");
    }

    any help? any tutor?

  2. #2
    Helper
    Join Date
    Jun 2004
    Posts
    255
    Quote Originally Posted by cogeek
    I downloaded DEV C++ because i had errors in my shell account compiling some programs but i see now that i cannot work with DEV C++, i write a program but i cannor run it, it is say to me: program has not been created although i have clicked create and i try use a simple c program
    Code:
    int main()
    {
    printf("sa");
    }
    any help? any tutor?
    Do you have created a project ?
    Your simple program is incomplete. You want
    Code:
    #include <stdio.h>
    
    int main(void)
    {
       printf("sa\n");
       return 0;
    }
    to have a correct and portable C program, and probably
    Code:
    #include <stdlib.h>
    #include <stdio.h>
    
    int main(void)
    {
       printf("sa\n");
    
       system ("pause");
       return 0;
    }
    if you want to see its effect on the console. When ready, press F9 to compile and execute.
    Emmanuel Delahaye

    "C is a sharp tool"

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    99
    I used the simple heloo program
    Code:
    #include <iostream>
    
    using namespace std;
    
    int main (int argc, char *argv[])
    {
      cout << "Hello World!" << endl;
      cout << "Press ENTER to continue..." << endl; 
      cin.get();
      return 0;
    }
    i click create and then run buit say no created!!!

  4. #4
    nbk
    nbk is offline
    meow nbk's Avatar
    Join Date
    Jul 2004
    Posts
    45
    I don't see a create button. Hit f9 to compile and run, as Emmanuel said. Make sure it's fully updated, too(4.9.9.9)

    Last edited by nbk; 07-31-2004 at 05:23 PM.

  5. #5
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    Dev C++ has its own forum. you should be able to get more specific answers HERE

  6. #6
    Registered User
    Join Date
    Jul 2004
    Posts
    99
    thanks i will try with f9 but nothing happens!

  7. #7
    Helper
    Join Date
    Jun 2004
    Posts
    255
    Quote Originally Posted by cogeek
    thanks i will try with f9 but nothing happens!
    It's probably because you have not created a project.

    From scratch

    - Launch Dev-C++
    - File / New / Project

    Select Console
    Select C project
    Tick Default language

    Replace 'Project1' by a name of yours

    Click OK

    Save the project (give a name)

    Now, you have a main.c like that:
    Code:
    #include <stdio.h>
    #include <stdlib.h>
    
    int main(int argc, char *argv[])
    {
      
      system("PAUSE");	
      return 0;
    }
    Press F9

    Save main.c (at the same place than the project file for a start)

    A DOS window must display:
    Code:
    Appuyez sur une touche pour continuer . . .
    More likely
    Code:
    Press a key to continue . . .
    on your machine.

    If this doesn't work, the installation is bad.
    Uninstall / reinstall.
    Emmanuel Delahaye

    "C is a sharp tool"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Whats better, C-Free or Dev C++??
    By i_can_do_this in forum Tech Board
    Replies: 10
    Last Post: 07-07-2006, 04:34 AM
  2. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 12:05 AM
  3. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 07:43 PM
  4. openGL programming - From MSVC++ to Dev C++
    By WDT in forum Game Programming
    Replies: 3
    Last Post: 03-08-2004, 07:47 PM
  5. DEV C++ Limitations?
    By Kirdra in forum Game Programming
    Replies: 3
    Last Post: 09-09-2002, 09:40 PM

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