• What are you working on? V5
    2,005 replies, posted
[QUOTE=turby;18898390]I've made plenty of cool pieces of shit, I haven't posted most of it Would you like me to post each and every cool thing I've made?[/QUOTE] As you make them, sure.
[QUOTE=turby;18898390]I've made plenty of cool pieces of shit, I haven't posted most of it Would you like me to post each and every cool thing I've made?[/QUOTE] yeah no one wants to see your windows forms source engine game launcher with default control names.
[QUOTE=high;18898316]Anyways.. TryCoutInt?[/quote] No, because then you defeat the purpose of operator overloading which is what allows you to input and output custom classes via streams seamlessly. [quote]You shouldn't just ignore that the user didn't enter an integer anyways.[/quote] ARGH I DON'T :bang: That's the point of the do {} while () loop, except it looks MUCH cleaner and MUCH more concise than the try {} catch {} version. [quote] I try to stop but null just wont let it happen.[/QUOTE] [img]http://imgs.xkcd.com/comics/duty_calls.png[/img] [editline]09:17PM[/editline] Really, you have just about next to no experience with C++ other than reverse engineering shit, so you have no clue what you're talking about. Please shush.
[QUOTE=nullsquared;18899300] Really, you have just about next to no experience with C++ other than reverse engineering shit, so you have no clue what you're talking about. Please shush.[/QUOTE] Says the one that would rather use the C method vs the C++. [highlight](User was banned for this post ("Seriously, trolling" - garry))[/highlight]
[QUOTE=high;18899552]Says the one that would rather use the C method vs the C++.[/QUOTE] OK now I can see you're a troll. Someone please ban this guy :bang:
How about we stop having e-nerd fights and continue programming rather than clogging up the thread.
[QUOTE=flair;18898836]yeah no one wants to see your windows forms source engine game launcher with default control names.[/QUOTE] I've made much more than that.
[QUOTE=nullsquared;18897424]Parse it myself using ... once again, streams? :downs: This: [cpp] int num = 0; do { std::cin.clear(); std::cout << "Please enter an integer: "; } while (!(std::cin >> num)); [/cpp] vs: [cpp] int num = 0; bool done = true; do { done = true; std::cout << "Please enter an integer: "; try { std::cin >> num; } catch (const std::exception &e) { done = false; } } while (!done); [/cpp] I don't think you understand what bruteforcing is.[/QUOTE] No need for that variable btw. [cpp]int num = 0; std::cout << "Please enter an integer: "; while (true) { try { std::cin >> num; break; } catch (const std::exception &e) { std::cout << "An integer..." } }[/cpp]
Good job, you made a extremely ugly solution just a very ugly solution. Do you want an award for that?
[QUOTE=nullsquared;18899922]Good job, you made a extremely ugly solution just a very ugly solution. Do you want an award for that?[/QUOTE] Idk why you keep making me post. We both know that no matter what I post you will still love the C way. Also I know by your posts that you are not someone to ever say you are wrong. Or even give the other side a chance. It is "your way or fuck you".
[QUOTE=high;18899968]It is "your way or fuck you".[/QUOTE] Yeah. Probably cause I'm not wrong :smug:
[QUOTE=nullsquared;18900449]Yeah. Probably cause I'm not wrong :smug:[/QUOTE] It all is a choice in the end. You just rather stick with the old C way instead of the C++ way.
My god, can you guys continue arguing somewhere else?
Currently working on programming problems from previous years competitions because I want to win this year's competition. And the next two year's. Check out one of their awesome diagrams: [img]http://img697.imageshack.us/img697/6623/towers.png[/img] Lovin' the mspaint. Just as much as I love their Borland 5.02 environment for C++.
[QUOTE=Xerios3;18900589]My god, can you guys continue arguing somewhere else?[/QUOTE] Better yet, I wish they'd [b]stop fucking arguing altogether[/b].
[QUOTE=Xerios3;18900589]My god, can you guys continue arguing somewhere else?[/QUOTE] #fpcoders
[QUOTE=high;18896257]Why the heck wouldn't you know what to expect from the user? Bruteforcing to parse the data doesn't seem like a good way...[/QUOTE] Crashing because you expected the user to type the right thing doesn't seem like a good way either. [QUOTE=TehBigA;18897188]How about instead of throwing exceptions everywhere you just accept input as a string and use atoi.[/quote] Because then you have to ask "Did you really just type '0' or did atoi return an error?". C is just fun like that.
I stopped reading my C# book for awhile Because I'm getting so much homework and the book is getting more confusing too. But today I picked it back up again, and so far I've gotten a little bit more further. Hopefully it gets a little bit more easier =(
[QUOTE=high;18899552]Says the one that would rather use the C method vs the C++.[/QUOTE] funny thing is, this guy used to shun C++ ways and would be all for C# and C, and fuck boost its the worst thing in the world. now look at him :downs:
[QUOTE=Scoooooby;18903053]I stopped reading my C# book for awhile Because I'm getting so much homework and the book is getting more confusing too. But today I picked it back up again, and so far I've gotten a little bit more further. Hopefully it gets a little bit more easier =([/QUOTE] Actually, books like that get harder as you read.
[QUOTE=jmanmc;18904556]Actually, books like that get harder as you read.[/QUOTE] :c Does anyone have any ideas for something I can code? I need my own project to work on, maybe then I'll put more time into all of this.
[QUOTE=Scoooooby;18905899]:c Does anyone have any ideas for something I can code? I need my own project to work on, maybe then I'll put more time into all of this.[/QUOTE] A roguelike. [b]Edit:[/b] Finished animations :D
[QUOTE=Scoooooby;18905899]:c Does anyone have any ideas for something I can code? I need my own project to work on, maybe then I'll put more time into all of this.[/QUOTE] Go to projecteuler.net and start doing all the problems sequentially. It's quite a bit of fun, just try to resist looking up the answers.
[QUOTE=nullsquared;18909944]Go to projecteuler.com and start doing all the problems sequentially. It's quite a bit of fun, just try to resist looking up the answers.[/QUOTE] It's projecteuler.net.
[QUOTE=nullsquared;18909944]Go to projecteuler.com and start doing all the problems sequentially. It's quite a bit of fun, just try to resist looking up the answers.[/QUOTE] I think you mean [url=http://projecteuler.net/]projecteuler[b].net[/b][/url], .com is a parked page. There's also the [url=http://www.spoj.pl]Sphere Online Judge[/url]. That's a particularly good site for doing programming problems in a heap of different languages. And while I haven't used Project Euler, spoj.pl definitely seems better just from first look and general interface. [editline]11:41PM[/editline] Ninja'd by Diaklu... Though I wrote more, so I guess I still win :P
Woops, you're right guys, my bad. [QUOTE=mechanarchy;18910033]And while I haven't used Project Euler, spoj.pl definitely seems better just from first look and general interface. [/QUOTE] Oh hey cool site, it lets you submit solutions. projecteuler is more of a "submit the answer, even if you use mathematica or just pen and paper".
[QUOTE=mechanarchy;18910033]Ninja'd by Diaklu... Though I wrote more, so I guess I still win :P[/QUOTE] Yes, you win. But I ninja'd page 45.
[QUOTE=microsnakey;18788208]Get this [img]http://imgkk.com/i/sIiFIM.jpg[/img][/QUOTE] Already Got it :D
Another good "practice" site for programming would be codechef.com. Although I think it is indian.
Having trouble with MDI and OnFormClosing. My question is here: [url]http://stackoverflow.com/questions/1894985/how-to-properly-prompt-the-user-when-closing-an-mdi-form-and-children[/url]
Sorry, you need to Log In to post a reply to this thread.