I can't separate 8 bits the encryption code given in option 2.
Can someone help me about this problem.I have provided the necesaary information below.
I can't separate 8 bits the encryption code given in option 2.
Can someone help me about this problem.I have provided the necesaary information below.
Last edited by cansas28; 03-02-2020 at 04:02 PM.
I have write like this Ubuntu Pastebin for just option 2 and it doesn't work.
Code:else if(options==2){ int base,sayi,a,i; printf("You have chosen option 2!\n"); printf("Which base will you use to enter text (base 16/2)?"); scanf("%d",&base); fflush(stdin); if(base==2){ char x; int num=2,i=0,sb,str=0; printf("Please enter the text to encrypt:"); scanf("%c",&x); while(x!=10) { if(x==48) { num*=10; } else if(x==49) { num=num*10+1; } scanf("%c",&x); } printf("\n--%d",num);
Last edited by Salem; 03-02-2020 at 11:40 PM. Reason: inlined code from expiring external site
Maybe you could try posting less fuzzy images.
Ones without massive useless grey borders would be helpful.
Also your 'friend' with the same question.
My code does not work properly. I need help.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.