Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 20th August 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
Join Date: Apr 2008
Location: pwd
Posts: 283
Default C and file input/output

Not sure if uni work's assistance is allowed here, pls advise me if itsnt. Anyway, Im studying C and atm, I have problem dealing with file input/output. Have been trying hard to work out, but no luck so far

Im given a file with the format like this:

A, 1, B
B, 3, D, E, F
C, 1, D
D, 1, F
And here is the diagram:

So, basically it can be interpreted like this:

A depends on 1 other class : B
B depends on 3 other classes: D, E, F

Im thinking about struct and array, but not sure if its the right method. Also, I have no idea how to read the file and write to memory with such format.

Can you give me a hint on it? I appreciate any input

Last edited by 18Googol2; 20th August 2008 at 07:34 AM.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP read file contents - Maximum file size cksraj Programming 1 21st September 2009 11:38 AM
Input foreign characters under X11 Beastie General software and network 5 30th August 2009 11:51 AM
Running a command with input from a file. bigb89 Programming 4 21st January 2009 06:36 PM
shell script with input c0mrade Programming 5 13th July 2008 04:33 AM
xkb multibyte characters input problem gosha General software and network 8 13th June 2008 12:13 AM

All times are GMT. The time now is 04:31 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick