Search:

Type: Posts; User: Nathalie

Search: Search took 0.01 seconds.

  1. Thread: Binary tree

    by Nathalie
    Replies
    3
    Views
    1,225

    Thanks, hopefully changing that will fix it. :)

    Thanks, hopefully changing that will fix it. :)
  2. Thread: Binary tree

    by Nathalie
    Replies
    3
    Views
    1,225

    Binary tree

    Hello everyone, again trying to help a friend who wrote this code to make a binary tree. It should then show the biggest and smallest number in the tree then delete them and show the last content....
  3. Replies
    9
    Views
    3,010

    In hexadecimal, numbers for 10 -> 16 are replaced...

    In hexadecimal, numbers for 10 -> 16 are replaced by letters, which is what I am trying to achieve after using omnificient's corrected code and declaring charresult1 and charresult2 as char...
  4. Replies
    9
    Views
    3,010

    Yup this works, thanks! :) Now trying to...

    Yup this works, thanks! :)

    Now trying to convert them to letters, but you can't put those in integers so I made chars instead. However I think you need to use pointers for this (as it says invalid...
  5. Replies
    9
    Views
    3,010

    Decimal to hexadecimal conversion

    I am trying to convert a decimal number (max. 255 / 8 bits) to hexadecimal and binary form. For now only tried to run the hexadecimal one, but somehow it keeps crashing without any information after...
  6. Replies
    60
    Views
    6,456

    Thanks to all of you for your efforts! :)...

    Thanks to all of you for your efforts! :) Eventually we got it to work with this code, which doesn't contain any C++. (The words are in Turkish now though, don't ask. :p I believe us is power)....
  7. Replies
    60
    Views
    6,456

    Thanks a lot for writing down the full code. :)...

    Thanks a lot for writing down the full code. :) However I had my friend try it and it gives errors. Could it be that it contains C++?
  8. Replies
    60
    Views
    6,456

    Okay, we've been trying to make it work with...

    Okay, we've been trying to make it work with negative powers for awhile now but still no success. However maybe it is something in the right direction and you can give a hint after looking at the...
  9. Replies
    60
    Views
    6,456

    Thanks for noting that, however this doesn't...

    Thanks for noting that, however this doesn't change anything to the negative powers. If you could go into that briefly, it'd be nice. :)
  10. Replies
    60
    Views
    6,456

    Now the program works for anything but negative...

    Now the program works for anything but negative power numbers. To change them, as you said, you probably need an if-structure or so? Would it be possible to write it down? I'm not really sure where...
  11. Replies
    60
    Views
    6,456

    Thanks razorlight, you are right about that. Now...

    Thanks razorlight, you are right about that. Now the code doesn't give any errors, but the result still isn't correct. Also, we need a code that works for negative numbers as well. Any help would be...
  12. Replies
    60
    Views
    6,456

    We got the compiler to work, but are now stuck...

    We got the compiler to work, but are now stuck with the powers program. We need a program that calculates a^b when a and b are given (and they can be both positive and negative). The code we have so...
  13. Replies
    60
    Views
    6,456

    I did so, unfortunately still getting the same...

    I did so, unfortunately still getting the same error. :( Maybe I need to reboot or so? I will go to bed soon anyway, so I can check that in the morning.
  14. Replies
    60
    Views
    6,456

    Thanks! :) I'll report back whether it worked,...

    Thanks! :) I'll report back whether it worked, probably tomorrow or so. As for Vista, these are the environment variables (my PC is in Dutch, though). I am not sure what to do with them however. :p...
  15. Replies
    60
    Views
    6,456

    Oh, sorry about that! :p Must be because it is...

    Oh, sorry about that! :p Must be because it is late in the evening where I live.
  16. Replies
    60
    Views
    6,456

    Oh, I didn't know about the paths, that must be...

    Oh, I didn't know about the paths, that must be the reason. Personally I use Windows Vista, but my friend has Windows XP. Perhaps it is easier to make it work on that? In the end I just wanted to...
  17. Replies
    60
    Views
    6,456

    Hard to follow a bit, but thanks anyway. :p...

    Hard to follow a bit, but thanks anyway. :p Although I have another small problem, which is that for some reason whatever C Compiler I use, it refuses to build or compile anything. I downloaded and...
  18. Replies
    60
    Views
    6,456

    Okay, thanks for explaining once again! :) One...

    Okay, thanks for explaining once again! :) One tiny question more: how do you print the result of the a^b thing?

    ETA: dwks, that means I have to replace every “%d” by some other text? What kind...
  19. Replies
    60
    Views
    6,456

    Yes, it does break after each case, that's why I...

    Yes, it does break after each case, that's why I wasn't sure. I think I get the code. :) vowels ++ means it will add +1 to the vowels integer, it seems? And can I use something similar to your code...
  20. Replies
    60
    Views
    6,456

    Oh, okay. Better to check them separately I think...

    Oh, okay. Better to check them separately I think because I wouldn't know how to write that function. :D As I said I have no knowledge of C.

    But if you write:



    case 'A':
    case 'E':
    case...
  21. Replies
    60
    Views
    6,456

    Yes, a loop may be a better idea, although using...

    Yes, a loop may be a better idea, although using switch.case was asked for in the assignment. Thank you for writing it down! :) I hope we can get it to work with this, thank you for your time.
  22. Replies
    60
    Views
    6,456

    Thank you for explaining that, Abda92. :)...

    Thank you for explaining that, Abda92. :) Unfortunately our knowledge is very limited. For example the switch case, you can enter "Case: a" for the first vowel, right? But what kind of statement...
  23. Replies
    60
    Views
    6,456

    I am sure that what I said is what is needed, and...

    I am sure that what I said is what is needed, and I will give him the link to this topic if there is anything that could be useful. :) I understand your concern, but don't worry! :)
  24. Replies
    60
    Views
    6,456

    Some basic things

    I want to help a friend of mine who just started learning programming in C, but has problems catching up because he doesn't have any previous knowledge of it. I myself know vb.NET but never...
Results 1 to 24 of 24