I wrote this simple code, to print the char wich it's binary value is assigned in the "bits" integer:
#include<stdio.h>
int main()
{
int bits=01001101;
putchar(bits);
...
Type: Posts; User: v01d
I wrote this simple code, to print the char wich it's binary value is assigned in the "bits" integer:
#include<stdio.h>
int main()
{
int bits=01001101;
putchar(bits);
...
THANKS MAN!
it was that !:D
Hi
Im working with dev c++ and until now Ive been writing programs in C, and compiling them without any problems in DevCPP
the problem is that when i write code in C++ , Dev C++ wont compile it....
Thanks for enlightenment Dave :)
the code realy works when run in binary mode...
no problem :)
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include <ctype.h>
int main()
{
FILE *dst ,*src;
int ch,ch2;
I changed the code so now the promotion and substrucion of chars is done only if the char is printble. ( using isprint() )
that solved many problems including the bug in my first post.
but,...
Ive wrote a very simple pogram that encrypts a .txt file by reading every char in it , promoting it by 1, and then putting the result in a new .txt file .
then the prog reads the "encrypted...