>Be me in Higher Learning >Have a project in which we have to write C code to control a servo. >Have autistic partner, 100% sure he browses Sup Forums >Starting to make progress while he tinkers around with shit. >He has a total chimpout when he finds out the project is in C and not C++. Demands we rewrite the project in C++ and changes all the file extensions to .hpp and .cpp. >He slowly starts figuring out that things aren't working. >Starts putting extern "C" around all the functions... >Writes wrappers for malloc and free ( pic related ) along with other shit. >There is a cmakelists.txt in every folder for some reason. Some of them are empty and just placeholders. >Noone knows how to build this monstrosity but him. >Barely get it done in time and somehow get a decent grade.
You should have expulsed him the moment he touched the filenames. You brought this on yourself by letting it continue. >dog in house on fire.jpg
Juan Bennett
What’s wrong with pic related if you’re using real C?
Aaron Wilson
kek
Mason Hill
You need to throw in a bunch of C only features just to fuck with sepples retards. I'm one of the authors of a decently popular library (by that, I mean there is at least one user other than myself), and in the headers, there is shit like struct members named 'class', and static array parameters.
Jeremiah Barnes
'operator' is not valid in C. However, the they're really just completely pointless.
> * panoBot is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version.
There's your problem.
Jaxon Moore
Zach, you fucker.
Chase Jones
is one of you by any chance finnish?
Daniel Murphy
Comp Sci + Math FTW
Tyler Anderson
Were those things even used? Your code looks so simple I couldn't even tell if it was C or C++ but I didn't see any calls to new or malloc.
>Updated this >Updated that >l Fantastic commit messages.
Jeremiah Reed
>.cproject >using eclipse
Camden Allen
If a student GPL'ed their assignment, I would immediately fail them.
Alexander Mitchell
Why?
Nathaniel White
Fucking hell, some people really need to realise that fracturing your codebase over so many files makes it unreadable as fuck.
James Baker
>>There is a cmakelists.txt in every folder for some reason. Some of them are empty and just placeholders. That's how you are supposed to do it though.
Grayson Kelly
That is highly autistic. I feel for you user. many Sup Forums autistics will see nothing wrong with this.
Ethan Reyes
benis is tha best
Parker Murphy
Sounds like something i'd do. C++ is comfy as fuck if you know everything it does behind the scenes. I wrote windows kernel driver in C++17. Although i didnt really use the dynamic mem features (so vectors and shit), but constexpr and templates are a godsend. Also you can do cool shit like threadsafe lockfree static memory backed ringbuffers that would be slower and aids to manage in C
Aiden Harris
haha panobot :DD
like fucking bot :-------D
Nicholas Foster
You should have put your foot down as soon as he mentioned sepples. I can't imagine why someone would willingly use it over C unless they're a brainless feature addict who can't understand the proper place for languages.