Thread: studying c++ programing ... concern

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    43

    Question studying c++ programing ... concern

    hi guys!

    i have 1 year off school (grad school transition, hopefully ) and my company actually prefer individual with c++/c# programing skill which a person, studying physics like me, doesn't have much.
    So, I decided to go on my own by self-studying.

    1. Reading 2 books abot C++: deitel&deitel and another one from D.S Malik "C++ program"
    2. Try to do as much as exercise programs as possible.

    But, i'm only at control structures (if, while, do, for, switch) and I encounter a program of separating digits from an integer number in order to add them.

    I found this hard (without using string and array) and I ended up google the algorithm.

    Aren't you supposed to come up with the solution by yourself?
    I'm just worried about the quality of self-studying like that.

    thanks for any insight!

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    I found this hard (without using string and array) and I ended up google the algorithm.
    Strange, because this is a purely numeric puzzle and should be well within the realm of something a physics student should be able to do. Programming is all about problem solving. You need to break your problems apart into pieces small enough that the computer understands them.

    For example, in this case your thought process should have been something like:
    1) The problem is adding up the digits of a number.
    2) So I need to break up the number into digits, and I need to add them together. Make that two sub-problems.
    3) Adding numbers together is simple. Start with 0. Add every new number to it as it comes up.
    4) Now how to split a number into digits?


    And yes, you're supposed to come up with the solutions to these puzzles yourself. Being able to implement an algorithm using the programming language is language basics, but not really programming.

    However, I don't feel that this is really any different in self-studying and in classes. Problem solving is something that's generally expected to be picked up along the way, instead of being the focus (as it should be, IMO.)


    So, what I'm saying is, continue with the self-studying. Most programmers start this way, I think. But focus on training your problem-solving skills.
    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

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    43
    thanks big time!
    quite uneasy to get used to programming, i.e. think like a computer

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    But then again, a good programmer must also know how to use google, etc, to find solutions to their problems!
    So don't feel bad
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    43
    good point
    couldn't agree more!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C programing for DNA...
    By S16 in forum C Programming
    Replies: 9
    Last Post: 04-29-2009, 09:25 AM
  2. Programing microcontrollers in c
    By gorabhat in forum C Programming
    Replies: 2
    Last Post: 09-09-2008, 10:40 AM
  3. Delete files and subfolder using c programing (Urgent
    By telukuntla in forum C Programming
    Replies: 13
    Last Post: 05-19-2008, 11:51 AM
  4. Human brain and programing
    By avgprogamerjoe in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-27-2007, 04:48 PM
  5. What should I know before starting windows programing?
    By Dixon in forum Windows Programming
    Replies: 6
    Last Post: 11-13-2003, 03:30 AM