No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
I can't try to correct your code since you didn't post the full code or a part that would be enough to make it understandable. So, check [URL="http://www.dreamincode.net/code/snippet591.htm"]this code snippet[/URL] and apply it to you code.
if the first name, last name, phone number are space-separated, then read [URL="http://www.cprogramming.com/faq/cgi-bin/smartfaq.cgi?answer=1057105750&id=1044780608"]this[/URL] to learn how to parse the line
I think you should name the first function test1() and the second test2(), or else this code won't compile as [B]Narue[/B] said...
[B]1. What is your favorite IDE[/B] [URL="http://www.eclipse.org/"]Eclipse[/URL], and [URL="http://qt.nokia.com/products/appdev/developer-tools/developer-tools#qt-tools-at-a"]Qt Creator[/URL] in the second place. [B]2. What is your favorite GUI library[/B] [URL="http://qt.nokia.com"]Qt[/URL] [B]3. What is library that you often use?[/B] The standard library, Qt, OpenGL [B]4. Anything related?[/B] yes, my favorite compiler is G++, part of GNU [URL="http://gcc.gnu.org/"]GCC[/URL]
[B]operator>>()[/B] Extracts formatted data, while [B]get()[/B] extracts un-formatted data. Thus [B]get()[/B] is usually used for file I/O and hardware operations, and [B]operator>>()[/B] is used for handling user input (from command line by default). For more info: [URL="http://www.cplusplus.com/reference/iostream/istream/operator>>/"]operator>>()[/URL], [URL="http://www.cplusplus.com/reference/iostream/istream/get/"]get()[/URL]
@Snippset: You can check the [URL="http://qt.nokia.com/"]Qt library[/URL] which has a QDate class that includes this type of conversion as well as other stuff, or, do you want to implement this functionality yourself.
Google C++ Style Guide is interesting, check it out [URL="http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml"]here[/URL]
The End.