Thread: c++ tasks ??

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    2

    c++ tasks ??

    having just finished the ' c++ for dummies' book i am wanting to flex my c++ muscles :-) but am having problems thinking of any interesting tasks or problems to get my teeth into.
    Any suggestions please ?? !! ??

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Suggestion: C++ Syntax Checker (or Dumb Error Finder)

    I started thinking about writing a program like this one day when I was making a little cut-and-paste edit to a 5000 line program. I misplaced a curly-bracket and the compiler reported hundreds of errors! I was thinking it would be cool to show the "bracket level" something like this: (Maybe using reverse-video for the level numbers.)

    {1
    {2

    }2
    }1

    I was going to the same thing for all the symbols that are used in pairs.

    And I was going to check for lines that don't end in semicolons, etc, etc, etc.

    It seems that the simple errors are the toughest to find, and they can really confuse the compiler to the point that the error messages arn't very helpful.

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    362
    Not a bad program to work on. Did one exactly like that in school (an assignment).

    We weren't required to consider commented sections of the code, but this shouldn't prove too big an obstacle.

    Good luck!

    -Skipper
    "When the only tool you own is a hammer, every problem begins to resemble a nail." Abraham Maslow

  4. #4
    Registered User
    Join Date
    Oct 2002
    Posts
    2
    Many thanks guys - thatll keep me quiet for a while !!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 1 application - 4 tasks :: how to seperate?
    By Devils Child in forum Windows Programming
    Replies: 8
    Last Post: 02-24-2009, 03:24 AM
  2. Homework tasks for fun
    By KoG Metalgod in forum C Programming
    Replies: 3
    Last Post: 12-19-2006, 12:40 PM
  3. Dont Kill Focus When Switching Tasks
    By stickman in forum Windows Programming
    Replies: 6
    Last Post: 11-17-2006, 09:08 PM
  4. Semaphores, OS tasks
    By Rennor in forum Networking/Device Communication
    Replies: 6
    Last Post: 08-24-2006, 10:58 PM
  5. removing default tasks?
    By Scourfish in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 03-19-2002, 12:36 PM