Dev-C++ project opptions

This is a discussion on Dev-C++ project opptions within the C++ Programming forums, part of the General Programming Boards category; Whe i open a new project for dev-c++, i can open a windows app, consol app, DLL, static liberary, or ...

  1. #1
    I hate Sinus infections
    Join Date
    Nov 2002
    Posts
    181

    Question Dev-C++ project opptions

    Whe i open a new project for dev-c++, i can open a windows app, consol app, DLL, static liberary, or empty project. What is the difference?

    Also, how can i keep a consol app open? I tried the

    cin.get();

    that is just befor the return 0, but it doesnt work at all.

  2. #2
    I hate Sinus infections
    Join Date
    Nov 2002
    Posts
    181

    Update

    Actually, if i choose a windows app, the above code works, but if i choos a consol app, it doesnt.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    30
    If there is something in the input stream when you use cin.get();(like an enter from a cin) you have to put two consecutive cin.get();'s. Works for me anyways.

  4. #4
    Registered User
    Join Date
    Jun 2002
    Posts
    230
    Here is how to keep it open and i do use Dev c++.

    Code:
    #include <iostream>
    #include <conio.h> //header for getch() keeps console open
    using namespace std;
    
    int main ()
    
    {
     cout <<"HEllo";
    
    getch();// closes console when user presses any key.
    return0:
    }
    hope it works
    C++ Rules!!!!
    ------------
    Microsoft Visual Studio .NET Enterprise

  5. #5
    Registered User
    Join Date
    Nov 2002
    Posts
    30
    getch(); is not a standard function.

  6. #6
    Registered User
    Join Date
    Jun 2002
    Posts
    230
    Does that really matter? He just wants to keep the console from closing!

    ?!?

  7. #7
    Registered User
    Join Date
    Nov 2002
    Posts
    30
    I never said that it doesn't work or that he shouldn't use it. Just letting him know.

  8. #8
    I hate Sinus infections
    Join Date
    Nov 2002
    Posts
    181
    noted

    All i want is to get it to work.

  9. #9
    I hate Sinus infections
    Join Date
    Nov 2002
    Posts
    181
    Well, anyone know what the difference between a windows app, consol app, DLL, static liberary, or empty project?

  10. #10
    Registered User
    Join Date
    Jun 2002
    Posts
    230
    the windows app is for graphical applications. They look like the programs you run on your computer. The console app runs in dos and doesnt require and graphics or anything. Empty project lets you add different types of files to your "project" i recommened if you are new just use empty project and add a source file. Just type all your work in there.
    C++ Rules!!!!
    ------------
    Microsoft Visual Studio .NET Enterprise

  11. #11
    I hate Sinus infections
    Join Date
    Nov 2002
    Posts
    181
    So, just start simple, and learn the basics first.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Displaying a Struct
    By rockstarpirate in forum C++ Programming
    Replies: 16
    Last Post: 05-05-2008, 10:05 AM
  2. dev c++ project option
    By rodrigorules in forum C++ Programming
    Replies: 2
    Last Post: 06-07-2006, 09:32 PM
  3. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 08:41 PM
  4. Dev C++ takes 3 mins to reload a project
    By phil in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 09-01-2005, 03:32 PM

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