Thread: C Lessons

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    7

    C Lessons

    I started wrting c lessons for absoulute begginers to advanced users, I think material can be considered quality, and my students learn programming with this stuff. If you wish feel free to start reading it here:

    www.visualcmaniac.com

    its only 5 lessons for now so maybe could be easier for you to start following it now in the beginning. Hope I helped..materials will be published on daily base. Enjoy now, or later when I reach more advanced topics...
    Last edited by vurdlak; 02-15-2006 at 05:49 AM.

  2. #2
    CS Author and Instructor
    Join Date
    Sep 2002
    Posts
    511
    Some critique for you..

    1.The black background is hard to read- Not the most user friendly for tutorials.

    some comments on your lessons

    lesson 5:

    To avoid this kind of unwanted results, its smart to use given transformation of data types mentioned in Lesson 4 (its enough to use it only once on one operand) or to set constants so at least one operand is real type:


    a = (float) 1 / 2; or

    a = 1. / 2; or

    a = 1 / 2.;

    Important:


    First case shows us way of using given transformation (it could also be used on second operand), and second and third example shows us possibility of adding spot, which declares constant as real number. This makes our result to be processed in real domain.
    You call it a transformation- but why don't you call it what is commonly called in the majority of books- an explicit cast...(you could say both)

    b) 9 % 4


    Result: 1 (% means leftover form division of whole numbers: 9 : 4 = 2 + leftover 1)
    Same thing here- it is typically called the remainder not "leftover"

    mounting the variables content by 2 (x2), while repositioning one place right is the same as dividing content with 2 (/2).
    What is mounting? The majority of you viewer sprobably have no clue what it means though it could be infered- multiplying sounds better (and its once again typically called.

    Also, what about right shift and machine dependency...

    Lesson 4

    Good lesson on transformations- you mention implicit and explicit

    but call it what it is- Casting!!!- once again I at least think you should mention the word- even if insist on using transformation

    Lesson 3

    The use of octet- I think of chemistry not binary numbers- except in networking..use a more common term

    Minor nitpicks- but I think you should use terminology that is commonly used as well as your terms...

    JC
    Mr. C: Author and Instructor

  3. #3
    Registered User
    Join Date
    Feb 2006
    Posts
    7
    thnks you very much!! since neglish is not my native language, sometimes I can't remember the real term and put wrong one! really appreciated mr.! thank you very much!

    gonna edit it, feel free to post more errors you find if you use my site..

    thats the thing i want my readers to help me

  4. #4
    Registered User
    Join Date
    Feb 2006
    Posts
    7
    what should i write instead of octal system and octet ? thnks!

  5. #5
    The Richness... Richie T's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    469
    i took a quick look at that and the word you are looking for is
    byte (which i had guessed from the posts here before looking,
    but that's beside the point). an octet of bits is always called a
    byte, and while we are on it, half of that octet (4 bits) is called
    a nibble/nybble (depends on your taste in spelling). this is a less
    common term but just so you are aware.

    edit: the octal system (i.e. a number system whose base is 8) is
    fine, thats the common term
    No No's:
    fflush (stdin); gets (); void main ();


    Goodies:
    Example of fgets (); The FAQ, C/C++ Reference


    My Gear:
    OS - Windows XP
    IDE - MS Visual C++ 2008 Express Edition


    ASCII stupid question, get a stupid ANSI

  6. #6
    Registered User
    Join Date
    Feb 2006
    Posts
    7
    thnks will repair that!

  7. #7
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Conditioning Operator (?
    It's usually called the conditional operator.

    You might want to make comments a different colour or font style to help distinguish them from regular code. Some of your comments wrap and it's hard to tell they're still comment.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  8. #8
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Code:
    char [-128, 127]
    Actually, a char can be signed or unsigned, depending on the platform/compiler flags. You should put this instead:

    signed char [-128, 127]
    char [signed char or unsigned char]
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  9. #9
    Registered User
    Join Date
    Feb 2006
    Posts
    7
    doing changes right now! many thanks... really appreciate effort you do!

    tomorrow I'll try to fix all the comments...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Lessons in writing good software - part 1
    By Salem in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-13-2003, 09:59 PM
  2. c lessons on the computer?
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 07-03-2002, 12:22 PM
  3. english lessons
    By Driveway in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 06-30-2002, 09:38 PM
  4. fyshing lessons
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 32
    Last Post: 02-17-2002, 11:14 AM