C++ TEMPLATE

Any one having good c++ templates link? please provide, specially geometry!

1 Like

make your own will help you best

1 Like

no matter what happens , just include this line ;-
#define endl ā€˜\nā€™

3 Likes

Make your own ! because you would be familiar with what you have used in it!!! anyways you can see top performers code always to see there template and copy!!!

2 Likes

thats bad, ā€˜\nā€™ and endl might serve same purpose on surface but they work differently. endl does more than ā€˜\nā€™

2 Likes

Do add fast I/O

But i have experienced that ā€˜\nā€™ is faster than endl !

yeah extactly it is faster than endl

ā€˜\nā€™ is faster than endl because it does less work, I recommend to not use that define, instead just type ā€˜\nā€™ whenever u need to start a new line. You can google about differences between both.

1 Like

Arey the thing is that im used to endl so much that i defined that statement atop of my template. I came across the diff of the two while solving a problem. Whatever u sayin is correct !

1 Like