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 ?? !! ??
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 ?? !! ??
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.
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
Many thanks guys - thatll keep me quiet for a while !!