Search:

Type: Posts; User: Once-ler

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    942

    Yeah but it has to read any odd number and be...

    Yeah but it has to read any odd number and be able to know how to write the string accordingly.
  2. Replies
    12
    Views
    942

    64 bit unsigned integer is to be encoded to a...

    64 bit unsigned integer is to be encoded to a string
    binary
  3. Replies
    12
    Views
    942

    I am trying to read in a file encode every odd...

    I am trying to read in a file
    encode every odd number to a char[8](64 bit)
    and write it to another file
  4. Replies
    12
    Views
    942

    I need a better way to do this-

    At first I was going to have every number that started at the maximum value of every odd unsigned long long converting it into a char array up until the value was 0 or close to it. To do it with if...
  5. I am writing it out as you said. I am not a...

    I am writing it out as you said.
    I am not a trolling, I am merely a beginner trying to understand enough to write my program. I am currently reading/practicing Deitel C how to program and after that...
  6. my examples are wrong it should skip every 0-5...

    my examples are wrong it should skip every 0-5 except the unused ones at the left side of the array. Example 0,0,0,0,0,0,0,0,255 + 1 =0,0,0,0,0,0,1,6. The first 5 are reserved. There should never be...
  7. Sorry to have caused confusion. Thank you all for...

    Sorry to have caused confusion. Thank you all for helping me with this.
  8. Yes that is what I mean. I was simplifying...

    Yes that is what I mean. I was simplifying it(maybe it would be better to be verbose from now on).
  9. The rules for the program are this: it must...

    The rules for the program are this: it must translate for ull to a char array(ints are not permitted). example of it's change: 0,0,0,0,0,0,255,255, add one to it and it becomes 0,0,0,0,0,7,0,0 and...
  10. Then I have to make it to where it goes to the...

    Then I have to make it to where it goes to the next element in the char array.I just don't know how to start at like 7 in the array and keep adding and make it spill over so that 0,0,0,0,0,0,0,255 +1...
  11. so if I had a char array with 8 elements and it...

    so if I had a char array with 8 elements and it was 0,0,0,0,0,0,0,7 doing +1 would not change that 7 to an 8?
  12. I am not trying to use the address, I am...

    I am not trying to use the address, I am attempting to change the value itself in output.
  13. #include int main() { unsigned...

    #include<stdio.h>
    int main()
    {
    unsigned long long counter1 =18446744073709551615ULL;
    char output[8]={0,0,0,0,0,0,0,1};
    FILE *fp;
    fp=fopen("d:\\crypt.h", "w");
    ...
  14. It is not letting me post regular reply I need it...

    It is not letting me post regular reply I need it to so I can go advanced and use the code tags that work, if I just type them in it comes out garbled. It is also not letting me edit my post. When I...
  15. I will try to fix it.

    I will try to fix it.
  16. Why is it giving me this error, all I am doing is...

    Why is it giving me this error, all I am doing is changing output by adding one to whats already in there hoping that it would advance it.
  17. I changed it #include int main() {...

    I changed it

    #include<stdio.h>
    int main()
    {
    unsigned long long counter1 =18446744073709551615ULL;
    char output[8]={0,0,0,0,0,0,0,1};
    FILE *fp;
    fp=fopen("d:\\crypt.h",...
  18. Thank you. output +1 is supposed to advance to...

    Thank you.
    output +1 is supposed to advance to the next char in output it should be output=output+1
    on the line right before it ,output is printed or supposed to be
    so after it prints output then...
  19. #include int main() { unsigned...

    #include<stdio.h>
    int main()
    {
    unsigned long long counter1 =18446744073709551615;
    char output[8]={0,0,0,0,0,0,0,1};
    FILE *fp;
    fp=fopen("d:\\crypt.h", "w");
    ...
  20. your right I don't need counter2&1. output+1 is...

    your right I don't need counter2&1. output+1 is supposed to be incrementing the char array by one.
  21. the only warnings I am getting are:...

    the only warnings I am getting are:
    C:\Users\Ben\Documents\newheathe3.c||In function 'main':|
    C:\Users\Ben\Documents\newheathe3.c|4|warning: integer constant is so large that it is unsigned...
  22. I am using mingw with code::blocks. The code...

    I am using mingw with code::blocks.
    The code compiles without complaining but it does nothing when I run it except show the console.
  23. having trouble writing a program that generates source code

    #include<stdio.h>
    int main()
    {
    unsigned long long counter1 =18446744073709551615;
    char output[8]={0,0,0,0,0,0,0,0};
    FILE *fp;
    fp=fopen("d:\\crypt.h", "w");
    ...
  24. Still having the trouble of posting code. It...

    Still having the trouble of posting code. It garbles it whether I am using IE or FF
  25. Having trouble writing a program that writes...

    Having trouble writing a program that writes source code.
Results 1 to 25 of 150
Page 1 of 6 1 2 3 4