+ Reply to Thread
Results 1 to 9 of 9

Thread: Starting with C++

  1. #1
    marshian's Avatar
    marshian is offline x10 Elder marshian is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Belgium
    Posts
    526

    Starting with C++

    For some alt reason or another (don't ask why...) I'm currently getting interested in learning C++...
    But I've got a couple of questions.
    1. Do you need to compile C++ code?
    2. If so, where can I find a good compiler?
    3. What is a good IDE for C++? I currently use NetBeans (for Java) and I know it's possible to extend it to work with C++ as well, but I would like to know the advice of somebody.

    Thanks,
    Marshian
    Real programmers don't document their code - if it was hard to write, it should be hard to understand.

  2. #2
    DeadBattery's Avatar
    DeadBattery is offline Community Support Team DeadBattery is a name known to allDeadBattery is a name known to all
    Join Date
    Mar 2008
    Location
    localhost
    Posts
    4,019

    Re: Starting with C++

    Yes, you need to compile C++.
    First, may I ask what operating system you are using? (Mac, Windows, Linux)
    If you are using Mac, use Xcode.

    If you are using Windows, you can use Visual C++. Never tried it but it is probably fine.

    If you are using Linux, open terminal and type "g++". Then type in whatever it tells you to in order to install it. Now you can edit with a Text Editor and save as .cpp and open terminal up and do "g++ filename.cpp". (Make sure you are in the correct directory) Then type "./a.out"


  3. #3
    konekt's Avatar
    konekt is offline x10 Sophmore konekt is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    100

    Re: Starting with C++

    Yes, it has to be compiled. A good IDE and no-dos-prompt-compiler you can use is Dev-C++ from Bloodshed. I personally user Visual C++ and some of Microsoft's other packages that I get free through university. You can also use Visual C++ express which is free and easier to integrate with outside libraries such as QT.
    Last edited by konekt; 06-25-2008 at 06:00 PM.

  4. #4
    DeadBattery's Avatar
    DeadBattery is offline Community Support Team DeadBattery is a name known to allDeadBattery is a name known to all
    Join Date
    Mar 2008
    Location
    localhost
    Posts
    4,019

    Re: Starting with C++

    Oh, I didn't even know Visual C++ wasn't free.
    For a test, try this sample program

    #include <iostream>
    using namespace std;
    int main(){
    cout << "Hello World!";
    }


  5. #5
    VPmase's Avatar
    VPmase is offline x10 Elder VPmase is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    Dixon, IL, USA
    Posts
    914

    Re: Starting with C++

    Moving this to off topic since it has nothing to do with websites. As for C++ I suggest you check out Newgrounds: http://www.newgrounds.com/bbs/topic/434835/3

  6. #6
    marshian's Avatar
    marshian is offline x10 Elder marshian is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Belgium
    Posts
    526

    Re: Starting with C++

    Yes, I'm using Windows, I'll try Visual Studio and that sample program.
    Real programmers don't document their code - if it was hard to write, it should be hard to understand.

  7. #7
    shaunak's Avatar
    shaunak is offline x10 Lieutenant shaunak is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    3rd rock from the sun
    Posts
    317

    Re: Starting with C++

    Alternatively you may try DeV C++ as an IDE. Its less complicated.
    Cheers,
    Shaunak

  8. #8
    marshian's Avatar
    marshian is offline x10 Elder marshian is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Belgium
    Posts
    526

    Re: Starting with C++

    Quote Originally Posted by shaunak View Post
    Alternatively you may try DeV C++ as an IDE. Its less complicated.
    I'm currently already installing Visual C++ (which has a download of 87 MB, and in installation of 1.4 GB :o)
    In case I don't like it (possible with all Microsoft products), I'll check that one out.

    EDIT:
    Visual C++ seems to be working, it'll take me a lot of time to get used to it, and to learn C++, but that example DeadBattery gave me works =D
    Last edited by marshian; 06-26-2008 at 02:20 AM.
    Real programmers don't document their code - if it was hard to write, it should be hard to understand.

  9. #9
    Pi606's Avatar
    Pi606 is offline x10Hosting Member Pi606 is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Stoli
    Posts
    85

    Re: Starting with C++

    Just to let you know...Visual C++ is different from C++. Visual C++ is managed, and runs on .NET.

    Unmanaged C++ has no dependencies on .NET and is used by Dev-C++
    However, i think that there is a way to write unmanaged C++ code in Visual C++

    Correct me if i'm wrong, though.;)



+ Reply to Thread

Similar Threads

  1. Removing Unnecessary Programs from starting up with boot.
    By Blazer9131 in forum Computers & Technology
    Replies: 8
    Last Post: 10-27-2007, 01:36 PM
  2. Ok im starting to post.
    By pvhsband in forum Introductions
    Replies: 3
    Last Post: 09-10-2007, 12:30 AM
  3. Kick starting a forum
    By slaiyer in forum Scripts & 3rd Party Apps
    Replies: 6
    Last Post: 08-06-2007, 05:10 PM
  4. New Website Starting up
    By Arucard98 in forum Scripts & 3rd Party Apps
    Replies: 7
    Last Post: 02-16-2007, 12:32 PM
  5. Starting my site...
    By mpeak-design in forum Free Hosting
    Replies: 10
    Last Post: 05-11-2005, 11:10 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers