Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #2K
~8K People Reached
Favorite Forums
Favorite Tags
c++ x 22

11 Posted Topics

Member Avatar for daviddoria
Member Avatar for Jsplinter

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, …

Member Avatar for Jsplinter
0
4K
Member Avatar for tomtetlaw

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?

Member Avatar for tomtetlaw
0
573
Member Avatar for mostafa mahmoud

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, …

Member Avatar for Narue
0
103
Member Avatar for Traicey

[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]

Member Avatar for Traicey
-1
137
Member Avatar for White-Gandalf

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) …

Member Avatar for Narue
0
266
Member Avatar for richasr1

[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 …

Member Avatar for White-Gandalf
0
114
Member Avatar for Nemoticchigga

Why in the world do you actually MAKE the member private if you INTEND to change it from elsewhere?!

Member Avatar for White-Gandalf
0
79
Member Avatar for wakeup

[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 …

Member Avatar for White-Gandalf
0
113
Member Avatar for LindaWiklund

[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?

Member Avatar for White-Gandalf
0
186
Member Avatar for White-Gandalf

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 …

Member Avatar for White-Gandalf
0
130

The End.