-
Began Watching win32 - how get the string size correctly?
i have these function for get the string size: SIZE GetStringSize(string text, HWND hdccontrol=GetForegroundWindow()) { RECT textrect={0}; HDC txthdc=GetDC(hdccontrol); DrawText (txthdc,text.c_str(),-1,&textrect,DT_CALCRECT); ReleaseDC(hdccontrol,txthdc); SIZE a={textrect.right-textrect.left, textrect.bottom-textrect.top}; return a; } the 1st … -
Began Watching Old old programmer needs some personal help!
One of my first programs was coded on paper tape. Another was via punched cards. I foresaw amazing stuff, e.g., artificial intelligence, models for weather, space travel, etc., but never … -
Replied To a Post in Help with game logic
Do any of [these](http://en.wikipedia.org/wiki/Sudoku_solving_algorithms) help? I haven't tried any myself, although I plan to do so in the near future. -
Replied To a Post in delete the last and first line in an interval
Please post the code. -
Began Watching Get Items from map and add to a vector c++
I rote this code in my program JSONNode::const_iterator iter = root.begin(); for (; iter!=root.end(); ++iter) { const JSONNode& arrayNode = *iter; std::string type = arrayNode["type"].as_string(); if(type == "node") { std::string … -
Replied To a Post in Help needed in windows power management
Modify [this](http://www.codeproject.com/Articles/15829/Vista-Goodies-in-C-Monitoring-the-Computer-s-Power). -
Edited if/else statement
my assignment is to find the commission of each monthly sales,how can i get the right answer? monthly sales is 0-19,999(4%)/ 20,000-29,999(5%) /30,000-39,999(6%) / 40,000-49,999(7%) 50,000-above(9%) using if/else statement -
Replied To a Post in virtual functions in c++
1. Why virtual functions can't be static? virtual functions are bound to an instance of a class, and you can't call it without an instance(object) of the class. static functions … -
Gave Reputation to nhrnjic6 in help with in_order tree algorithm
thats what I was looking for. Thank you! -
Replied To a Post in help with in_order tree algorithm
It does not. in_order_print(2) prints 2. After that, in_order_print(3) prints 3. -
Replied To a Post in help with in_order tree algorithm
First of all, I think there is a bug in line 8. I think it should be if(p_tree->p_right != 0) To understand the code, think about these three lines of …
The End.