Thread: Conversion!!!

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    1

    Question Conversion!!!

    I'm new to C++ programming.....well not too new...I have a class on it and I just need to know how to convert the stuff (string) that you type into an edit box...into a character array so I can use it for searching to finish off my hangman game............i'll send it to ya after its done...and put ya in the about box.....plz help.....confused...and extra credit in calass......thnx.

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Well, since this *is* for extra credit...I'll let you figure it out yourself. There is a member function of the string class (two of them, I believe) that does just that. "So how does one find that out?", you say. Simple. Google for an STL reference guide and look at it. Voila. The credit is yours.
    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;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  3. Header File Question(s)
    By AQWst in forum C++ Programming
    Replies: 10
    Last Post: 12-23-2004, 11:31 PM
  4. Do I have a scanf problem?
    By AQWst in forum C Programming
    Replies: 2
    Last Post: 11-26-2004, 06:18 PM
  5. Creation of Menu problem
    By AQWst in forum C Programming
    Replies: 8
    Last Post: 11-24-2004, 09:44 PM