Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.

Computers and Technology Discussion

Does Anyone Know C++? - Page 1

Does Anyone Know C++?

Posted by: wesnr
Date: 2008-12-12 23:32:18
I Was Just Wondering If Anyone Knows C++, Because I Do.

Re: Does Anyone Know C++?

Posted by: fivex
Date: 2008-12-12 23:37:31
Not fully

Re: Does Anyone Know C++?

Posted by: wesnr
Date: 2008-12-12 23:39:16
Wait I Thought You Didn't Want To Learn C++ Give Me Some Code

Re: Does Anyone Know C++?

Posted by: fivex
Date: 2008-12-12 23:43:04
I don;t know any C++
I was saying you didn't know it fully.

Re: Does Anyone Know C++?

Posted by: wesnr
Date: 2008-12-12 23:43:36
Yea Not Fully But Pretty Damn Well

Re: Does Anyone Know C++?

Posted by: PichuUmbreon
Date: 2008-12-12 23:48:32
I know some C.

#include <stdio.h>

int main()
{
    int a, b, c, d;
    printf("Enter the first value:\n");
    scanf("%d", &a);
    if ((a != 1337) && (a != 666))
    {
        b = 1337;
        printf("Fuck you, we'll go my way. It'll be %d.\n", b);
    }
    else
    {
        b = a;
    }
    printf("Enter the second value:\n");
    scanf("%d", &a);
    if ((a == b) || ((a != 1337) && (a != 666)))
    {
        if (b == 1337)
        {
            c = 666;
        }
        else if (b == 666)
        {
            c = 1337;
        }
        printf("Fuck you, we'll go my way. It'll be %d.\n", c);
    }
    else
    {
        c = a;
    }
    d = b + c;
    printf("%d + %d = %d\n", b, c, d);
    if (d == 2003)
    {
        printf("%d + %d = %d?! OMFG.\n", b, c, d);
    }
    return 0;
}

Re: Does Anyone Know C++?

Posted by: wesnr
Date: 2008-12-12 23:50:45
Nice, I Haven't Really Worked With C But I Might Learn It Sometime….But I Use C++ For Making Some-What Good Programs, I Was Working On A RPG In C++ But I Stopped For Some Reason