User Profile

Collapse

Profile Sidebar

Collapse
Bigshot
Bigshot
Last Activity: Aug 7 '07, 07:00 AM
Joined: May 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Bigshot
    replied to reading in file in C and storing the data
    in C
    I don't have time to learn how to use the debugger in Pelles C hence I post on a forum for quick answers.

    Im having problems assigning values to linkCosts and printing out a full table of linkCosts...

    So the problem areas are:
    Code:
    linkCosts[h][l] = linkCost;
    			linkCosts[l][h] = linkCost;

    Code:
    	for (k=0; k<7; k++)
    		{
    for (j=0; j<7; j++)
    			printf("\t%d",
    ...
    See more | Go to post

    Leave a comment:


  • Bigshot
    replied to reading in file in C and storing the data
    in C
    no never used a debugger, using Pelles C.
    See more | Go to post

    Leave a comment:


  • Bigshot
    started a topic reading in file in C and storing the data
    in C

    reading in file in C and storing the data

    Following on from my "Multidimension al arrays in C" post, I wanted to get some more specific help to see what I am doing wrong. My program is supposed to read in a network topology file and create a graph of the link costs. The entire file looks like this:
    host NewPlymouth{
    x=50, y=280
    link to Wellington { costperframe = 2 }
    link to Hamilton { costperframe = 1 }
    }
    host Hamilton {...
    See more | Go to post

  • Bigshot
    replied to Multidimensional arrays in C
    in C
    okay well thanks for the help, but I'm still not getting where I wanted, I'll start a new thread and post my code in there to maybe get some more specific help.
    See more | Go to post

    Leave a comment:


  • Bigshot
    started a topic Multidimensional arrays in C
    in C

    Multidimensional arrays in C

    Im trying to scan a file using fscanf and want to put the results in a multidimensiona l array (since C has no strings I need it to store names).

    Basically I want to be able to have a multidimensiona l array of names that were scanned in order that the file had and be able to access each one by using array[1] for example, to output one of the names.

    Im very bad at multidimensiona l array syntax so am asking for help, I...
    See more | Go to post
No activity results to display
Show More
Working...