Thanks, hopefully changing that will fix it. :)
Type: Posts; User: Nathalie
Thanks, hopefully changing that will fix it. :)
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....
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...
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...
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...
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)....
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++?
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...
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. :)
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...
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...
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...
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.
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...
Oh, sorry about that! :p Must be because it is late in the evening where I live.
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...
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...
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...
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...
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...
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.
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...
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! :)
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...