Many thanks brewbuck,
I assumed there would be a simple solution to this
Type: Posts; User: katipo
Many thanks brewbuck,
I assumed there would be a simple solution to this
Hi all,
I'm trying to further my knowledge of C by linking some of my class work together so I get a better understanding of building more complete programs.
At the moment I've got two small...
Thanks again Adak, I won't use your code for my work (it's for a school project - and I've now got it 90% completed) but I'll def. have a play with it at home and get my head around it
Cheers...
Ok I worked out the problem, I don't need the single speech marks around the case '1':
I think I'll go for MK27's solution - It's the only one I completly understand at the moment :)
Edit:
Ok I've made a start with the following code:
{
while (fscanf(rawdat, "%c %d %d...
I've included all my code so far, I started out setting out my field then when that was looking fine commenting it out. You've lost me Adak, I think I've seen working on this too long without coffee,...
Hi itCbitC,
Thanks for you reply, I had to google "linked list of nodes" as it was beyond the scope of the course work I am using. I couldn't find any decent tutorials on how to go about this. Do...
Hi all,
The problem I have got is a file which has a set of date like this:
F 26 5
F 64 4
F 29 2
M 12 3
M 40 1
F 38 4
Thanks Adak,
I altered the line:
while (fscanf(rawdat, "%c %d %d", &sex, &age, &range) != EOF)
to:
while (fscanf(rawdat, "%c %d %d &c", &sex, &age, &range, &newline) != EOF)
Hi all,
I'm trying to pull data from a .dat file which is arranged like this:
F 26 5
F 64 4
F 29 2
M 12 3
M 40 1