Click here to Skip to main content
15,895,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help needed with my calculator code Pin
Richard MacCutchan9-Apr-12 0:09
mveRichard MacCutchan9-Apr-12 0:09 
Generaljava Pin
anurag9558-Apr-12 13:54
anurag9558-Apr-12 13:54 
GeneralRe: java Pin
Wes Aday8-Apr-12 14:28
professionalWes Aday8-Apr-12 14:28 
GeneralRe: java Pin
Mohibur Rashid8-Apr-12 17:49
professionalMohibur Rashid8-Apr-12 17:49 
AnswerRe: java Pin
Malli_S8-Apr-12 19:51
Malli_S8-Apr-12 19:51 
AnswerRe: java Pin
Chuck O'Toole9-Apr-12 8:06
Chuck O'Toole9-Apr-12 8:06 
QuestionLinked List Pin
djgmad8-Apr-12 3:37
djgmad8-Apr-12 3:37 
AnswerRe: Linked List Pin
Randor 8-Apr-12 4:32
professional Randor 8-Apr-12 4:32 
djgmad wrote:
Is there a specific way of writing/reading a linked list to and from a random access file in c++....if so could someone please give me an example

In computer science there isn't a standard way of doing much of anything. There is always somebody out there thinking outside the box and doing it completely different. Smile | :)

What you are looking for is called: serialization[^]. For a linked list... just keep in mind that you cannot dump pointers into a file and expect the memory addresses to be valid when you read them back. You could either dump the raw data into a file from memory... or perhaps use a serialization format[^]. There are alot of techniques and different opinions... so you would be well served by using your favorite search engine.

Best Wishes,
-David Delaune
GeneralRe: Linked List Pin
djgmad8-Apr-12 5:43
djgmad8-Apr-12 5:43 
GeneralRe: Linked List Pin
Randor 8-Apr-12 6:52
professional Randor 8-Apr-12 6:52 
GeneralRe: Linked List Pin
enhzflep8-Apr-12 7:24
enhzflep8-Apr-12 7:24 
AnswerRe: Linked List Pin
Erudite_Eric8-Apr-12 7:01
Erudite_Eric8-Apr-12 7:01 
SuggestionRe: Linked List Pin
David Crow8-Apr-12 16:33
David Crow8-Apr-12 16:33 
Questionc Pin
siddharth00077-Apr-12 17:23
siddharth00077-Apr-12 17:23 
AnswerRe: c Pin
Rajesh R Subramanian7-Apr-12 22:43
professionalRajesh R Subramanian7-Apr-12 22:43 
AnswerRe: c Pin
Luc Pattyn8-Apr-12 5:19
sitebuilderLuc Pattyn8-Apr-12 5:19 
AnswerRe: c Pin
Chris Losinger8-Apr-12 6:08
professionalChris Losinger8-Apr-12 6:08 
AnswerRe: c Pin
Wes Aday8-Apr-12 6:18
professionalWes Aday8-Apr-12 6:18 
AnswerRe: c Pin
enhzflep8-Apr-12 7:11
enhzflep8-Apr-12 7:11 
AnswerRe: c Pin
Stephen Hewitt8-Apr-12 21:34
Stephen Hewitt8-Apr-12 21:34 
AnswerRe: c Pin
scramjetter14-Apr-12 15:57
scramjetter14-Apr-12 15:57 
QuestionI want to write a code for dns redirect Pin
cosharp7-Apr-12 14:18
cosharp7-Apr-12 14:18 
QuestionRe: I want to write a code for dns redirect Pin
Randor 8-Apr-12 4:39
professional Randor 8-Apr-12 4:39 
QuestionPointers - help please Pin
jenbren7-Apr-12 12:24
jenbren7-Apr-12 12:24 
AnswerRe: Pointers - help please Pin
Maximilien7-Apr-12 13:41
Maximilien7-Apr-12 13:41 

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.