Search:

Type: Posts; User: kayra09

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    3,603

    My code does not work properly. I need help.

    Hi, My code does an xor operation for each 8 bits and stores the value in an integer variable. I get the text in char by using a while loop then I do the xor operation inside the loop for each 8 bits...
  2. Yea I see my mistake now.When I used "r" instead...

    Yea I see my mistake now.When I used "r" instead of "a" it kinda worked I guess.I'm getting 5 lines instead of 6.
  3. Why My Code Does not Count The Number Of Lines in the txt file

    Here is my CODE:

    int main(){
    int numberoflines=0;
    char findinglines;
    FILE *tabloline;
    tabloline=fopen("sporttable.txt","a");...
  4. It worked!Thanks.

    It worked!Thanks.
  5. Rand() function in another function gives the same value.(FIXED)

    So I started to write a Yahtzee game for my assignment and I need to make a function that roles a dice from 1 to 6.When I use the rolladice function that I made It never changes it gives the same...
  6. Replies
    5
    Views
    5,127

    When I use their ASCII values I get the wrong...

    When I use their ASCII values I get the wrong hexadecimal value.For example: ASCII value of 'A' is 65 when I put 65 to converter I get 41 but hex value of 'A' is 10.
  7. Replies
    5
    Views
    5,127

    EDIT:You can't use strings,%x command and data...

    EDIT:You can't use strings,%x command and data structures.
  8. Replies
    5
    Views
    5,127

    How can I convert char value to hexadecimal

    I'm trying to find the hexadecimal value of the base 16 ip address.
    For example I used this code to input base 16 IP address:

    char ipc11,ipc12,ipc21,ipc22,ipc31,ipc32,ipc41,ipc42;
    printf("Please...
  9. Replies
    5
    Views
    6,666

    I have updated the post with more information...

    I have updated the post with more information about the question and rules.
  10. Replies
    5
    Views
    6,666

    Here is the hard copy paste of the question....

    Here is the hard copy paste of the question.
    Hope it makes sense now this is my first year in computer science program.We only learned about the basic math operations,if else statements and loops
    ...
  11. Replies
    5
    Views
    6,666

    How to input 16 base IP adress

    Hi,how can input base a 16 ip address and check it if it is correct?
    Any helps and tips are appreciated.

    Note:
    You can't use data structures and define your own functions.
    In Base 16...
Results 1 to 11 of 11