Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Vlad farted

Name: Anonymous 2011-03-17 17:35

Thread over

Name: Anonymous 2011-03-17 17:42

Prelude> :t exceptions
exceptions :: Bool
Prelude> exceptions
False

Name: Anonymous 2011-03-17 19:00

Name: Anonymous 2011-03-17 21:17

>>2
Prelude> exceptions :: Bool
Fa*** Exception: stack overflow

Name: Anonymous 2011-03-17 22:23

>>4
Prelude> exceptions :: Bool
Fa*** Exception: stack ov*** Exception: no exceptions

Name: Anonymous 2011-03-18 7:28

>>1
I thought vlad was the language.
Would it not be stalingrad doing the farting?
IHBT

Name: Anonymous 2011-03-18 11:38

'-._

Name: Anonymous 2011-03-18 15:19

_.-'`

Name: Qt / C++ / UNICODE 2011-03-18 19:02

When i run this:
QString Converter::Etruscan(int input)
{
        const QChar etruscan[5] = { 'Ж', '↑', 'X', 'Λ', 'I' };

        const int decimal[5] =  {  100,  50,   10,    5,   1    };

        QString romanvalue = "";
        for (int i = 0; i < 5; i++)
        {
                while (input >= decimal[i])
                {
                        input -= decimal[i];
                        romanvalue += etruscan[i];
                }
        }

        return romanvalue;
};

This line:
>etruscan[5] = { 'Ж', '↑', 'X', 'Λ', 'I' };

Is read in as if it was this line:
>etruscan[5] = { '?', '?', 'X', '?', 'I' };

Why can't it store and print unicode characters?

Name: Anonymous 2011-03-18 19:31

>>9
Because you're an idiot, and C++ doesn't read input files as unicode.

Name: Anonymous 2011-03-18 19:36

>>10
So should i be putting (U+2150) type of thing somewhere?

Please explain, i don't mind being an idiot now if i can learn.

Name: Anonymous 2011-03-18 21:19

>>11
It'd be something like '\x21\x50'

Name: Anonymous 2011-03-20 17:43

>>12
ASCII doesn't support ancient characters.

Name: VIPPER 2011-03-20 17:51

>>9
Please, next time when posting code, jam your thumb up my anus and like it afterwords.

Don't change these.
Name: Email:
Entire Thread Thread List