Anonymous
😄
Nehemiah Aklil
Nehemiah Aklil
do u guys agree on the avoiding use of " using namespce std;"
Dima
yes
Dima
like
Dima
seriously, yes
BinaryByter
Yes
BinaryByter
like
BinaryByter
seriously, yes
Dima
don’t use using namespace std
Nehemiah Aklil
Yes
😞😞😞
BinaryByter
don’t use using namespace std
unless you want to kill three kitten
Dima
also
Dima
#noendl
Nehemiah Aklil
BinaryByter
YOU CANNOT STRESS POINT 2 ENOUGH
Nehemiah Aklil
#noendl
noooooo
BinaryByter
DONT USE C++ AS C WITH CLASSES YOU DIPSHIT
Dima
YOU CANNOT STRESS POINT 2 ENOUGH
mfw I use c++ is just as c with classes
BinaryByter
noooooo
I don't get why you would ABSOLUTELY want to use endl
BinaryByter
its litteraly 5 or so chars more to type
Dima
#nostd
Nehemiah Aklil
its litteraly 5 or so chars more to type
but its btr for code readabilty than "\n"
Nehemiah Aklil
😂😂😂
BinaryByter
but its btr for code readabilty than "\n"
if you NEED an endl, make your own endl class
BinaryByter
struct endl_t {} endl; std::ostream& operator«(const ostream& a, endl_t& n) { a « "\n"; return a; }
BinaryByter
std::string
BinaryByter
wait in C
BinaryByter
yes, you have to
Trevor
/notes
Dima
wait in C
typedef struct string_s { char* data; } string_t;
Kat
Woah that's pretty neat
Dima
top kek
Dima
YES
Dheerain
#ide
Nehemiah Aklil
don’t use using namespace std
with wat do u substitute "using namespace std;"
Kat
MᏫᎻᎯᎷᎷᎬᎠ
Btw What does this mean extern template someType identifier
MᏫᎻᎯᎷᎷᎬᎠ
What the hell does template do here?!
BinaryByter
with wat do u substitute "using namespace std;"
you don't need using namespace std;
BinaryByter
would be a sad world if you did
Nehemiah Aklil
Just run functions with std:: prefixes
why😩😩so am gonna have to write std:: every time I use a cout or somthing
BinaryByter
Nehemiah Aklil
yep
wats so wrong with namespace std
BinaryByter
not as easily
BinaryByter
basically, you loop until scanf gives you a "\n"
MᏫᎻᎯᎷᎷᎬᎠ
Dunno
It's okay I then xD
BinaryByter
:D
Nehemiah Aklil
BinaryByter
you have not seen enough to get why I prefer C++ ;)
BinaryByter
It's okay I then xD
prolly an external template
BinaryByter
Good luck learning !
MᏫᎻᎯᎷᎷᎬᎠ
I think it's more than a year
MᏫᎻᎯᎷᎷᎬᎠ
Huh!!
BinaryByter
yes, it is more than enough time for that!
MᏫᎻᎯᎷᎷᎬᎠ
I hope that's enough for me :(
olli
Btw What does this mean extern template someType identifier
if you know the same template instantiation happens in another compilation unit you can use extern template to force the compiler not to instatiate it here. Can result in lower object size and compile time
MᏫᎻᎯᎷᎷᎬᎠ
I just know only the core language I think
BinaryByter
I just know only the core language I think
Lol you are wayy past the point of simple beginner
BinaryByter
Its just that you give up too quickly
MᏫᎻᎯᎷᎷᎬᎠ
Nehemiah Aklil
Lol you are wayy past the point of simple beginner
😒is there aline of growth with cpp its just a big ever growing entity and u will never be enough to feel the gap
BinaryByter
oh yea
BinaryByter
C++ is vast