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...
Type: Posts; User: kayra09
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...
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.
Here is my CODE:
int main(){
int numberoflines=0;
char findinglines;
FILE *tabloline;
tabloline=fopen("sporttable.txt","a");...
It worked!Thanks.
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...
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.
EDIT:You can't use strings,%x command and data structures.
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...
I have updated the post with more information about the question and rules.
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
...
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...