test to binary & binary to text

This is a discussion on test to binary & binary to text within the C Programming forums, part of the General Programming Boards category; Dear Friends. I am not experienced in C I need a small C script to convert test file to binary. ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    23

    test to binary & binary to text

    Dear Friends.

    I am not experienced in C
    I need a small C script to convert test file to binary. and inverse.
    I would be pleased if you could show a way of doing that.

    bests

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    >> I am not experienced in C

    How else do you gain experience but by practice?

    >> I need a small C script to convert test file to binary. and inverse.

    True. You will need some code to accomplish this.

    >> I would be pleased if you could show a way of doing that.

    Not nearly as much as we would be if you would do your own homework.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    23
    Be careful!
    I said I would be pleased if someone can show me a way of doing that. I did not ask any one to do my homework. I did my programming homeworks 15 years ago.

    I am not a student, and may be I will never work again with C.

    I need that for a simple thing, I never touch it again.
    I do not your lecture about the ethic of studentship.

    thanks

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,772
    Quote Originally Posted by wolfindark
    I am not a student, and may be I will never work again with C.

    I need that for a simple thing, I never touch it again.
    I do not your lecture about the ethic of studentship.
    I suggest that you hire a C programmer to write this program for you since it would be a waste of your time to learn enough C to write this program on your own.

    Better yet, you can search for free hex editing software (or a plugin for your favourite editor) and thus avoid the need to hire a programmer.

    *thread closed*
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 12:23 AM
  2. Converting Text to Binary (And Back)
    By Rune Hunter in forum C++ Programming
    Replies: 21
    Last Post: 08-24-2005, 10:17 PM
  3. Replies: 3
    Last Post: 05-25-2005, 01:50 PM
  4. coverting text t binary files
    By Wiz_Nil in forum C++ Programming
    Replies: 2
    Last Post: 03-21-2002, 08:32 AM
  5. text to binary in access?
    By breed in forum Windows Programming
    Replies: 0
    Last Post: 02-01-2002, 02:49 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21