Click here to Skip to main content
14,694,180 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Text Access Pin
Richard MacCutchan17-Nov-18 22:06
mveRichard MacCutchan17-Nov-18 22:06 
QuestionHow to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
Member 1312800516-Nov-18 23:09
MemberMember 1312800516-Nov-18 23:09 
SuggestionRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
Richard MacCutchan17-Nov-18 0:20
mveRichard MacCutchan17-Nov-18 0:20 
QuestionRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
David Crow17-Nov-18 4:57
MemberDavid Crow17-Nov-18 4:57 
AnswerRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
Bram van Kampen17-Nov-18 15:51
MemberBram van Kampen17-Nov-18 15:51 
QuestionLinked List Problem - K reverse linked list Pin
Member 1405554315-Nov-18 1:04
MemberMember 1405554315-Nov-18 1:04 
AnswerRe: Linked List Problem - K reverse linked list Pin
CPallini15-Nov-18 1:24
mveCPallini15-Nov-18 1:24 
GeneralRe: Linked List Problem - K reverse linked list Pin
Stefan_Lang15-Nov-18 4:43
mveStefan_Lang15-Nov-18 4:43 
GeneralRe: Linked List Problem - K reverse linked list Pin
CPallini15-Nov-18 7:07
mveCPallini15-Nov-18 7:07 
AnswerRe: Linked List Problem - K reverse linked list Pin
Daniel Pfeffer15-Nov-18 3:16
professionalDaniel Pfeffer15-Nov-18 3:16 
AnswerRe: Linked List Problem - K reverse linked list Pin
Stefan_Lang15-Nov-18 5:19
mveStefan_Lang15-Nov-18 5: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 6:37
MemberDavid Crow15-Nov-18 6:37 
Questionfacing issue in “Ajantha” font on windows10 in GDIplus Pin
Avinash.Pandey12-Nov-18 23:06
MemberAvinash.Pandey12-Nov-18 23:06 
QuestionRe: facing issue in “Ajantha” font on windows10 in GDIplus Pin
Richard MacCutchan13-Nov-18 6:06
mveRichard MacCutchan13-Nov-18 6:06 
AnswerRe: facing issue in “Ajantha” font on windows10 in GDIplus Pin
leon de boer13-Nov-18 7:22
Memberleon de boer13-Nov-18 7:22 
QuestionElevate Process from user to Admins Rights without UAC Elevation Pin
Drakesal12-Nov-18 22:22
MemberDrakesal12-Nov-18 22:22 
AnswerRe: Elevate Process from user to Admins Rights without UAC Elevation Pin
Richard MacCutchan12-Nov-18 22:35
mveRichard MacCutchan12-Nov-18 22:35 
QuestionOk im back with another problem... Pin
Member 140474359-Nov-18 13:36
MemberMember 140474359-Nov-18 13:36 
AnswerRe: Ok im back with another problem... Pin
Richard MacCutchan9-Nov-18 22:44
mveRichard MacCutchan9-Nov-18 22:44 
AnswerRe: Ok im back with another problem... Pin
leon de boer10-Nov-18 20:21
Memberleon de boer10-Nov-18 20:21 
QuestionMobile app Pin
valentineNandang9-Nov-18 3:45
MembervalentineNandang9-Nov-18 3:45 
AnswerRe: Mobile app Pin
Richard MacCutchan9-Nov-18 3:52
mveRichard MacCutchan9-Nov-18 3:52 
QuestionHello I am having a problem Pin
Member 140474357-Nov-18 13:30
MemberMember 140474357-Nov-18 13:30 
AnswerRe: Hello I am having a problem Pin
David Crow7-Nov-18 18:34
MemberDavid Crow7-Nov-18 18:34 
QuestionScript generation from Objects using C++ Pin
FrankStar895-Nov-18 13:30
MemberFrankStar895-Nov-18 13:30 

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.