Search:

Type: Posts; User: Yourhighness

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,938

    Thanks for that. I think i got confused because...

    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...
  2. Replies
    1
    Views
    2,938

    What does the " |%15d| " do again?

    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...
  3. Replies
    6
    Views
    5,871

    Ta for that. Never came across a message like...

    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
  4. Replies
    6
    Views
    5,871

    Thanks for that. I should have realised that one,...

    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...
  5. Replies
    6
    Views
    5,871

    Hey guys, I had a crack at the file and got most...

    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:...
  6. Replies
    6
    Views
    5,871

    Sorry, Boats and Operations and their like are...

    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...
  7. Replies
    6
    Views
    5,871

    parse error before `char'

    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...
  8. function CreateMaster redeclared?

    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...
  9. Thanks for that. I always muck up that strcpy...

    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...
  10. problem with -> notation and using a "general" header file

    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...
  11. Replies
    9
    Views
    2,078

    Thanks for that. What I meant with putting the...

    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.
  12. Replies
    9
    Views
    2,078

    > The red Boat is the structure tag name, which...

    > 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?...
  13. Replies
    9
    Views
    2,078

    I sorted out the header problems. I had not...

    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...
  14. Replies
    9
    Views
    2,078

    typedef definitions and their structs

    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...
  15. Replies
    9
    Views
    2,078

    Yeah I know. I havent had a chance to correct...

    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....
  16. Replies
    9
    Views
    2,078

    here s a few of the errors for the header file: ...

    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...
  17. Replies
    9
    Views
    2,078

    thanks for that. the 'strcut' was a typo. I can...

    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
  18. read string with fgets followed by another string needed to read

    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...
  19. Replies
    9
    Views
    2,078

    how to use typedefs with structs?

    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...
  20. Replies
    15
    Views
    2,203

    Thanks

    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....
  21. Replies
    4
    Views
    1,618

    Other than that you could probably do it the...

    Other than that you could probably do it the complicated way and have a fgets() for the different types you are using.
    Cheers,
    Johannes
  22. Replies
    15
    Views
    2,203

    Thanks for that. I was just about to post my code...

    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...
  23. Replies
    15
    Views
    2,203

    Yeah that with the char [] is what my lecturer...

    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...
  24. Replies
    15
    Views
    2,203

    uncomp.c works but doesnt do anything?

    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...
  25. Replies
    15
    Views
    2,203

    One of my lecturers who s also teaching C, said...

    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...
Results 1 to 25 of 38
Page 1 of 2 1 2