home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18574 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  2.1 KB

  1. Path: sparky!uunet!opl.com!regina!harvey
  2. From: harvey@opl.com (Harvey Reed)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Newbie Wants Advice on C-Programming
  5. Message-ID: <harvey.725761096@regina>
  6. Date: 31 Dec 92 00:18:16 GMT
  7. References: <1992Dec23.220530.15347@netcom.com> <1992Dec27.023035.26886@mole-end.matawan.nj.us> <1313@ottawa.opl.com.opl.com>
  8. Sender: news@opl.com
  9. Lines: 37
  10.  
  11. sas@regina.aruba.UUCP (Steve Sciandra) writes:
  12.  
  13. >|> > 1) There seems to exist C, as well as C++, and possibly other variants.  What
  14. >|> >    are the differences between these?  Which should we learn first?
  15. >|> 
  16. >|> You really have to learn C before learning C++, but you might as well learn
  17. >|> C++ _programming_ directly.
  18. >|>  
  19.  
  20. >I learned C++ programming as my first language ( if you don't count COBOL).
  21. >My finding was that i didn't need to know a thing about C syntax wise to
  22. >learn C++.  it turned out, however, that learning about pointers, structs,
  23. >etc, I then realized that I have learned some C in the process of learning C++.I cannot claim that I learned all the C idioms and such things that one
  24. >learns from years of C programming, but learned enough of it through C++
  25. >to read C programs and maintain them..
  26.  
  27. >Another point, which supports your point, is that most people I ran across
  28. >while learning C++ already knew C and would often compare a C++ construct
  29. >to a C construct, etc.  By knowing C, one could benefit from  a understanding
  30. >of where C++ came from...
  31.  
  32. I learned C++ after using Modula-2 extensively. I found (after some time)
  33. that my initial lack of exposure to "just C" was actually beneficial.
  34. The tendency for C programmers is to make their C++ programs look like
  35. C programs (which is easy). However C programs don't necessarily make
  36. good C++ programs.
  37.  
  38. In the long run however I made sure to learn (and keep ref manuals
  39. handy) both ANSI C and C++ thoroughly, and keep mindful of their
  40. syntactic and semantic differences.
  41.  
  42.  
  43. -- 
  44. ++harvey
  45. ========================================================================
  46. internet:  harvey@opl.com  /  hreed@cs.ulowell.edu  /  h.reed@ieee.org
  47. voice:     617-965-0220
  48.