O.S: Win98
Compiler: Dev-C++ version 4
Level: keen newbie ( becoming frustrated)

Hello,

Working my way through Teach Yourself C++. One of the annoying things about the book is way the examples are line numbered. I’ve written console app that removes the numbers and the colons, but I would like to write a win app that does the same. I’ve done everything (with help from people here), but the string routine that removes the line numbers and colons.

I appreciate some pointers on how to achieve this


An example:

1: // Listing 8.2 Using pointers
2:
3: #include <iostream.h>
4:
5: typedef unsigned short int USHORT;
6: int main()
7: {
8: USHORT myAge; // a variable
9: USHORT * pAge = 0; // a pointer
10: myAge = 5;
11: cout << "myAge: " << myAge << "\n";

etc…


Thanks again

hmm