CupCake
Bruh
Monchie
Good day all. I am new to c c++. I need help with tutorials. I want to delve into the embedded system field and some day desktop app development. Please how do I go about it all?
Ludovic 'Archivist'
Good day all. I am new to c c++. I need help with tutorials. I want to delve into the embedded system field and some day desktop app development. Please how do I go about it all?
Stop looking at tutorials. Find something you want to do and only resort to looking up tutorials after being stuck trying things for an hour. And when unblocked ditch that tutorial again
Ludovic 'Archivist'
One does learn to balance on a bike by riding a tricycle
Ludovic 'Archivist'
You need to learn from mistakes
Ludovic 'Archivist'
So go make some!
VIBHAV
Help me with programming
Macros don't need semicolons at the end. remove the ; and try rerunning
Ok.Still same.But I found the problem.Planck is too small that it can't allocate.Around 10^-34
I wrote like this: #define PLANCK 6.6483747382837e-34 Still didn't work
Hima
I wrote like this: #define PLANCK 6.6483747382837e-34 Still didn't work
the output is correct, it's just you need to change the format specifier. use %g
harmony5 🇺🇳 ⌤
Rose
Help me with programming
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Rose
Purge complete.
super
OK
Kartik
/notes
Rose
/notes
List of notes in C/C++ Programming: - 0_to_show_item_use"#item" - gitgud - howtoask - markdown - mcve - meta - ot - paste - projects - res You can retrieve these notes by using /get notename, or #notename
Kartik
#projects
Rose
#projects
Please check the Resources section for links on Open Source Projects in C/C++ some of which are explained from scratch.
Rose
User Ankit has 1/2 warnings; be careful! Reason: offtopic
\Device\NUL
/report
Rose
/report
Reported Lhove Lhetta [1945329641] to admins.​​​​​​​​​​​
hlebyshek
hey I writing test task and noticed that my code possibly too complicated Can someone spend few minutes to review and answer: Is it simple or difficult to read? And why?
hlebyshek
for add ability to choose allocator although it has default definition with std::allocator
Danya🔥
for add ability to choose allocator although it has default definition with std::allocator
And what's wrong with passing it as an argument to the function?
hlebyshek
And what's wrong with passing it as an argument to the function?
hah, I just prefer to overcomplicate implementation instead of interface
Danya🔥
hah, I just prefer to overcomplicate implementation instead of interface
I don't think it's a great idea to use classes to define functions
Danya🔥
It overcomplicates the code
Dima
like the current cxx committee
Danya🔥
https://github.com/feelamee/lesta-test-task-2024/blob/master/include/tt/sort.hpp#L63-L67 This huge requires clause in the function definition also doesn't help with readability
hlebyshek
I don't think it's a great idea to use classes to define functions
yes, I have similar feelings possibly, i will rewrite to use allocator as the last default parameter
Danya🔥
Considering this is a test task for a gaming company, they wouldn't like this templated code. I've never worked in the gaming industry or in Wargaming/Lesta, but judging by stereotypes, they're not fond of the metaprogramming
Danya🔥
I don't think it's possible to get the end() iterator from the max_element Algo https://github.com/feelamee/lesta-test-task-2024/blob/master/include/tt/sort.hpp#L105-L106
Danya🔥
Readme is also not relevant, you have cmake build system but the instructions are for something else
Danya🔥
cppref says that it returns last if range is empty
Well sure but I'd check if the sequence is empty before actually calling the function
Danya🔥
yes, I noticed I push only for answer for review here
Send me your CV into private messages Of course if you want to 😄
hlebyshek
Send me your CV into private messages Of course if you want to 😄
hah I will need some time to translate it on eng of course, if you dont speak russian
Rose
Another one bites the dust...! Banned Sahil. Reason: Solution architect level of Position: banned
poetry
good morning
aaswq1
good morning
Salam Aleykum
Nada
Salam Aleykum
Wealkoum salam
Lorraine
hello
klimi
hello
nohello.com
Lorraine
sorry
Lorraine
Has anyone tried to implement a simple UDP stop and wait protocol with boost.asio?
John
Why is my vscode c_cpp IntelliSence auto-completion trying to suggest everything...
John
I was expecting it to suggest member variables or functions only
Ludovic 'Archivist'
John
It probably failed to index the project
I am trying to reset my IntelliSense, should it fail, I will probably reinstall my vscode
John
Finally, reinstalling worked for me
John
Unfortunately, seems that I lost my favorite font...
M
Hi
Ya deway
I cant load a .onnx trained model😭
aaswq1
Why?
Why C++ Primer Plus Prata is bad book?
aaswq1
IT SEEMS TO ME that, compared to Lipman, Prata more or less explains basic things in terms of what a variable or a function is.
Danya🔥
Why C++ Primer Plus Prata is bad book?
https://accu.org/bookreviews/2002/glassborow_1744/ Here is a review
aaswq1
https://accu.org/bookreviews/2002/glassborow_1744/ Here is a review
Wait, 2002???? Its not 6 edition that publishef 2012
Ludovic 'Archivist'
Wait, 2002???? Its not 6 edition that publishef 2012
2012 is ancient still. It was before C++11 was even finalized in any compiler. It is out of touch with any C++ code released since
Wesam
Hi
mito
What is better?
https://t.me/cpp20programming
aaswq1
https://t.me/cpp20programming
I like PPP by stroustrup, but seems it some old
aaswq1
Just look at Hello World program in the book begining
aaswq1
https://pasteboard.co/Uhvfhdk1kapn.jpg
aaswq1
https://pasteboard.co/Uhvfhdk1kapn.jpg
Why he use stb_lib_facilities instead iostream?
\Device\NUL
Why he use stb_lib_facilities instead iostream?
What's the translation of the russian part?
Pavel
What's the translation of the russian part?
Tl;dr "Classical first program" "Prints hello world"