yeah, but why does that mean more power?
Type: Posts; User: kbat82
yeah, but why does that mean more power?
lol, I guess I learned a valuable lesson here :p
Mario, have you been here:
I love Portugal, I was there this summer. I went to Lisboa then took a bus to Oporto.
well, it's a start...they look correct haha. Check the library and/or bookstore.
try randomly messaging people from the netherlands on some random social networking site haha.
I have a friend...
the best i can do is: click here!
class void_main
best joke name i could think of at this hour.
Yea, it wasn't so difficult I suppose. I made it general for any base, but I don't know how all the number systems actually work. I guess as long as they follow the same rules as hex then this would...
Well, I have base 2, but it's 2am so I'll work on base 3 tomorrow :p
void to_binary(unsigned long num, int base) {
/* recursive function */
int remainder;
remainder = num % 2;
Is it possible to have one algorithm to convert to any base (at least 2-12) starting from base 10, or will i need a separate one for each base?
learn C!!
it all depends on what you want to do though. Which is what??
anyway, I am learning c right now using this book:
...
yatta! it only took me FOREVER, but I figured it out all on my own. isn't it a proud feeling? Using a function made it so much easier. Any advice?
//8:Redo exercise 7, but this time use a...
can't seem to grasp this. maybe I could use a pointer for the count variable?
//8:Redo exercise 7, but this time use a recursive function.
#include<stdio.h>
double power(double n, int p);
really makes my brain sore!
haha Dino, I don't think he read it.
But you don't have to do it the way MK27 wrote. Handing in an assignment using stuff that hasn't been covered in class might hurt your score(Ask the instructor). You can do this assignment other...
printf("Birth Of Date:\n");
Shouldn't it be Date of birth? :p
Have you learned about arrays in class yet? That's what youre missing.
haha
I think he wants you to write the code that provides the output given.
Edit: patzjerk, read up on 'for loops', if statements, printf and scanf.
thanks, but whew...too advanced for me at this point. Hopefully I will understand all that in a couple of months.
I have this assignment:
I was wondering which method of the two below is preferred (red or green). They both tested fine, but is one better than the other? Would one be faster than the other,...
I think you are right. It's not for a class, so I dont have to worry about marks. fgets() is chapter 13 and im on chapter 7, so I think this would be good enough for what I know. It asks me to redo...
i will try a different approach and post again later.
or maybe not, but it's a step in the right direction lol
i guess 6.3 would still be an even number huh...damn
I think this pretty much fixes everything :)
#include<ctype.h>
#define EVEN 2
int main(void) {
float num;
int even, odd;
float even_avg, odd_avg;
even = even_avg = odd =...
ah, so the .5 isnt even processed until the next time around. the 6 makes it through the loop. I didn't know it did that!
Can I assume you don't use windows then?
So it just truncates the number and breaks from the loop.I guess I need another way to figure out if the number is even or odd than using %.
What did...