Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: My First C++ Program!

  1. #1
    Join Date
    May 2008
    Beans
    279

    My First C++ Program!

    Hi!
    I am currently doing Computer Engineering and my exams will end soon. After my exams I would like build my first software in C++
    I have never built any real application except for the noob stuff like "Pascal's triangle, patterns, fibonacci, classes, inheritance, etc"
    However I would like to build a real application which will have it own window, be a proper app.
    Plz give me few suggestions.
    Which program should I try?
    Where should I begin?
    How should I begin?
    Should I code for Windows or Linux?
    thanks!

  2. #2
    Join Date
    Oct 2008
    Location
    Newcastle upon Tyne, UK
    Beans
    364
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: My First C++ Program!

    Quote Originally Posted by iampriteshdesai View Post
    Should I code for Windows or Linux?
    Why not build something cross-platform?

  3. #3
    Join Date
    May 2008
    Beans
    279

    Re: My First C++ Program!

    It is my first program, I want to do something which I can do, I dont want to chew more than I can....

  4. #4
    Join Date
    Nov 2005
    Location
    Sendai, Japan
    Beans
    11,296
    Distro
    Kubuntu

    Re: My First C++ Program!

    Moved to Programming Talk.
    「明後日の夕方には帰ってるからね。」


  5. #5
    Join Date
    Nov 2007
    Location
    São Carlos, Brazil
    Beans
    136
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: My First C++ Program!

    Man, building cross-platform applications is easy, because all you need to do is write it in ANSI C++... Any program that follows the standard guidelines and uses the standard library only is cross platform because can be compiled in any.
    João Paulo Melo de Sampaio
    Computer Engineering Student @ UFSCar
    Site: http://www.jpmelos.com
    Twitter: http://www.twitter.com/jpmelos (@jpmelos)

  6. #6
    Join Date
    Jan 2005
    Location
    India
    Beans
    385
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: My First C++ Program!

    I see you're from India (which part, BTW?), so before I suggest *anything* I'd like to tell you this : if you're using Turbo C++, you're shooting yourlsef in the foot. Turbo C++ is an old, non standard, 16 bit DOS IDE that went out of fashion in 1995. It's a shame Indian universities still use it. I don't know what compiler you're using, but I included this bit of information for the sake of completeness. If you're using GCC, just ignore this paragraph.

    For cross platform development, get the GNU Compiler Collection (or GCC). In Ubuntu :
    Code:
    sudo apt-get install build-essential
    To compile C++ :
    Code:
    g++ <FILENAME>.cpp -o <OUTPUT_FILE_NAME>
    My exams also end tomorrow, and I'm learning Qt for cross platform development. It's the toolkit of choice for KDE development and is also heavily used by Skype, Google Earth and VLC, to name a few. Probably the best choice for cross platform GUI development using C++. Why don't you take a look?

    I'm going to spend the next 15 days building small applications. A few ideas I have are :
    1. A media player (made dead simple, thanks to Phonon)
    2. Sticky notes (I recently switched to a Mac and I really miss Tomboy)
    3. A simple text editor
    4. An RSS reader

    None of these are particularly difficult since Qt provides several libraries for networking, XML, databases etc.
    I am the turnip. No, not a turnip, the turnip. Visit my blog here.

    I need help with my Code Dojo. If you're interested, please drop me a line.

  7. #7
    Join Date
    Jul 2006
    Location
    Germany
    Beans
    1,805

    Re: My First C++ Program!

    Hi iampriteshdesai.

    Quote Originally Posted by iampriteshdesai View Post
    Which program should I try?
    Is there some app that you miss yourself as a user?
    ...or do you have a favorite app that you think can be improved in some way?
    ...or an app that would be just fun to clone?

    Where should I begin?
    How should I begin?
    Look for similar apps (http://freshmeat.net/) and fetch the source code. Try to understand how the program works. A small program would be easier. I think the big obstacle would be to understand how to use gtk+ or qt. Find a tutorial.

    Should I code for Windows or Linux?
    You're asking this on a Linux forum?
    ...

  8. #8
    Join Date
    May 2008
    Beans
    279

    Re: My First C++ Program!

    Hi, yeah I'm an Indian.
    You are right about TC++, our college uses it too, I'll use Code Bloks if that is required.
    I will write an tutorial to run TC++ in Ubuntu for other students like me on my blog.
    Is there any GCC variant which has GUI?
    Thanks!

  9. #9
    Join Date
    May 2008
    Beans
    279

    Re: My First C++ Program!

    Thanks for the site mail2297
    Do you have any experiance about it?
    It is too tough?
    Thanks!

  10. #10
    Join Date
    Jul 2008
    Beans
    1,706

    Re: My First C++ Program!

    Quote Originally Posted by iampriteshdesai View Post
    .
    Is there any GCC variant which has GUI?
    that would be an ide...which you dont need but if you insist then use the one that you like the best

Page 1 of 2 12 LastLast

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
  •