Questions about what can be done in c++

This is a discussion on Questions about what can be done in c++ within the C++ Programming forums, part of the General Programming Boards category; I have just started to learn c++ but I am wondering what kind of applications can be built with c ...

  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    18

    Questions about what can be done in c++

    I have just started to learn c++ but I am wondering what kind of applications can be built with c and c++

    For example I heard windows was made by millions of lines of c, so can I assume that products like PowerPoint and excel, adobe products ect have been wrote in c or c++?
    Is there a simple code I can compile that will put out a simple gui application?

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,655
    >> I have just started to learn c++ but I am wondering what kind of applications can be built with c and c++

    Basically anything. There are rare occasions where some assembly programming is required, but placing it inline (not portable, though) or linking to an external object is comparatively easy, so that's not really a problem.

    >> For example I heard windows was made by millions of lines of c, so can I assume that products like PowerPoint and excel, adobe products ect have been wrote in c or c++?

    Probably, but I wouldn't be suprised if you found a couple of other technologies in the mix there.

    >> Is there a simple code I can compile that will put out a simple gui application?

    There are a lot of options out there. Here's a basic overview of the most popular ones.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    what kind of applications can be built with c and c++
    Everything. The question is not what can be done, but for what it is suitable.

    Most commercial programs you buy off the shelf are written in C, C++, or a combination of the two. Windows, MS Office, Adobe's products, they're all predominantly written in C++. Commercial games nowadays are almost without exception written in C++.

    On the other hand, server-side applications are rarely done in C++. Some notable exceptions are Google's search engine, E-Bay's backend application and Amazon's backend application. They're under such heavy load that they probably need the efficiency. Most stuff on the web, however, is written in Java, C#, PHP, Perl, Python or Ruby.


    As for simple GUI applications, you have to understand that the C++ language itself does not offer anything to create GUIs. For this you need to rely on the APIs specific to graphical systems (Win32 API and Xlib) or libraries written on top of these APIs (Qt, wxWidgets, GTK+, MFC, ...). For a comparison of these, search the board. They all present some simple Hello, World examples.
    However, I would argue that as a language beginner, you should stick with console input/output for the time being. It has the great advantage of being conceptually simpler, which means you can focus on learning the language instead of the GUI library.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    C++11 User Tux0r's Avatar
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    135
    GUI is not something you write in 5 lines.

    Here are some ways to go
    GTK+ - About
    Products — Qt - A cross-platform application and UI framework

    As for what can be written in C++, basically anything.

  5. #5
    Registered User
    Join Date
    Jul 2009
    Posts
    18
    Quote Originally Posted by CornedBee View Post
    Everything. The question is not what can be done, but for what it is suitable.




    As for simple GUI applications, you have to understand that the C++ language itself does not offer anything to create GUIs. For this you need to rely on the APIs specific to graphical systems (Win32 API and Xlib) or libraries written on top of these APIs (Qt, wxWidgets, GTK+, MFC, ...). For a comparison of these, search the board. They all present some simple Hello, World examples.x
    Just to clarify these libaries contain functions that specifically relate to producing a gui and the reason they have to be downloaded is because c/c++ does not have these functions by itself?
    However, I would argue that as a language beginner, you should stick with console input/output for the time being. It has the great advantage of being conceptually simpler, which means you can focus on learning the language instead of the GUI library
    Ya I will be going through the whole detiel book. I just wanted to make sure I was on the right track learning this rather than spending the next few months going through it not knowing if I could do what I want it to do.
    GUI is not something you write in 5 lines.

    Here are some ways to go
    GTK+ - About
    Products — Qt - A cross-platform application and UI framework
    When I download these do they automatically be avalible in in my codeblocks compiler?, I tried downloading something Called Allegra before, i think this may be similar but the site wouldnt load up so I have never installed an sdk before.

  6. #6
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Everything but OS bootstraps 'can' be done in C++. Whether they should be done in C++ or another language depends on the type of project. Since the advent of C# I would not dream of doing another GUI app in C++. I still tinker with MFC because I'm sick in the head but GUIs are far easier in C#. I also would not dream of doing web stuff in C++.

    Use the right tool for the job. Saying a hammer is better than a screwdriver because the hammer hammers and the screwdriver doesn't is really 'screwed' up.

  7. #7
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    ...is really 'screwed' up.
    * rimshot *

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 07:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 08:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM

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