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

WTF

Name: Anonymous 2008-10-07 12:46

Hey /prog/ can anyone tell me what the hell is going on in this program?

#include <iostream>
using namespace std;

void fun (int data);
void mystery(int data);
void main( )
{
    int data;
    bool start =true;
   
    cout<<"Please enter an integer value : ";
    cin>>data;
    fun(data);
    mystery(data);
   
   
}

void fun(int count)
{
    char index = count;
    while(index >= 0)
    {
        cout<<index;
        index--;
    }
}

void mystery(int count)
{
    char index = count;
    while(index<count)
    {
        cout<<count;
        index++;
    }
}

Name: Anonymous 2008-10-10 11:56

>>27
I don't have to look at that section, I know you're wrong.
But whatever, let's see.
Well, no 6.2.5.8 section.
Perhaps you meant 6.2.5 verse 8.
Very well,

For any two integer types with the same signedness and different integer conversion rank
(see 6.3.1.1), the range of values of the type with smaller integer conversion rank is a
subrange of the values of the other type.

Now, I'm curious, how do you interpret this?
It says I'm correct, and that you're wrong.

FUCKING BUMP YOU FUCKING STUPID SHIT.
I CAN'T BELIEVE YOU ACTUALLY BOTHERED SEARCHING THE STANDARD IN BELIEF THAT YOU WERE RIGHT.

>>26
And we have been trolled constantly.
Listen you fucking 3-months-here faggot (been trolled at constant/exponential etc rate, all that xkcd/reddit/digg fail), I'm not >>20
I don't give a shit whether you believe me or not.
now, FUCK YOU. FUCK YOU. FUCK YOUA FUCK YOU FUCKYOU.

bump. fucking bump.

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