Help with C Programming Assignment

Discussion in 'After Hours Lounge (Off Topic)' started by Andrew S, Nov 30, 2004.

  1. Andrew S

    Andrew S Stunt Coordinator

    Joined:
    Sep 30, 2001
    Messages:
    215
    Likes Received:
    0
    Yeah... this semester for me is C, next semester is Java.
     
  2. John Miles

    John Miles Stunt Coordinator

    Joined:
    Jan 16, 2000
    Messages:
    237
    Likes Received:
    0

    That would be like impressing your drill instructor by bringing a live grenade with you to boot camp. [​IMG]
     
  3. Sami Kallio

    Sami Kallio Screenwriter

    Joined:
    Jan 6, 2004
    Messages:
    1,035
    Likes Received:
    0
    Not if you understand what you are presenting. [​IMG]

    But you're right, never try to impress with something you don't know about because the instructor will make you explain what it means. That is why copy/paste isn't useful unless you understand what you are copying.
     
  4. Jeff Gatie

    Jeff Gatie Lead Actor

    Joined:
    Aug 19, 2002
    Messages:
    6,531
    Likes Received:
    15


    This is specifically the reason I said the above assignment called for a sprintf and no mallocs. Most 1st semester 'C' courses I've taken (and I've taken more than one when I changed colleges - easy credits[​IMG]) don't touch dynamic allocation until very late, if at all. They also spent an inordinate amount of time on scanf, which as I said I've never used in a commercial app. They should spend more time with the 'memxxx', 'sprintf" and 'strnxxx' functions. I use these everyday, often more than any APL I use.
     
  5. LDfan

    LDfan Supporting Actor

    Joined:
    Nov 30, 1998
    Messages:
    724
    Likes Received:
    0
    Now I'm getting interested. Is C or C++ for that matter still worth learning these days. With Java and VB everywhere you just don't hear much about the old school languages anymore.

    Jeff
     
  6. Jeff Gatie

    Jeff Gatie Lead Actor

    Joined:
    Aug 19, 2002
    Messages:
    6,531
    Likes Received:
    15
    [​IMG]

    Never thought I'd see the day when 'C' would be called "old school". Guess I'm now a dinosaur like the COBOL programmers I used to make fun of. To answer the question, yes 'C' and especially C++ are good languages to learn. Both teach good programming techniques in that they do not hold your hand (i.e. mistakes are easy to make and therefore your programming skills become stronger) and there are still a few lines of code written in these (like a gazillion or so).
     
  7. Jeff Gatie

    Jeff Gatie Lead Actor

    Joined:
    Aug 19, 2002
    Messages:
    6,531
    Likes Received:
    15


    Don't laugh. My freshman programming course at Northeastern U. was in Fortran 77 and the first project was inputting via punchcards. That was in 1984!
     
  8. Sami Kallio

    Sami Kallio Screenwriter

    Joined:
    Jan 6, 2004
    Messages:
    1,035
    Likes Received:
    0
    C/C++ aren't going anywhere because of Java or VB. They have never been replacement for C/C++, just different tools for different fools.

    P.S. Good speakers aren't disappearing because of Bose, are they? [​IMG]
     
  9. Christ Reynolds

    Christ Reynolds Producer

    Joined:
    May 6, 2002
    Messages:
    3,597
    Likes Received:
    0
    Real Name:
    CJ
    as a student taking a first semester C course now, i find K & R quite handy. i wouldnt consider it a great learning tool, but once you have already learned how to do something, it is essential.
    hmm, interesting. i didnt know it was usually done this way. my professor introduced malloc (and calloc) to us before the middle of the semester, and for first semester programmers, we have become decent at using it. i think she pushes us a little more, she was senior software engineer for GE's global medical systems operation for a few years, so it's not like we are taking the course from some jerk who learned the material a few semesters ago. anyway, i'm enjoying the class quite a bit.

    CJ
     

Share This Page