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

C++ LIBS

Name: Anonymous 2007-10-10 14:24

Can someone do me a favour and upload ctime.h and cstdlib.h please?

The compiler im forced to use in uni has neither :o and to make matters worse my googlefu is broken, i cant find them anywhere and whenever i seem to find something its BLOCKED on campus.

help me out /prog/

Failing this and to make it seem less like /r/ shit.

how do i make a random number under c++ without either of these libraries?

Name: Anonymous 2007-10-10 14:28

I hope you get cancer in your testicles

Name: Anonymous 2007-10-10 14:31

>>2
lol whut?

This is not relevent to my interests!

how am i supposed to attain satori with a compiler thats lacking in libraries?

Name: Anonymous 2007-10-10 14:33

lolWHAT

Name: Anonymous 2007-10-10 15:05

>>3
Use LISP.

Name: Anonymous 2007-10-10 15:07

>>3
Also, to be constructive. The C++ standard library does not contain files named ``ctime.h'' or ``cstdio.h''. It looks like you're referring either to ``ctime'' and ``cstdio'' or ``time.h'' and ``stdio.h''. So either change your broken code to

#include <ctime>
#include <cstdio>


For C++, or

#include <time.h>
#include <stdio.h>


For C (or fucked up backwards C++).

As a final note, you're on the wrong path to reaching Satori.

Name: Anonymous 2007-10-10 15:24

These are headers not libraries, what the hell are you talking about junior?

Name: Anonymous 2007-10-10 15:58

>>1
mesenne twister

Name: Anonymous 2007-10-10 16:07

>>6
To be even more constructive, im using a draconian compiler that predates ansi/iso standardisation.

therefore its
#include <iostream.h>

as opposed to #include <iostream>

Namespaces are merely a pipe dream at this point, welcome to 1995.

Im in uni and have no priviledges on the machines to change this situation, im stuck on windows using borland (they canceled lisencing VC++ because students commented it was "too hard to do shit") and theres no chance of getting anything even remotely useable this semester.

ROCK me HARDPLACE

I just want my srand() and rand functions back :(

Name: Anonymous 2007-10-10 16:14

Not using GCC? Fail university

Name: Anonymous 2007-10-10 16:16

>>10
Its only first year, we're not using gnu-anything.

Aparently we get to install linux half way through the year and everyone knows i love nothing more than spending class time watching install bars when i could be learning "ABSTRACT BULLSHITE" and acheiving satori.

Name: Anonymous 2007-10-10 16:36

>>9
Shit, that sucks. You should really consider bitching the fuck out about it to whomever's in charge or going to a different school before it's too late (probably too late for this semester, but not too late to transfer out for next semester).

Alternatively, grab some firearms and try to beat the high score.

Name: Anonymous 2007-10-10 16:43

Provide the prototypes of rand and srand to the compiler, link to libc and hope it /works/.

Name: Anonymous 2007-10-10 16:57

>>12
The best part is its the only place thats local.

Im a returning student, i work part time and ive got a family to support :(

Im basicly forced by circumstance to go to this shithole for the next 4 years.

i suspect that beating the high score will become a very good prospect come 2nd yr should situations not improve.
im assured by the lecturer that this is only because some management type took an interest in the otherwise decent computer faculty and requested feedback forms last year, before recklessly obliterating the department to make some profit.

Name: Anonymous 2007-10-10 17:00

Woah, my uni isnt Ivy league, but even we have none of that OLD SHIT you have to put up with there.

Students commented it was too hard to use Visual Studio? What the fuck, its easier than commandline, get the fuck out of there.

Also, stop being a dick and use mesenne twister.

twist(seed):
seed ^= (seed >> 11);
seed ^= (seed << 7) & 0x9d2c5680U;
seed ^= (seed << 15) & 0xefc60000U;
seed ^= (seed >> 18);
return seed;

Name: Anonymous 2007-10-10 17:37

>>15
undefined behavior, you are a dumb fucking nigger.
Also needs UL suffix.
You're a dumb motherfucker.
fucking piece of shit

Name: Anonymous 2007-10-10 21:21

>>16
def twist( seed ):
    seed ^= ( seed >> 11 )
    seed ^= ( seed << 7 ) & 0x9d2c5680
    seed ^= ( seed << 15 ) & 0xefc60000
    seed ^= ( seed >> 18 )
    return seed

There, I fixed it for you.

Name: Anonymous 2007-10-11 1:20

>>9
cygwin.org

[/thread]

Name: Anonymous 2007-10-11 1:32

>>16
Undefined behavior is what you want in an RNG.

int rand() {
 /* The following number was selected at random */
 return 657;
}

Name: Anonymous 2007-10-11 1:42

>:|

Name: Anonymous 2007-10-11 1:42

wow copypasta more fag.  jesus /prog/ has turned into such a fulking broken record.

Name: Anonymous 2007-10-11 6:03

>>16
obvious troll

>>17
One... i cant be fucked

Name: Anonymous 2007-10-11 6:29

>>19
XKCD-faggot

Name: Anonymous 2007-10-11 6:32

>>22
it *really* needs UL suffix.

Name: Anonymous 2007-10-11 8:16

Ok wow copypasta more fag.  jesus /prog/ has turned into such a fuqin broken record.

Name: Anonymous 2009-08-16 22:30

Lain.

Name: Anonymous 2010-12-17 1:38

Erika once told me that Xarn is a bad boyfriend

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