Thread: Books with Real world exersises

  1. #1
    Registered User Spectrum48k's Avatar
    Join Date
    May 2002

    Books with Real world exersises

    i am relatively new to C programming, and after going through a few tutorial books, i am curious about some real world programs and exersises. are there any books i should look for ? somethng easy to follow and understand ? (easy is a relative term, but you get the point

  2. #2
    Registered User
    Join Date
    Apr 2002
    The problem is that most real world exercises would be too big and too complex for people just learning. Im sure theres some calculator examples and stuff, if thats what you mean.

    #include <stdio.h>
    int main()
       int result, num1, num2;
          printf("\n\nenter num 1 then num2, enter 0 0 to exit");
          scanf("%d %d", &num1, &num2);
          printf("\n\n%d", result);
       return 0;
    there you go, simple calculator rocks!!!

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    There are a few big differences between real world code and kiddie code for students:

    1) Error checking. Real code has a ton of it, at least 2/3 of a program should be error checking.

    2) Error handling. The last thing you should do is terminate the program, real code will try to recover a few times.

    3) Input validation. Users are fools and real world code should try to be fool proof.

    4) Bubble sort. You never see it.

    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sig. Books on C++ for beginners
    By Mario in forum C++ Programming
    Replies: 23
    Last Post: 05-20-2002, 04:54 PM
  2. Programming Puns
    By kermi3 in forum A Brief History of
    Replies: 44
    Last Post: 03-23-2002, 04:38 PM
  3. So what's the real world like when......
    By student in forum A Brief History of
    Replies: 12
    Last Post: 02-15-2002, 03:44 AM
  4. Real World
    By Unregistered in forum A Brief History of
    Replies: 3
    Last Post: 01-25-2002, 08:46 AM
  5. Replies: 7
    Last Post: 12-12-2001, 10:28 AM