Search:

Type: Posts; User: v01d

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,192

    little ptoblem with chars

    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);
    ...
  2. Replies
    3
    Views
    10,727

    THANKS MAN! it was that !:D

    THANKS MAN!
    it was that !:D
  3. Replies
    3
    Views
    10,727

    Programming With Dev C++

    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....
  4. Replies
    12
    Views
    2,000

    Thanks for enlightenment Dave :) the code realy...

    Thanks for enlightenment Dave :)
    the code realy works when run in binary mode...
  5. Replies
    12
    Views
    2,000

    no problem :) #include...

    no problem :)

    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    #include <ctype.h>
    int main()
    {
    FILE *dst ,*src;
    int ch,ch2;
  6. Replies
    12
    Views
    2,000

    ok,

    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,...
  7. Replies
    12
    Views
    2,000

    EOF appears not on end of file?!

    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...
Results 1 to 7 of 7