Click here to Skip to main content
15,886,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
David Crow17-Nov-18 3:57
David Crow17-Nov-18 3:57 
AnswerRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
Bram van Kampen17-Nov-18 14:51
Bram van Kampen17-Nov-18 14:51 
QuestionLinked List Problem - K reverse linked list Pin
Member 1405554315-Nov-18 0:04
Member 1405554315-Nov-18 0:04 
AnswerRe: Linked List Problem - K reverse linked list Pin
CPallini15-Nov-18 0:24
mveCPallini15-Nov-18 0:24 
GeneralRe: Linked List Problem - K reverse linked list Pin
Stefan_Lang15-Nov-18 3:43
Stefan_Lang15-Nov-18 3:43 
GeneralRe: Linked List Problem - K reverse linked list Pin
CPallini15-Nov-18 6:07
mveCPallini15-Nov-18 6:07 
AnswerRe: Linked List Problem - K reverse linked list Pin
Daniel Pfeffer15-Nov-18 2:16
professionalDaniel Pfeffer15-Nov-18 2:16 
AnswerRe: Linked List Problem - K reverse linked list Pin
Stefan_Lang15-Nov-18 4:19
Stefan_Lang15-Nov-18 4:19 
Break the problem into simpler tasks and implement functions for these:

1. write a function that reverses a full list. Make sure to adhere to the constraint to only use a constant amount of space (memory).
2. write a function to find the Nth element within a list from a given starting position (not actually needed, but will simplify the final program)
3. write a function to split off part of a given list before the Nth position
4. write code to retrieve sub-lists of length K using 2. and 3. and code to insert a (modified) sublist back at the original position.
5. use 1. and 4. in an iteration to process the entire list

All of these steps can easily be done with the help of at most two or three temporary references (pointers). The only tricky one is the reverse function.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

QuestionRe: Linked List Problem - K reverse linked list Pin
David Crow15-Nov-18 5:37
David Crow15-Nov-18 5:37 
Questionfacing issue in “Ajantha” font on windows10 in GDIplus Pin
Avinash.Pandey12-Nov-18 22:06
Avinash.Pandey12-Nov-18 22:06 
QuestionRe: facing issue in “Ajantha” font on windows10 in GDIplus Pin
Richard MacCutchan13-Nov-18 5:06
mveRichard MacCutchan13-Nov-18 5:06 
AnswerRe: facing issue in “Ajantha” font on windows10 in GDIplus Pin
leon de boer13-Nov-18 6:22
leon de boer13-Nov-18 6:22 
QuestionElevate Process from user to Admins Rights without UAC Elevation Pin
Drakesal12-Nov-18 21:22
Drakesal12-Nov-18 21:22 
AnswerRe: Elevate Process from user to Admins Rights without UAC Elevation Pin
Richard MacCutchan12-Nov-18 21:35
mveRichard MacCutchan12-Nov-18 21:35 
QuestionOk im back with another problem... Pin
Member 140474359-Nov-18 12:36
Member 140474359-Nov-18 12:36 
AnswerRe: Ok im back with another problem... Pin
Richard MacCutchan9-Nov-18 21:44
mveRichard MacCutchan9-Nov-18 21:44 
AnswerRe: Ok im back with another problem... Pin
leon de boer10-Nov-18 19:21
leon de boer10-Nov-18 19:21 
QuestionMobile app Pin
valentineNandang9-Nov-18 2:45
valentineNandang9-Nov-18 2:45 
AnswerRe: Mobile app Pin
Richard MacCutchan9-Nov-18 2:52
mveRichard MacCutchan9-Nov-18 2:52 
QuestionHello I am having a problem Pin
Member 140474357-Nov-18 12:30
Member 140474357-Nov-18 12:30 
AnswerRe: Hello I am having a problem Pin
David Crow7-Nov-18 17:34
David Crow7-Nov-18 17:34 
QuestionScript generation from Objects using C++ Pin
FrankStar895-Nov-18 12:30
FrankStar895-Nov-18 12:30 
AnswerRe: Script generation from Objects using C++ Pin
CPallini5-Nov-18 21:06
mveCPallini5-Nov-18 21:06 
GeneralRe: Script generation from Objects using C++ Pin
FrankStar8912-Nov-18 11:19
FrankStar8912-Nov-18 11:19 
GeneralRe: Script generation from Objects using C++ Pin
CPallini12-Nov-18 21:18
mveCPallini12-Nov-18 21:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.