Rose
Can anyone send me c++ 11 and c++ 14 notes
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
xhunter
Hi, can we share memes here ? ^^
Danya🔥
Hi, can we share memes here ? ^^
If they're related to C++, then yes. In modest quantities.
Rose
User Danial has 1/2 warnings; be careful! Reason: offtopic
Nothing
Any one want to start dsa with me
John
Reason: tried this folder and that folder(just not the folder in LD_LIBRARY_PATH or -L/path/to/dylib), no such dylib file
I would also like to share another possible solution to this problem: https://stackoverflow.com/questions/17703510/dyld-library-not-loaded-reason-image-not-found
onz
Hi, is there a feature to compiling binary with rwx in .text ? on msvc ? ı think ı remember there was a flag. researched but couldnt find anything neither on web and stackof
onz
ım developing dma things. it needed on that project
\Device\NUL
ım developing dma things. it needed on that project
https://learn.microsoft.com/en-us/cpp/build/reference/section-specify-section-attributes?view=msvc-170 This one?
Shubh i m
http://uniquelosers.blogspot.com/2024/05/aws-ec2.html
xhunter
Does anyone knows the rational behind the names such as 'sockaddr_in' or 'sin_addr ? is there any kind of source that explains why they named them like that ?
xhunter
(This is related to Network-programming in C)
Dalme
Does anyone knows the rational behind the names such as 'sockaddr_in' or 'sin_addr ? is there any kind of source that explains why they named them like that ?
I don't remember much. https://beej.us/guide/bgnet/ this is one of the best guides I've ever read to sockets and it might have some of what you are looking for
Dalme
Please note I haven't read it recently but as far as I remember it kind of tried to make some sense of the (apparently) nonsensical stuff in socket programming
xhunter
Thank you. I'll give it a read
purple rose
thanks
Rose
User Harry has 1/2 warnings; be careful! Reason: ad
aaswq1
guys, do i need to explore something BEFORE to explore C++?
aaswq1
Maybe computer architecture? Or how is the processor and memory structured?
Roman
Maybe computer architecture? Or how is the processor and memory structured?
That’s not an Assembler, but would be good enhancement
aaswq1
thanks
Tazin
guys, do i need to explore something BEFORE to explore C++?
I think actually better to learn a little bit c first. Because if you are learning from YouTube, most of the C playlists are made assuming you are brand new in programming. But a lot of C++ playlists doesn't cover the basics that much. Learn the very basics like data type, variable, conditional, loop, recursion concepts in C and then move to C++.
Rose
I want to start from C++ on learncpp.com
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Tazin
I want to start from C++ on learncpp.com
Then you're good to start. Best of luck❤️
Danya🔥
Thank you
I recommend you to check out the pinned message in the resources group and use the resources mentioned there to start your journey
aaswq1
I recommend you to check out the pinned message in the resources group and use the resources mentioned there to start your journey
yeah, there are a few good books, that i actually have)) but i don't know, what better: learncpp.com or PPP/Lipmans books
aaswq1
AFAIK learncpp is not bad, but I'd choose the books
who knows, who knows) personaly me don't know nothing about both materials😁
Danya🔥
There are some good courses on YouTube in Russian, they are actually mentioned in the channel also. But if I remember correctly, they assume that the learner knows basic programming
Rose
User Sasi has 1/2 warnings; be careful! Reason: pming
CupCake
This group is also dead bruh
Rose
User Rahil has 1/2 warnings; be careful! Reason: ad
Rahil
Can we do job posting here? My current organization has few openings for c++ dev
M
Student ke liye
Brooklyn
George
guys, do i need to explore something BEFORE to explore C++?
It’s not necessary or a prerequisite to explore computer architecture and assembly language to learn c++.
George
You could start with any good resources which are either free or paid only if they are updated to the current c++ std 23 or at least up to c++20 std
George
Once you completed basics, templates, class & oops concept, lambda & other new c++ features, you can learn data structure implementation in C++
George
Followed or in parallel QT or other C++ library or even game development to apply what you have learnt.
George
C++ is vast and have plenty of feature, so learn practically than following lectures and website articles
Ludovic 'Archivist'
guys, do i need to explore something BEFORE to explore C++?
My opinion is generally slightly controversial, but I would advise learning how to use a Linux based operating system and then learn C++ on said system. I have been teaching C++ for 7 or 8 years and Microsoft Visual C++ has very cryptic error messages and error reporting, and that is an everyday struggle for my students
Anonymous
Write to find the factorial
Leovan
How to call placement new for std::vector<std::vector<T>>? Smth like: ptr = new(ptr) std::vector<std::vector<T>>();
Ziky
How to call placement new for std::vector<std::vector<T>>? Smth like: ptr = new(ptr) std::vector<std::vector<T>>();
I guess vector allocates meme for data internally. WIth xour code you will end up with top level object allocated in your memory but the data memory will be allocated just somewhere...
Ziky
I am far from expert but looking at manual https://en.cppreference.com/w/cpp/container/vector this look promising: template< class T > using vector = std::vector<T, std::pmr::polymorphic_allocator<T>>;
Leovan
Ziky
I have struct which contains this vector and I allocate memory for this struct using custom linear allocator using malloc
As you found out malloc will not call constructors of c++ objects. What are trying to do?
Ziky
TBH I haven't used c++ for years :D isn't allocation of that struct using new solving your problem?
Chat Boss
ㅤAnmol sent a code, it has been re-uploaded as a file
Damo
Hi
Damo
can anyone share me c++ 11 and 14 notes..I'm ready to pay amount for that..dm
aaswq1
I often see on the Internet that Steven Prata’s book C++ Primer Plus is a bad book for learning, tell me, is this true? links with negative information about the book https://www.reddit.com/r/cpp/comments/13g6s1/which_c_primer_book_is_better/ https://cplusplus.com/forum/lounge/127667/ https://cplusplus.com/forum/beginner/106097/
Chat Boss
ㅤ</return> sent a code, it has been re-uploaded as a file
\Device\NUL
You should add lf suffix to make it double @Qarvos
Hima
ㅤ</return> sent a code, it has been re-uploaded as a file
Macros don't need semicolons at the end. remove the ; and try rerunning
Paranoid
Hello I am pre final year CS major student. I am working on a project and I need some help
Paranoid
I was trying to develop a library on concurrency and parallelism similar to threads. I have barely started and made working functions, creation of threads and joining. Can you guys suggest any improvements? Also is this a good project for a fresher's resume Github: https://github.com/revant-kumar/C-Thread-Library
\Device\NUL
pthread_join is calling futex every single time it's called while Windows has WaitForMultipleObject that allows to sync Objects with only one system call
\Device\NUL
That would be a huge performance improvement
Paranoid
Ok will work on that. Thanks a lot for the feedback :)
\Device\NUL
You also might want to use C11 Threads instead of Pthreads for more portability
\Device\NUL
Ok will work on that. Thanks a lot for the feedback :)
https://gist.github.com/ammarfaizi2/04b2cdb70f440e6f4ec7929b6b6341b8 Here's some examples that will help you writing it
\Device\NUL
It use mutex and conditional variable instead of thrd_join
Paranoid
You also might want to use C11 Threads instead of Pthreads for more portability
Doesn't that use Window API which increases time to execute
\Device\NUL
Doesn't that use Window API which increases time to execute
What? C11 Threads is already out from 2011. MSVC and GLIBC already implement it
\Device\NUL
Pthreads only available to Unix platform while C threads is available to all platform that support C
Paranoid
Okay will look into it