Search:

Type: Posts; User: fiendslyr

Search: Search took 0.00 seconds.

  1. Thread: Masking

    by fiendslyr
    Replies
    11
    Views
    2,126

    Thank you so much Subsonics, that really helped...

    Thank you so much Subsonics, that really helped me understand. I wasn't even thinking about right shift. It completely slipped my mind. Thanks to everyone else too. I will probably be back in a...
  2. Thread: Masking

    by fiendslyr
    Replies
    11
    Views
    2,126

    The user just inputs a passphrase, for example...

    The user just inputs a passphrase, for example foobar and I have begin with masking it. First I have to isolate the 15th bit and check if its 1. Then I isolate the 14th bit and check if that is 1. I...
  3. Thread: Masking

    by fiendslyr
    Replies
    11
    Views
    2,126

    correction: I actually have to mask the...

    correction: I actually have to mask the passphrase the user has inputted not the actual character. however, I would still appreciate help on how to mask. For example, I have to turn off all bits in...
  4. Thread: Masking

    by fiendslyr
    Replies
    11
    Views
    2,126

    Masking

    I am writing a function for a program that encrypts and decrypts a file. For encryption, I have to read a character from a file and check if bit 15 is a 1. If it is, its printed to one file. If its...
  5. Replies
    0
    Views
    1,273

    Street program

    delete
  6. Thread: Program help

    by fiendslyr
    Replies
    12
    Views
    1,384

    alright, I have been able to get the nibble...

    alright, I have been able to get the nibble values. I was thinking of writing a function to test the nibble values against the input value. something like


    testnibble(number, nibble, value)
    ...
  7. Thread: Program help

    by fiendslyr
    Replies
    12
    Views
    1,384

    alright, thank you so much. I understand the...

    alright, thank you so much. I understand the masking and it is working on my program right now. Now i have to do that for all the nibbles in the value and then check to see if it matches the user...
  8. Thread: Program help

    by fiendslyr
    Replies
    12
    Views
    1,384

    well I kind of know how to get the nibble values....

    well I kind of know how to get the nibble values. I am still confused on it though. The whole masking thing is still strange to me. Am I correct to use the & operator to mask? If so, how would I go...
  9. Thread: Program help

    by fiendslyr
    Replies
    12
    Views
    1,384

    oh, ok. Understood. But how do I get the program...

    oh, ok. Understood. But how do I get the program to check nibble values? Is this where I would have to mask the items in the file so the program can check and compare each nibble value with the user...
  10. Thread: Program help

    by fiendslyr
    Replies
    12
    Views
    1,384

    I'm not following you. I'm slightly confused. I...

    I'm not following you. I'm slightly confused. I would use the & operator to mask the bits. But what would I use == for?
  11. Thread: Program help

    by fiendslyr
    Replies
    12
    Views
    1,384

    I know how to do that, using the &. However, I do...

    I know how to do that, using the &. However, I do not know how to check for the same value as the input and find the matches.
  12. Thread: Program help

    by fiendslyr
    Replies
    12
    Views
    1,384

    Program help

    I am to write a program that opens a file (input.txt) that contains unsigned values. The program has to ask the user for a couple of commands. The first command is "f <value>". This will mean that...
  13. Replies
    22
    Views
    2,138

    Thank you for those tips. For some reason though,...

    Thank you for those tips. For some reason though, my code didn't like to display unless i used the flushes. Also, thanks for the switch tip, I completely forgot about that. I'll redo the code to do...
  14. Replies
    22
    Views
    2,138

    /* * minicalc.c * * Created on: Sep 13,...

    /*
    * minicalc.c
    *
    * Created on: Sep 13, 2009
    * Author: Varin
    */

    #include<stdio.h>
    #include<stdlib.h>
    int main()
  15. Replies
    22
    Views
    2,138

    fflush made it work. thank you so much. now i can...

    fflush made it work. thank you so much. now i can move to the rest of the program.
  16. Replies
    22
    Views
    2,138

    yes i did. #include...

    yes i did.


    #include<stdio.h>
    #include<stdlib.h>
    int main()
    {
    //declared variables for choices, result, and inputed numbers
    char operation;
    double operand1;
  17. Replies
    22
    Views
    2,138

    All the code is correct and I am rebuilding each...

    All the code is correct and I am rebuilding each time and there are no other running instances. It seems that for me to get the program to actually start, I have to press enter.
  18. Replies
    22
    Views
    2,138

    thanks. yea, i figured out that it was still...

    thanks. yea, i figured out that it was still running.


    #include<stdio.h>
    #include<stdlib.h>
    int main(void)
    {
    //declared variables for choices, result, and inputed numbers
    char operation;...
  19. Replies
    22
    Views
    2,138

    ok, at this point, i tried to compile it and it...

    ok, at this point, i tried to compile it and it gave a build error in eclipse. "file minicalc.exe: Permission denied" why would it give me that error? i tried deleting it and creating a new one and...
  20. Replies
    22
    Views
    2,138

    #include #include int main()...

    #include<stdio.h>
    #include<stdlib.h>
    int main()
    {

    printf("Enter the operation of your choice:\n"
    "a. add s. substraction\n"
    "m. multiply d. divide\n"
    "q. quit"); /*displays...
  21. Replies
    22
    Views
    2,138

    Help need in program

    I am trying to create a program, in c, that will do that following:

    It displays "Enter the operation of your choice: a. add s. subtract m. multiply d. divide q. quit"

    It asks for the input from...
Results 1 to 21 of 21