Danya🔥
It's a directory not file unfortunatly
I'm taking about C++ sources
Maverick
can someone help me in recursion
Luca
What is the ".what()" of your exception?
The system cannot find the path specified.
Danya🔥
The system cannot find the path specified.
Well probably there is no such path then :) Debug your program. Copy the runtime value of the path and try pasting it to the explorer
Ludovic 'Archivist'
The system cannot find the path specified.
Try to replace the ° with \xB0
Luca
Well probably there is no such path then :) Debug your program. Copy the runtime value of the path and try pasting it to the explorer
The file path exist, if i try to access to specific file inside that path, everything works. But not with dir_iterator API
Ludovic 'Archivist'
Ludovic 'Archivist'
Mixed the byte and codepoint rep
Luca
My bad, by \u00B0
replace the '°' with '?'
Ishak
How can I start programming
Ludovic 'Archivist'
Ludovic 'Archivist'
replace the '°' with '?'
https://www.compart.com/en/unicode/U+00B0
Luca
oks, I'm telling you what I see in my cout
Ludovic 'Archivist'
oks, I'm telling you what I see in my cout
Your cout may not be UTF or unicode at all
Ludovic 'Archivist'
But your file system is if it came out any time after InfernoOS did
Luca
?
Ludovic 'Archivist'
?
Standard IO may not display UTF-8 in the terminal as it is not a requirement. But any OS released after inferno was released supports UTF-8 or one of the Unicode encodings
Ludovic 'Archivist'
That OS is still alive?
No, but UTF-8 and the ideas from unicode stem from that OS and Plan9
Luca
Found!
Luca
for special char
Luca
Need to use std::u32string
Luca
Thank you all for support!
Richard Luo 🐱
Why not c++ just make all functions virtual? Then let compiler optimization to find out which function does not need to be virtual?
Richard Luo 🐱
The same applies to exception. Why not let compiler find out if it will throw exception?
Danya🔥
Why not c++ just make all functions virtual? Then let compiler optimization to find out which function does not need to be virtual?
Because it's very limited optimization and is not applicable to libraries because when you compile a library you don't know how a function will be used
Thomas
Is there a structured road map for C?
Tokin
Is there a structured road map for C?
https://gustedt.gitlabpages.inria.fr/modern-c/
Eugene
I want to display first name,last name, nationality in c programming using string I need hlp
Eugene
Yes pls
Rose
Yes pls
User Eugene has 1/2 warnings; be careful! Reason: assignment
Eugene
Not assignment pls
Danya🔥
Read the rules
Rose
Yes pls
That's 2/2 warnings; Eugene is banned! Reasons: 1: assignment 2: pming
Guys I have a question, I followed a few courses to learn and they teached me that I can use pretty often the break in the cycles for while etc but other people told me it's not recommended doing because it can mess up the readability of the code for others, is it true?
Ya deway
hi guys I'm dynamically importing functions from the ntoskrnl.exe process in my Windows10 kernel driver (I get the pointer in memory of ntoskrnl and through the memory scan I use pattern and find the address of the function that I'm interested in importing dynamically). I tried with DbgPrint calling it from a custom pointer using this method and it works fine. the problem comes when I deal with the SYSTEM process. Regardless of the function imported, I get bsod. I tried ntallocatevirtualmemory, KeInsertQueueApc, ntprotectvirtualmemory, etc I would like to understand the cause, do you have any advice?
\Device\NUL
What BSOD?
Wolfreddif
What BSOD?
Blue Screen of Death. it happens when the system faces some error and has to restart abruptly.
ABDUL RAHIM
Please I need someone who will take me from the basics of C++ to beyond
Rose
Please I need someone who will take me from the basics of C++ to beyond
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Kiran
Kindly recommend on how to go about learning memory management. Should I have to learn c++ or something else bedore
Viacheslav
i would say C or ASM is fine for learning memory management
I would say VHDL or VERILOG is fine for learning memory as well as components you are communicating with
suraj
I would say VHDL or VERILOG is fine for learning memory as well as components you are communicating with
That would go very deep into electronics most people wouldn't need it
Viacheslav
That would go very deep into electronics most people wouldn't need it
I did a joke about klimi response. Learning asm is fine if you work in HFT or embedded field, but for general programmer, who learn C++ (not C!) is not a point
Learning
management on what purpose, in what setting?
biochem
i wonder which library is writting in c++ focusing bioinfo
Rose
Purge complete.
Rose
User ببب ب has 1/2 warnings; be careful! Reason: pming
Rose
User .​ has 1/2 warnings; be careful! Reason: pming
10001
Help
10001
What elf relocations do
Danya🔥
What elf relocations do
Relocate the elves
Rose
That's 2/2 warnings; Project is banned! Reasons: 1: homework spam 2: offtop meta question
Null
Can you rate my friend's code? So that I know how well he knows the matter? https://github.com/linuxnyasha/cserver/blob/main/include/cserver/engine/components.hpp
Ludovic 'Archivist'
I'm not a Rust Dev, I really would love for C++ to get over from its dirty hole, but the committee just don't get it
That is a stupid take. One of the reason for modules is compilation speed, as they are estimated to bring compilation time down to 30% of its current at worst. Monads like expected and optional have more stable performance than exceptions, even in their worst case. Ranges are more expressive of intent than your 5 nested if statements in a for loop for a shorter code. People like you are the reason why I must use the shitty C++98 on my embedded projects
Ludovic 'Archivist'
Not to mention that while templates always were Turing complete, processing on templates was slow as all hell compared to what we have now. Concepts are far clearer that std::enable_if hellscapes
Ludovic 'Archivist'
And I am not even mentioning that we are soon getting static reflection, that we got coroutines that yield to outstanding performance, and that the current weakest point of C++ is how we still don't have a string class that can handle graphemes
Rose
User Fifiof has 1/2 warnings; be careful! Reason: no-hello
Rose
User SARA has 1/2 warnings; be careful! Reason: no-hello
MᏫᎻᎯᎷᎷᎬᎠ
Yeah, backward compatibility
MᏫᎻᎯᎷᎷᎬᎠ
Adding more features while preserving and keeping a feature that no one want to use That just make the language more complex
MᏫᎻᎯᎷᎷᎬᎠ
I guess my 2 years old opinion was referring to "The committee should focus on cleaning the language and modernize it instead of just stacking up features more and more" Yeah concepts are great but still there are companies stuck in C++11, so you won't be having that good looking error messages and BTW, it's not that good looking it's only better, in addition to be people like me are the reason for your headache Go blame your standard committe Epoch were proposed to clean up the language But yeah, got rejected Now, profiles get some mentioning here and there even by bjarne himself which have the basic idea Check this https://www.reddit.com/r/cpp/comments/170l785/comment/k3mxcqf/ If this was like 20 years ago, you will be using a newer version For reflections, we will be very lucky if it ships in C++26 and made its place in production code in 2028
MᏫᎻᎯᎷᎷᎬᎠ
As well people like me are the reason why you will have a memory safety and other vulnerabilities in your big complex software Since there are juniors who unfortunately are 10-20 years of experience behind you, can't blame them, no one can control time and grab a long years of experience ahead
MᏫᎻᎯᎷᎷᎬᎠ
Oh, another question, since expected provide speed improvement Why not add it to the standard library? Are you really okay with vector.at(i) might cause an exception Someone who is more concerned, will just write up his own vector class
MᏫᎻᎯᎷᎷᎬᎠ
https://www.reddit.com/r/cpp/comments/16q9dzt/the_standard_library_should_be_using_stdexpected/
MᏫᎻᎯᎷᎷᎬᎠ
Yeah C++ is great C++ gives you freedom C++ can address your creative smart thinking directly in the code I love C++ But unfortunately you won't be using that fantastic great looking feature in recent versions Because of the company and business does matter So, you will have that enjoyment in your personal projects only
MᏫᎻᎯᎷᎷᎬᎠ
And I am not even mentioning that we are soon getting static reflection, that we got coroutines that yield to outstanding performance, and that the current weakest point of C++ is how we still don't have a string class that can handle graphemes
And don't even mention that those two features took years to just to get this mentions, now you are starting to see some snippets around in social media and blogs I personally was looking forward to pattern matching And more to standard package manager, this is really important