Like Tree1Likes
  • 1 Post By CommonTater

real life c/c++ project examples please

This is a discussion on real life c/c++ project examples please within the General Discussions forums, part of the Community Boards category; I am from an electrical engineering type backround and I have been wanting to add a programming language to my ...

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    12

    real life c/c++ project examples please

    I am from an electrical engineering type backround and I have been wanting to add a programming language to my resume. The long term goal is to get into a computer science field. I asked a friend of mine when it was safe to put one on and he said when I can solve problems with it.

    My question now is what kind of "problems" are typical for the C or C++ programmer? Any book I read for either langauge, or any langauge for that matter, will say that it can be used for anything from A to Z. So far the examples in the book C++ without Fear has a thing for determining prime numbers and such.

    What kind of real life problems or projects should a c/cpp programmer be expected to handle?


    Thank You. Trying to find direction in a huge field.

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    You want examples...

    Well, how about Linux, Windows, BSD and OSX.... Yep... all written in C and C++.

    My list?

    Multi-user Inventory programs used by parts suppliers
    BarCode inventory updater for tablet PC
    HTPC remote control via lan for home theatre use
    Unicode playlist converter for music servers
    Music collection martialling for music server
    Playlist on the fly for music server
    Large File system integrity checker
    Office PA system via lan using PC speakers

    All written in C.

    If you want to go back to my Pascal days...

    Multi-User Inventory
    PC Cash Register
    PC to Cash register programming interface
    PC diagnostics
    Real Estate previewing program
    Grading/attendance for public schools

    and more.


    If it's out there... somebody had to write it!
    Last edited by CommonTater; 01-02-2012 at 07:33 PM. Reason: typo
    laserlight likes this.

  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by Snaggletooth View Post
    Any book I read for either langauge, or any langauge for that matter, will say that it can be used for anything from A to Z.
    Yes, because in theory it's true -- they are "Turing complete":

    from: Turing completeness - Wikipedia, the free encyclopedia
    In practice, Turing completeness means that the rules followed in sequence on arbitrary data can produce the result of any calculation. In procedural languages this can be satisfied by having, at a minimum, conditional branching (e.g., an "if" and "goto" statement) and the ability to change arbitrary memory locations (e.g., variables). To show that something is Turing complete, it is enough to show that it can be used to simulate the most primitive computer, since even the simplest computer can be used to simulate the most complicated one. All general purpose programming languages and modern machine instruction sets are Turing complete, notwithstanding finite-memory limitations.
    So doing "anything from A to Z" is a matter of how well you can conceptualize your task in relation to the hardware involved, and what software tools are available to you on that hardware to help facilitate the task. Different languages fill different niches in this regard, but again, in theory (and sans constraints on time and memory), all turing complete languages should allow you to do anything the hardware is capable of.

    My question now is what kind of "problems" are typical for the C or C++ programmer?
    C is used a lot in system, embedded, and streamlined application (eg. databases, interpreters, servers) programming. C++ is also used in system and application programming, probably more toward the "high level" and/or "end user" end of the application spectrum (eg. integrated frameworks, GUIs, video games).

    I think as an electrical engineer you'd want to have significant grounding in C but C++ may also be very useful to you professionally. $0.02
    Last edited by MK27; 01-02-2012 at 08:16 PM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  4. #4
    Registered User
    Join Date
    Aug 2008
    Posts
    12
    Thanks.
    I've been looking to make a career change and I have been interested in programming for a long time. So I've been trying to gauge my level of knowledge and what I would actually be getting into. There is only so much I can gleam from job postings and the couple of people I know in the field.

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,772
    Maybe it makes more sense to start with what you have in mind by a "computer science field". Do you want to be a computer science academic?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Snaggletooth View Post
    I've been looking to make a career change and I have been interested in programming for a long time.
    So, instead of talking about it... just DO it.

    There's lots of free compilers out there and even more free e-books and tutorials.

    The only thing stopping you is you.

  7. #7
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by MK27 View Post
    Different languages fill different niches in this regard, but again, in theory (and sans constraints on time and memory), all turing complete languages should allow you to do anything the hardware is capable of.
    Eh -- okay this is not really true, as "performing any possible calculation" does not equate to "doing anything the hardware is capable of". I got a little excited. But most modern general purpose languages will anyway in most settings.

    I wouldn't get too stressed at where you start, just, as tater says, start. You can refine your decision more later.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C in Real Life
    By Adak in forum C Programming
    Replies: 6
    Last Post: 08-30-2010, 10:04 PM
  2. Design Outside the Box, aka Games in real life
    By Mario F. in forum General Discussions
    Replies: 21
    Last Post: 02-27-2010, 11:21 AM
  3. amw real life cryptology zodiac
    By kryptkat in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 12-17-2007, 08:31 AM
  4. How would the online-world be in real life?
    By Magos in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 06-02-2005, 02:11 PM
  5. real life...
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 35
    Last Post: 11-17-2001, 06:30 PM

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