Permuted Index Help

This is a discussion on Permuted Index Help within the C++ Programming forums, part of the General Programming Boards category; So with help, I was able to produce Code: brown fox The quick fox The quick brown quick brown fox ...

  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    110

    Permuted Index Help

    So with help, I was able to produce

    Code:
    brown fox The quick       
    fox The quick brown       
    quick brown fox The     
    The quick brown fox

    Refer to this for my coding to produce the result...
    http://cboard.cprogramming.com/cplus...-my-error.html

    However from reading this

    Rethinking How to Teach C++Part 7: Payback time -- Application Development Trends

    I haven't read the whole thing by the way, as I skimmed it to see some coding which most likely is the answer. I really want to understand it.

    Somehow I am suppose to take my result and turn it to
    Code:
                    The quick    brown fox
       The quick brown    fox
                                 The     quick brown fox
                                              The quick brown fox
    EDIT: It does not display properly when I type it in...Please go to the website to see what I mean...

    I don't get how the spacing works. Can someone explain it to me?

  2. #2
    Registered User
    Join Date
    Nov 2008
    Posts
    110
    bump

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Don't bump threads.
    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. What's a permuted index?
    By dnguyen1022 in forum C++ Programming
    Replies: 4
    Last Post: 01-28-2009, 03:55 AM
  2. 20q game problems
    By Nexus-ZERO in forum C Programming
    Replies: 24
    Last Post: 12-17-2008, 05:48 PM
  3. Function to check memory left from malloc and free?
    By Lechx in forum C Programming
    Replies: 4
    Last Post: 04-24-2006, 06:45 AM
  4. file index update error
    By daluu in forum C Programming
    Replies: 1
    Last Post: 04-28-2003, 03:47 AM
  5. What is a permuted index?
    By Clyde in forum C++ Programming
    Replies: 2
    Last Post: 04-12-2002, 12:52 PM

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