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

MyCoolStory.cpp

Name: Anonymous 2011-04-06 9:56

>write awesome but buggy as hell C program to kick ass at minesweeper
>1 second top score on expert mode.  .47 seconds if I use a clone that keeps track of decimals.
>nagging feeling that I'm being a noob by writing in C and not C++
>learn C++ and rewrite program using classes and maps and vectors and lists and that kind of shit instead of just arrays.
>program works perfectly now, code is much cleaner, but it can't solve an expert board in under 10 seconds
>switch on every speed optimization I can find in Visual Studio
>times down to 6-7 seconds
>decide to rewrite the whole thing in C again from scratch so maybe it can be fast AND reliable at the same time
>change mind and decide to bitch to /prog/ instead and then take a nap

Name: Anonymous 2011-04-06 12:06

>>9,13
Not just that, but I probably wouldn't use a C++ Standard Library template container for that at all. I'd still continue on using a 16x30 C style array in C++ for this because it's the fucking best data structure for the use case. It's a statically-sized array, you don't need any features of a dynamic data structure.

And before some faggot says ``Well, it's not Sepples enough if you don't use C++SL template containers,'' let me state that that is fucking bullshit. C++ is a superset of C. You can still use C style arrays where it fucking makes sense. Don't be a retard and force template containers just so that you can use template containers.

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