No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
11 Posted Topics
| |
Re: If you like to pack it effectively (but not without some penalty as warned by Ancient Dragon), you could use a bitset structure like struct my_packed_data { int32 my_3_byte_int : 24, rest_for_other_scrap : 8; } You could mix your 3-byte-int with other such constructs into a compact struct. On access, … | |
Re: The position comes in as pixels. ScreenToClient does shifting only, not scaling. What you describe looks like some SCALING of the coordinates. Maybe you take a closer look at your code for any scaling operations that might be in effect? | |
Re: First you should get an overview of what is best suited to your problem! As you write about an "ONLINE" (!) project and about yourself having "BASIC" (!) knowledge of C++, it seems that PHP would be a much better approach for you. It IS basically a C type language, … | |
Re: [url]http://www.google.com/search?hl=en&q=cpp+math+pow&btnG=Search[/url] [url]http://en.wikipedia.org/wiki/Power[/url] -> [url]http://en.wikipedia.org/wiki/Exponentiation[/url] | |
Hallo, i stumbled over a curious behavior today, which i never saw in more than 15 years of usage of cpp compilers: The following gets compiled without any error message by gpp 3.4.5 (from mingw, included in devcpp), where i normally would seriously expect an error message: [code]sometype funcname(sometype somearg) … | |
Re: [QUOTE=richasr1;575159][CODE]void __fastcall TStackBuild::StackA(void)[/CODE][/QUOTE] ...is a member function of TStackBuild. The statement... [QUOTE=richasr1;575159][CODE]TStackBuild* StackA();[/CODE][/QUOTE] ...is a declaration of a variable of type "TStackBuild*" with name "StackA" and a default constructor (wich is empty for pointers). It seems, that the compiler is compiling the right thing: Nothings has to happen by this … | |
Re: Why in the world do you actually MAKE the member private if you INTEND to change it from elsewhere?! | |
Re: [QUOTE=wakeup;574891]"0.58" ... atof ... 0.57999999999999996 Do you know why?[/QUOTE] The decimal system is not the dual system. Try to express 0.58 as a quotient of two integer numbers with the denominator being a power of two! (58/100 = 29/50 = 29 / (5*5*2) -> Is there a way to multiply … | |
Re: [QUOTE=LindaWiklund;575166]"9999 00 00 CC 03 00 CC 00 00 'xxx'"[/QUOTE] Well: As you have typed it, there is only a single whitespace after "9999". Does this matter? [QUOTE=LindaWiklund;575166]"\\s{3,}\'"[/QUOTE] Hmmm, 3 Whitespaces? And a single "'"? That's not what your text looks like. Possibly mistakes? | |
Introduction: I already tried to post this on the dev-c++ - forum at sourceforge, but didn't check for the far too low frequency at that forum (about two questions per week). Thus i tried t find a better visited one and found this here. I use: Dev-C++ 4.9.9.2 Windows XP/SP2 … |
The End.