Anonymous
oh okie 👍😀
I_Interface
Guys, how often do u use constexpr for your constructors and objects ?
I_Interface
Pointers are a pain
btw, use smartpointers
Dark
I love how simple classes are on C++
I_Interface
Pointers are a pain
unique_ptr for not shared variebles and shared_ptr for shared variebles
Dark
And obviously I have done functions
Dark
As I say I didn’t understand it to be honest. I try and avoid it now lol. Scary subject lol 😂
I_Interface
never😅
Hm, Mayers said to use them everywhere where it's possible :D
Francisco
Guys, how often do u use constexpr for your constructors and objects ?
Everytime the underlined data doesn't allocate in heap
Dark
When I get home I will fire up the VScodem (I think that the name)
Dark
Should be fun to get back to it
Anonymous
Guys, how often do u use constexpr for your constructors and objects ?
It is of I thing of high level When we use them
Dark
I’ve always wanted to make a simulation of that old virus that moves your desktop icons away for mouse. I think is funny and I can fuck with my friends lol
Dark
c++ is pain
I know lol
I_Interface
i think)
joel
Dark
u will need WinAPI for this
https://m.youtube.com/watch?v=GA8A9USuyOU
Dark
This is the virus that does it
Dark
It’s funny as hell it moves all the icons away from the mouse
joel
https://m.youtube.com/watch?v=GA8A9USuyOU
the person who made this virus is a legend
Anonymous
I love how simple classes are on C++
Yes classes initially give less error
Dark
u will need WinAPI for this
I know, but if I could get it to work on windows 10 that would be cool and plus my mate with freak out lol
Anonymous
#include <stdio.h> int main(){ print(); return 0; } void print(){ printf("Hello World! \n"); } Someone here have idea where am i wrong ?
I_Interface
ur programm doesn't know about ur function
Wim
swap the order to begin with
I_Interface
make its prototype before main void print ();
Dima
I_Interface
put void print(); before int main
that's u're writing with phone ? :D
Anonymous
Yea ! now it's working !
Anonymous
Dark
#include <stdio.h> int main(){ print(); return 0; } void print(){ printf("Hello World! \n"); } Someone here have idea where am i wrong ?
The reason that’s not working is because you’re not allowed to put a function below the main function
Anonymous
Something very strange is that how i do not need to set functuin before main ? how the hell it's working for me ?
I_Interface
Dark
The reason that’s not working is because you’re not allowed to put a function below the main function
I have done that before and is drove me mad till I Realise how stupid I was
Anonymous
i mean , in python u have to set function before you use it
Anonymous
here i set the function in the last lines
Dark
Python is childsplay
I_Interface
Anonymous
Yes but this is C++ not python
Sure but acually this question is not about python , it's about logics
luke
The reason that’s not working is because you’re not allowed to put a function below the main function
That's not true. If you had given the function protype in main, then you can put a function below main().
Wim
A compiler doesn't know about a function until it has seen it, so it must either be declared upfront or only be used after the function passed the compilation process
Dark
That's not true. If you had given the function protype in main, then you can put a function below main().
I didn’t know that I originally thought you were never supposed to put any function below the main function.
I_Interface
The best way - move prototype into header x)
Wim
^ Thats a bad habbit actually
I_Interface
BinaryByter
😂😂😂😂
Anonymous
Dark
Lol that’s classic line
luke
Lol that’s classic line
Well, that happens once in a fortnight to be exactly sure!!
I_Interface
lol
luke
Dark
I_Interface
i think it's better for #ot
Dark
i think it's better for #ot
Do you see the guy that made the dark mode for GitHub
Dima
sticker pack approved
luke
Dark
I fucking love it
https://github.com/StylishThemes/GitHub-Dark
I_Interface
Do you see the guy that made the dark mode for GitHub
i have been waited for dark explorer for 1,5 year :(
I_Interface
In windows