For a test input I enter the Principal as $4500, the Rate as 9.5%, and the Time at 6 yrs. The outcome is $256500. Is there a way for me to change the output from $256500 to $2565.00?
printf ("$%.02f", value / 100.) ;
For a test input I enter the Principal as $4500, the Rate as 9.5%, and the Time at 6 yrs. The outcome is $256500. Is there a way for me to change the output from $256500 to $2565.00?
printf ("$%.02f", value / 100.) ;
At 10/31/09 12:05 AM, thingie-348 wrote:printf ("$%.02f", value / 100.) ;
For a test input I enter the Principal as $4500, the Rate as 9.5%, and the Time at 6 yrs. The outcome is $256500. Is there a way for me to change the output from $256500 to $2565.00?
Thanks a lot!
Since I didn't know this little topic existed, I'll throw down a little tutorial I wrote a while back for creating a DLL in C++ and then reading that DLL in any other .NET language. The webpage is fairly boring at the moment, but the article is golden =)
Enjoy <3
Is C++ incredibly popular? I know most of the syntax, I took a course for it last year and because I'm a CompSci major in college my first Computing class is learning C. I'm searching (halfheartedly, I guess) around to find which is the most common programming language that game engines are coded in so I can get a head start and start perfecting my knowledge of the language.
Obviously not talking about flash games, here, lol.
At 10/13/10 12:40 AM, Trunks wrote: Is C++ incredibly popular? I know most of the syntax, I took a course for it last year and because I'm a CompSci major in college my first Computing class is learning C. I'm searching (halfheartedly, I guess) around to find which is the most common programming language that game engines are coded in so I can get a head start and start perfecting my knowledge of the language.
Obviously not talking about flash games, here, lol.
Yeah, C++ is kind of the standard for games but it is VERY similar to C.
I don't mean Visual basic 6 and VB7 similar (that it only works in theory), but in theory every C code is compatible with C++ and that goes as far as entire frameworks that were written in C work in C++ without any kind of adjustment (like OpenGL).
Just wrote displaying an image with SDL.
It belongs to Beginner: specific.
At 10/14/10 01:52 PM, Wolfos wrote: Yeah, C++ is kind of the standard for games but it is VERY similar to C.
I don't mean Visual basic 6 and VB7 similar (that it only works in theory), but in theory every C code is compatible with C++ and that goes as far as entire frameworks that were written in C work in C++ without any kind of adjustment (like OpenGL).
Yeah, that's why c is very easy for me, because I know the syntax of c++. It's annoying going backwards in time, though, because c++ to me seems like optimized c (which, i guess, it kind of is). So I guess c++ is going to be my new forte :D
At 11/18/10 01:19 PM, UnknownFear wrote:At 11/17/10 04:05 PM, Wolfos wrote: It's called C++: Main for a reason...Well excuse me for writing my C tutorial... in C instead of C++. The main page of this thread clearly states you can write C tutorials as well.
In C++, main() should be an int.
My apologies then, for not fully reading the main page.