Search:

Type: Posts; User: Jailan

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    27,122

    Ok so that didn't work and I'm really not sure of...

    Ok so that didn't work and I'm really not sure of anywhere else to go... Any other ideas of where it is wrong?
  2. Replies
    9
    Views
    27,122

    So I would need to use something like: ...

    So I would need to use something like:



    treeNode* newNode(int number)
    {
    /* dynamicaly allocate memory for a treeNode
    make sure it is initialised correctly
    */
  3. Replies
    9
    Views
    27,122

    We aren't allowed to change the structure of the...

    We aren't allowed to change the structure of the code, we can only make it work so I have to use the loop unfortunately.

    If I shifted the code around a little so that it was like below would that...
  4. Replies
    9
    Views
    27,122

    Hmm I changed that from != to == to stop the...

    Hmm I changed that from != to == to stop the inifite "0" output. So I guess I would need to think of another way to get around that then...
  5. Replies
    9
    Views
    27,122

    I've got another error in the code somewhere but...

    I've got another error in the code somewhere but I can't figure out where it is.

    At the moment when I run it I'm not getting any output, just a blank line.

    I'm not to sure what the error is...
  6. Replies
    9
    Views
    27,122

    Thats it. Thanks.

    Thats it. Thanks.
  7. Replies
    9
    Views
    27,122

    Initialization from incompatible pointer type

    Can anyone help with the below error, I'm not sure where I've gone wrong and why the pointer is wrong.

    tree.c: In function 'freeTree':
    tree.c:85: warning: initialization from incompatible pointer...
  8. Replies
    14
    Views
    2,109

    Thanks for your help it is working now. Thank you...

    Thanks for your help it is working now. Thank you both.
  9. Replies
    14
    Views
    2,109

    Sorry I missed the edit on the other post of...

    Sorry I missed the edit on the other post of zacs7.

    Thanks for your help I'm going to go back over it again now.

    Sorry for any trouble.
  10. Replies
    14
    Views
    2,109

    openFile(filename, mode); ? Sorry I'm a bit...

    openFile(filename, mode); ?

    Sorry I'm a bit slow at the moment
  11. Replies
    14
    Views
    2,109

    How would I call the openFile()? Just like below?...

    How would I call the openFile()? Just like below?



    int main(int argc, char *argv[])
    {

    if (argc != 2)
    {
    printf("Syntax : filecopy filefrom fileto");
  12. Replies
    14
    Views
    2,109

    I think so yeah. This is what I'm getting at the...

    I think so yeah. This is what I'm getting at the moment vs what I should be getting:



    Your test result

    Syntax : filecopy filefrom fileto

    Expected result
  13. Replies
    14
    Views
    2,109

    We aren't meant to completely restructure the...

    We aren't meant to completely restructure the code unfortunately so I can't change the way it writes and reads.
  14. Replies
    14
    Views
    2,109

    Outputting the code

    Hey I need some help with the below code, it is an excercise for school but I can't work out the last part. I've debugged it as far as I can tell but it is meant to output a copy of the code when run...
  15. Thread: Compile Error

    by Jailan
    Replies
    3
    Views
    1,318

    Brilliant! Thanks!

    Brilliant! Thanks!
  16. Thread: Compile Error

    by Jailan
    Replies
    3
    Views
    1,318

    Compile Error

    Does anyone know what this might be caused by?

    Undefined first referenced
    symbol in file
    main ...
  17. Thread: check digit

    by Jailan
    Replies
    30
    Views
    7,696

    Thanks heaps for your help mat! It is finally...

    Thanks heaps for your help mat! It is finally going ok! Sorry for all the trouble!
  18. Thread: check digit

    by Jailan
    Replies
    30
    Views
    7,696

    Oh ok I'll go put it back... Thanks.

    Oh ok I'll go put it back... Thanks.
  19. Thread: check digit

    by Jailan
    Replies
    30
    Views
    7,696

    ahhhh ok cheers! Now I'm getting "isb2.c",...

    ahhhh ok cheers!

    Now I'm getting

    "isb2.c", line 22: prototype mismatch: 0 args passed, 2 expected
    "isb2.c", line 46: prototype mismatch: 0 args passed, 1 expected

    I can't win!
  20. Thread: check digit

    by Jailan
    Replies
    30
    Views
    7,696

    Removed

    Removed
  21. Thread: check digit

    by Jailan
    Replies
    30
    Views
    7,696

    Ignoring the over complicated stuff cause I just...

    Ignoring the over complicated stuff cause I just want it to work at the moment then I'll play around with it looking better... I tried declaring the two functions at the start but just got the below...
  22. Thread: check digit

    by Jailan
    Replies
    30
    Views
    7,696

    Removed

    Removed
  23. Thread: check digit

    by Jailan
    Replies
    30
    Views
    7,696

    These are the errors I am getting back: ==>...

    These are the errors I am getting back:
    ==> Your program only contains the main function
    Your program must be split into appropriate functions

    ==> At least one function in your code must...
  24. Thread: check digit

    by Jailan
    Replies
    30
    Views
    7,696

    Thanks for your help I managed to nut it out...

    Thanks for your help I managed to nut it out after a while but I need some more help;

    I need to split it up into seperate functions but each time I try I get a whole bunch of errors no matter what...
  25. Thread: check digit

    by Jailan
    Replies
    30
    Views
    7,696

    I am trying to understand it I just can't get my...

    I am trying to understand it I just can't get my head around it sorry. I've never done any programming before this subject so it's a little tricky for me sorry.
Results 1 to 25 of 30
Page 1 of 2 1 2