Thanks for that. I think i got confused because there are some where you have to put like a '%' or '\' and I had a look at those just before that. So no comments on the printout from the lecture...
Type: Posts; User: Yourhighness
Thanks for that. I think i got confused because there are some where you have to put like a '%' or '\' and I had a look at those just before that. So no comments on the printout from the lecture...
Hey guys,
just trying to remember what the ' | ' does in relation to using printf.
Eg:
printf( "|%15d|", somevariable );
I know I could probably write a program, but that shows me what it does...
Ta for that. Never came across a message like that. How do i get it to be in cygwin then. Sorry I meant as a console application. Because I used the normal 'gcc' command.
But Ta for that.
Johannes
Thanks for that. I should have realised that one, now that you pointed it out. The Time TIME etc gets to me. I ll have a go at it straight away.
Ta,
Johannes
- I did the changes, but it still...
Hey guys, I had a crack at the file and got most of the 'errors' out. There are still some warnings tho.
I dont quite understand the last warning but. Here the struct related to the warning:...
Sorry, Boats and Operations and their like are #defines in 'regatta.h' - for 'boats.dat' and 'operations.dat' where the former contains the boats number, name, and boat type; and the latter the kind...
Hey guys,
I am trying to get part of my assignment to work and I once again get the above mentioned error message. I just cant see what it is complaining about. I am still a bit on thin ice in this...
Do you know why it gives me those errors? I dont see where it could get them from. I have put the function prototypes back into the main .c program and changed a few things with the return types as I...
Thanks for that. I always muck up that strcpy syntax. Alos I just found an example that I could go something like this:
strcpy( someptr->ptrBoatType, ptrBoatType );
is that possible in this...
Hey guys,
I am trying to get a grasp on using the '->' notation which I think, I slowly do understand. However, in the CheckString function, where I am trying to assign three different things to...
Thanks for that. What I meant with putting the 'struct' infront of it is when I have defined it once before. But thanks a lot I think I finally understood what this is all about, Johannes.
> The red Boat is the structure tag name, which allows you to
> create a variable using this notation
> struct Boat ferry;
so does that mean I create a struct of type Boat which I called ferry?...
I sorted out the header problems. I had not included the 'tags'? for some of the typedefs, also some typo within the structs. I am still a bit shaky on the struct and typedef combination. Is it right...
That was exactly my problems. Those types have been given to us by our lecturer for the last assignments. We are to create a master file containing data for boats of different classes and then use...
Yeah I know. I havent had a chance to correct that problem yet. The file I attached was the original one that caused the errors. I ll get the changes done asap and see how I go. Appreciate the help....
here s a few of the errors for the header file:
regatta.h:16: parse error before `;'
regatta.h:21: parse error before `Name'
regatta.h:21: warning: no semicolon at end of struct or union...
thanks for that. the 'strcut' was a typo. I can see what you mean but. Could the ';' have cuased a fair few compiler errors? because I had like a long list for my header file?
Thanks,Johannes
Hey guys, another question that someone might know. I have to read a line containing three string sets needed for data of my program. However, the different strings are seperated by different amounts...
Hey guys. Does anyone know how to use typedefs with structs, where they are held in a header file for use in a multi-file linked list project?
I am having trouble getting my head around it as the...
Dear Salem,
I have not been able to quite finish the second part of the assignment but have submitted it anyway. I really appreciate all your help and will try to finish it off in spare time anyway....
Other than that you could probably do it the complicated way and have a fgets() for the different types you are using.
Cheers,
Johannes
Thanks for that. I was just about to post my code again. I had it so it would actually sorta do it but not. I will have a look at your file in a second. Now out of curriosity, How come my file writes...
Yeah that with the char [] is what my lecturer says too. But would it work with malloc in the while, or is it a better idea to go off an change all my ptrstr s to char[]?
Also I dont quite see what...
I just compiled and ran my part 2 of the assignment, where the uncompression is supposed to take place. It is compiling and runing but if you view the created text file, it has done absolutely...
One of my lecturers who s also teaching C, said that I am loosing oldptrstr at some point and that I have to updated it. I am just not sure exactly where and how. I played around with it this...