No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
I'm trying to open a file (ifstream object), read from the file, then pass the ifstream object to a function where it will continue reading from the file. Along the way, I want to store the path of the file, and would like to know if there is a way …
I am trying to write an API (called logEvent) for an outdated os-level logging function. I would like to call it in the following manner. [CODE=cpp]logEvent << "string"; // or logEvent << "string" << 123 << 0.456 << ... ;[/CODE] I'm trying to accomplish this by overloading the stream operator, …
[QUOTE=kiryoku;980650]sir, help me solve it plssss.....[/QUOTE] If people just posted the solution for you, how would you become a good programmer?
If your target OS is Windows, the [URL="http://social.msdn.microsoft.com/Forums/en-US/category/visualc"]MSDN forum[/URL] might be a better place to ask.
I'm trying to do the same thing as the OP, but I don't know how long my fractional_part is going to be. If I do [code=cpp]char *str; float fractional_part; sprintf( str, "%f", fractional_part );[/code], will I get trailing garbage on the end of str (e. g., 123.4555888233546 instead of 123.456)?
[QUOTE=yasaswyg;931566]i need help I need to display Example 23.4 and display 23 and .4 how do i do this?[/QUOTE] I'm trying to do something similar, only instead of displaying the numbers, I need to store them. I need to store both as ints, though. The problem I'm running into is …
The End.
42Wired