Anonymous
All the times you can
Anonymous
If you have additional includes make a practice to keep them in some common directoey
Anonymous
And define them as additional include directory during build
Anonymous
What if you include file conflicts with another include file?
Anonymous
It should not. Use folders so something like <includes\specialtask. H>
Anonymous
Some people even prefix all the header files with letters based on context
Anonymous
Best practice is always include local project dir
Anonymous
For some commonnunctionalities move them to a commonnlocation
Ludovic 'Archivist'
Any one pls explain g
One of the g example correct behavior could be to make demons rush out of your nose
Anonymous
Gotta love UB
Anonymous
Hello guys can anyone tell me where can i learn file handling in c++
Ludovic 'Archivist'
Gotta love UB
Gotta love dragons and nasal demons
Anonymous
Anything can happen according to the C standard.
Anonymous
I'd make a compiler that would delete all your files when UB occurs.
Anonymous
That'd teach 'em!
Ludovic 'Archivist'
I'd make a compiler that would delete all your files when UB occurs.
I'd write one that throw a SIGILL and on that signal print a dragon in the standard output
Anonymous
That would aslo be fun and less malicious.
Ludovic 'Archivist'
I could make it use SDL_audio to play some imagine dragons in the background
Anonymous
Hello guys can anyone tell me where can i learn file handling in c++
I think you could find following link useful: https://www.learncpp.com/cpp-tutorial/186-basic-file-io/
Ludovic 'Archivist'
Implementation defined behaviour: "here come dragons"
Anonymous
If that is what you need.
Anonymous
There be dragons.
Anonymous
np.
Anonymous
How can i have a sub project dependecy using Cmake
Anonymous
http://thats-a.link/4EdNgsF.png
Anonymous
I would like to be able to include stuff from Engine in the game project
Anonymous
http://thats-a.link/71Uv9KH.png
Anonymous
So it seems to be that ../ isn't working
Anonymous
6.5.2.2.10 of ISO/IEC 9899:2011: There is a sequence point after the evaluations of the function designator and the actual arguments but before the actual call. Every evaluation in the calling function (including other function calls) that is not otherwise specifically sequenced before or after the execution of the body of the called function is indeterminately sequenced with respect to the execution of the called function. 94)
Anonymous
i.e. the order in which arguments are evaluated is undetermined.
Anonymous
In your case it seems like the arguments were evaluated last-to-first.
Anonymous
What is the best way to learn C for a beginner?
Anonymous
21st
Sid Sun
Mat
What is the best way to learn C for a beginner?
Study the language 🤷‍♂ start reading the basics about programming and the C language and begin to write some stupid program in the meantime
Mat
There's no Learn C in 7 days available
Anonymous
There are some good books.
Anonymous
Am I right to assume you know German?
Anonymous
http://thats-a.link/9JSnWHA.png
Anonymous
Window* w = new Window();
Coder
Hello, guyz.. 😄
Đăng Lú
Hello, guyz.. 😄
Goodbye buddy 👋
Coder
Goodbye buddy 👋
Ok.. Then you go 😄
Đăng Lú
Anonymous
Window W()
Anonymous
that isn't the issue
Coder
😄👈
Anonymous
Window its constructor somehow is undefined
Anonymous
Issue is the linker
Anonymous
Window* w = new Window();
No auto w = std::make_unique<Window>()
Anonymous
If window is coming form a librari
Anonymous
Add it to linker
Anonymous
http://thats-a.link/9JSnWHA.png
Well Where is the Window.cpp file in the project file structure?
Anonymous
Anonymous
@unterumarmung Yes there is
Anonymous
Its in the Engine/src folder
Anonymous
Same loc as the Window.h folder
Anonymous
Oh sorry
Anonymous
Don't use the angle <> brackets for your own headers please
Anonymous
Use double quotes
Anonymous
And why do you CMake instead of MSBuild?
Anonymous
CMAKE for project manage crap
Anonymous
like libs
Anonymous
And so i can more easy build on linux
joel
cmake is great
joel
makes building easy
Anonymous
Also not using <> is not a hardcore advice
Anonymous
Many companies strictly use <>
Anonymous
Anybody learning openCV?
Dima
Lol!
Dima
Stupid noobs
Anonymous
I sm a noob too here
Anonymous
🤔
Anonymous
Anybody learning openCV?
No meta questions are allowed. And it is actually offtopic
Anonymous
I;m not sure, whether it's off or ON. I asked people who are learning openCV w.r.t C++. I should've more specific lol