Комментарии:
alternatively you can be programming on linux and avoid stupid problems like these
ОтветитьI literally, like, you know, couldn't, like, listen to, like, your, like video. Guess, like, why?
ОтветитьYou should do a video on the new C++20 module system
ОтветитьI don't know how many people picked it up but I noticed you using "/" instead of the more tradition "\\" as a directory separator. I do it all the time as it saves a character and the \ is way over to the top right. PLUS it makes it UNIX compatible 🙂
ОтветитьI don’t use visual studio but if I ever do this could save me a lot of trouble.
ОтветитьThe best error is when after including a header one gets circular dependency error. 😂
ОтветитьI FUCKING HATE IT TOO 😫😤
ОтветитьIt's all about Ukraine war, so if you can fix it it with these <> - do it, because I want to talk about what I would like to see and create a T-shirt that I wanted. So you don't want to deal with this connection string mess, you want install it and run it. I'm not rethinking how I fixed Ferrari in the past - what if I had that class diagram before. This is now as simple as PHP was, but try remember how it was with all the memory pointers and addresses. Don't you copy those rap songs in a radio you working now.
Ответитьks amak
ОтветитьMan I forgot just how horrible the visual studio filter stuff is in terms of getting in the way of obfuscating how stuff actually works. Excellent video.
ОтветитьNew to C++ and coding in general, I just wanted to say that this was the video that made classes click for me. Every video I've seen explains classes using people as an example, just creating like categories for age, height, weight, etc. I never understood the point. Seeing how the timer class is just structured functions within a broader shared category really did the trick. Also immediately showed me why using namespace std is bad.
Ответитьthought this would talk about CMake and that whole shabang cz usually linking hpp and cpp files is a pain
Ответитьcool
ОтветитьThis is just a window + visual studio overhead
ОтветитьHi Cherno, I have watched many of your turtorials of cpp. I realy learned a lot from your videos, even more than how much teachers taught me in my college. Thank you very much
Ответитьyou could add the Headers directory to the include path of vs that you shown in the beginning in the project, i mean just to not have to write Headers each time you import something 😅
ОтветитьVisual Studio devs making development 10 times harder than it should be while pretending to be helpful as usual.
ОтветитьWhy is that my VScode and The cherno's VS code doesnot look similar?, a lot of options available in The cherno's C++ is not available in Visual Studio Code even though I have it up to date
Can anyone help me as to why this is the case and how I can resolve it?
These "filters" are a huge design flaw in Visual Studio. Microsoft should just get rid of them. Or at the very least not make them the default.
ОтветитьCherno can you make a video about concepts in c++?
ОтветитьCan you make tutorials for Embarcadreo C++?
Ответитьcould you drop a video about creating the hello triangle using different API's that can be changed at runtime ?
Ответитьcould you make a video about c++20 modules and your opinion on its usefulness?
ОтветитьCherno please make a course on C++ 😢
ОтветитьThe worst part is when you are you trying to include header file, typing name of this file, intellisense shows it, but later intelli says "no", no this file doesnt exists
ОтветитьInclude errors are the nightmare of new C++ programmers. I remember banging my head on the table solving circular includes and compilation errors.
Ответить...or you could just use CLion, where it doesn't do this silly deceptive filter thing and actually mirrors the structure of your filesystem in the project. CLion is the only C++ IDE that I've not only found tolerable, but actually pleasant to use.
ОтветитьI never have these issue with headers. I honestly don't get how people do.
With C++ you the programmer are supposed to know what you are doing.
Could we make tools to include lots more stuff. Sure and it would either increase compile time at linking mostly or it would result in programs being bloated with more code that isn't used.
I don't like either of those options.
That said it would be easy to have the IDE search for that or give it a directory to look for those in. There are IDEs that do that code blocks allows you to do it for example.
You can set such paths in your make files.
It really isn't an issue with the language so much as either the tools you are using or lack of knowledge of that tool. Apparently you can set library paths in visual studio as well.
You can set them up as a default. If you don't use them the compiler will just not include them at link time.
Then you don't have to worry about it. You won't need to set it up every project you make and it will automatically be found.
First time i see someone explaining clearly the difference between "" and <> weather on videos or forums. Who are you man ?
ОтветитьYou can fix all errors in C++ by rewriting it in a real language like C
ОтветитьNecesitaba este video hace 1 año y pico
Ответить👍Thanks.
ОтветитьWould it be so hard for Visual Studio to just scan all the files in my project and suggest the correct path like it already does for so many other languages? I think issues like these are IDE issues, not really language issues, but they frustrate people so much that they just switch languages instead for better IDE support.
ОтветитьWhy not just add Headers to your include directories?
Ответитьdid you like windows 11, or you are ashamed of yourself?
ОтветитьAFAIK, you can always also just list the full path every time.
ОтветитьThank you, me too strugle a lot with file not found and because of this reason i stoped multiple projects including your open gl series
Ответитьso you just moved it there and moved it back and you call it a logical fix?
ОтветитьIncluding a header file by it's path is not a practical solution. If you change the location of the header file you need to change how it is included in all places. The practical solution is to let the compiler know where to search for the header files with the -I option.
ОтветитьHave you ever had a linking error in release but not in debug, where it can't find a library in release, but in debug it compiles just fine?
What if the library it can't find in release is <vector>?? I compared all the setting in VS2019 between release and debug and the libraries are the same.
No idea where to look to figure this out
Is there anyone knows what theme Cherno uses is?
ОтветитьWhich directory separator to use? Slash or antislash? Does it depend on your operating system?
Because if that's the case, it means that if you send some code you wrote on windows (which uses backslashes) to a friend who uses a different os, he may not be able to compile your code.
Need design patterns series in cpp. That would be awesome.
ОтветитьThis doesn't happen in JDSL, because Tom is a genius
ОтветитьI thought you were going to talk about cyclic includes and dependency management with headers in C++. :)
ОтветитьIt took me forever to learn how the C pre-processor & build system works because hardly anyone covers them in detail in tutorials and you don't know that's the problem when you're a beginner. Every tutorial on C/C++ uses IDEs that hide these details (and generally don't circle back) which is fine if you're speed-running hello world, but not if you're trying to learn how to include other people's code you find online.
ОтветитьU are the best
Ответить