Thread: what's the best way to achieve this

  1. #91
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Seems like you need to do a bit of reading on C++ before progressing.

  2. #92
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    segmentation fault
    Quote Originally Posted by Bubba View Post
    Seems like you need to do a bit of reading on C++ before progressing.
    Essentially. Here's a tip: if you are unfamiliar with the use of maps, structs, and iterators, do not try and incorporate them directly into the program you are writing before you first write short test/example programs so that you can get a feel for the syntax and concepts.

    This also makes it easier to ask people questions, because rather than expecting them to follow a thread that is now 90 posts long in order to figure out where you are coming from/what you are doing, you can post a fresh thread with a short piece of code asking a specific question about syntax/usage.

    Furthermore, it will save you time and headaches. Breaking things down appropriately is a very very significant aspect of successful programming. You may think it is a waste of effort to work on a short demo program about maps and iterators, but honestly: in the end, it will probably be a lot less wasted effort than making a mess in your main project doing the same thing. When I run across something new that I need/want to use for some specific purpose, I don't just read a couple of docs and then set out to include it in my latest magnum opus. First I sit down and play with it independently. Rather obviously, the second time you apply something is easier than the first -- and also, the result is more focussed and polished.
    Last edited by MK27; 06-04-2010 at 07:46 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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 10-31-2008, 01:26 PM
  2. Best way to achieve this
    By cloudy in forum Networking/Device Communication
    Replies: 1
    Last Post: 09-06-2006, 07:23 PM
  3. Replies: 3
    Last Post: 09-11-2005, 10:13 AM
  4. The more intelligent risks you take in life, the more you'll achieve
    By Terrance in forum A Brief History of
    Replies: 6
    Last Post: 05-20-2003, 05:23 PM
  5. Regarding Careers - need advice
    By Unregistered in forum A Brief History of
    Replies: 21
    Last Post: 01-05-2002, 04:59 AM