0. Please edit your question and wrap your code in the appropriate tags.
1. "Not running" isn't very descriptive. Are you failing to hit the enter key after typing the name of the program ina console window, are you only building the program but not running it from an IDE, or perhaps, you're running the program and it produces unexpected output..
2. The program runs just fine.
3. This is the output I get when running from the console. (I assume you understand what argv refers to. Hint: it's not a 4 character long input. argv would hold "001-deleteMePlease" "001-deleteMePlease.exe")
D:\code\001-deleteMePlease\bin\Release>001-deleteMePlease.exe 1 2 3 2000
Name: William Strickland
Is Leap Year
2000 is a leap year
"When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down 'happy'. They told me I didn't understand the assignment, and I told them they didn't understand life." - John Lennon
I have learned the principles of OOP and implementations in both java and C++ either on my own or in my school courses but we only grazed it. At this point, I feel very uncomfortable with OOP and I need a good resource that will provide me with a great deal of problems that require OOP to solve (or are best solved using object oriented approaches), and their respective answers with clean code and good practices. I have had very very little practice with OOP and want to practice as much as possible to get comfortable with it. I have been searching a lot but I can't seem to find a good resource.
Optimally, I would like it to begin with very trivial questions and progressively become more and more difficult.
I want to generate a dump file automatically whenever the application crashed/hanged. Is there any option to do it or how to do it programatically as the developer don't know when that application crashes at client location.
AFAIK Dump Files are managed by the OS - whichever it is - so you should look on the OS documentation. It is probable that you need to instruct the OS that you want a dump file and of which kind you desire (short, long, kernel...).
We have some old code which creates an XML document tree, using IXMLDocument and related interfaces. Anyway, some code creates a text node and we pass in text such as "5.0 £" or "2.5 €". The currency characters are non ASCII and are not valid in an XMl text node. For example this is invalid:
It needs to be translated as follows:
I can process the string e.g. "2.5 €" replacing each non ASCII character with a numeric character reference, and then create the XML text node. Is there a better way to convert the CString content to XML compliant text? I cannot find anything in Microsoft code. (As far as I can see Xerces would handle this but we do not use Xerces.)
Last Visit: 31-Dec-99 19:00 Last Update: 5-Dec-22 7:38