prg usin linkd list n files

M

mittalkratika817

plz help me out.hw can we transfer data from linked list to files and
files to linked list n how can v remov warning suspicious pointer
conversion
 
F

Falcon Kirtaran

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

plz help me out.hw can we transfer data from linked list to files and
files to linked list n how can v remov warning suspicious pointer
conversion

One thing you need to do is probably design a file format. It is silly
to write the linked list nodes to a file and then read them back, as in
the way I'm guessing you are probably doing (given a warning about
pointer conversion, probably to int or something), because the node
contains the pointers, which will be invalid in any other instance of
your program. You actually have to reconstruct the linked list when you
load the data, too.

You really should learn to spell and/or make a habit of doing it
correctly. Writing "prg usin linkd list n files" is the Internet
equivalent of drooling and shouting slurred words loudly in public.

- --
- --Falcon Darkstar Kirtaran
- --
- --OpenPGP: (7902:4457) 9282:A431

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJbfPTAAoJEKmxP9YxEE4rlf8P/1g/56K73IFM+ko07LinEXTJ
YGVHfY+hFO9Urp1DPPXvrkOvFAUYGUNvV3oXSb+9calZhVXdYq/kDiu9Dl0ABcj3
QT/zmOfFaBBcCua09OeiV00xh6Ir+Gbk437wdtAlXFi3l+Q3SjUFCaD+/g0xOluA
ocTunFTGZhXqJElcOOxouc9HRX5BGPFTgu35L833Igq31vXWUPAe4LbsituSk3jt
HMABb+8dEg2ZKmBdZtygWL+kI5cs9CQZP7HLaB2NFu8tho8wPlkI+Gq28bOBD0HC
4F52f+VaqkYFHx+09d097/LFweCRHtW1jNuQ5XAsHjqktsLVM7CFWmYv7e9iIILS
+v52odV0EoT1P53oGbWmF589zPZ26Tx2IZDVrpaxQwwnN9U30Hx8HZOKenOSvqCB
PfRjKu5dp9hwCtvVX2U+VwBNqkTqqnxPYMOmh5jXG5bHAuga3VGEEsMiz6wljNmv
9Nr2i5NrbM0a7yJP23NAn2eiSXimwZ9s0+yAYwmgGc4Zhv1O+Ox6Rdm97V7gucyX
15ERh8mQH1GEt4iHNdf4xGU1DgHp8Hik3VaCN8TBQjiECEIWG9GjSJjUbMh/GWWd
3Qfi0bDJdysVxGonQ33+txDnLEq/ETkIjMUSqiu4jbftnofq84fmblx52gbMg9ub
euYjxB/I5Gp5qEfx0dxW
=ssZC
-----END PGP SIGNATURE-----
 
C

CBFalconer

plz help me out.hw can we transfer data from linked list to files
and files to linked list n how can v remov warning suspicious
pointer conversion

Usenet is not a cell phone texting. Do not use confusing and
easily mistaken abbreviations.
 
A

Antoninus Twink

plz help me out.hw can we transfer data from linked list to files and
files to linked list n how can v remov warning suspicious pointer
conversion

If you want to be able to move the files around to different systems,
this can be quite a tricky business - check out the Wikipedia article
<http://en.wikipedia.org/wiki/Serialization> for an introduction to some
of the issues involved.

If you're able to use a third-party library, you may find that
serialization is taken care of by the library. For example, the C++
Boost libraries have excellent support for serialization:
<http://www.boost.org/doc/libs/release/libs/serialization/>

If you get stuck, try posting a precise question, preferably with some
code!
 
G

Guest

plz help me out.hw can we transfer data from linked list to files and
files to linked list n how can v remov warning suspicious pointer
conversion

please post in standard english. Please post your code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top