lotuslwt
how to set comment color to same in vim-code-dark plugin?
Bhavya
Does anyone have Ravindra babu ravula interview preparation Google drive link??
Anonymous
Anonymous
✋ got anyone can help my assignment? why before action need add this [HttpPost]
Leo
✋ got anyone can help my assignment? why before action need add this [HttpPost]
https://stackoverflow.com/questions/28776486/understanding-httppost-httpget-and-complex-actionmethod-parameters-in-mvc
Anonymous
thanks
Anonymous
Hi
Anonymous
Can anyone suggest me the best C language course for bigneers on youtube
Anonymous
Arun
Pls anyone solve a coding ques
Arun
Anonymous
/warn screen photo
Anonymous
Pls anyone solve a coding ques
/warn solution asking
Sasuke
hi there, I wanted to share my code as a precompiled binary so that user doesn't not have to install C and other dependencies.
Sasuke
here is the code with other info- https://pastebin.com/tpaT5m50
Sasuke
I have to rely on static linking because I don't static libs (.a) of external libraries.
Sasuke
Why simple compilation doesn't work for you?
I just want to learn how to do it and my friends don't know shit about compilation so i have two reasons to do so
Anonymous
gcc my_code.c -o a.out
Sasuke
gcc my_code.c -o a.out
bro external libs (sdl2, sdl2_image) is involved too and i wanna learn how to do it so kindly tell me how to do it.
Anonymous
I'm not a bro
Anonymous
You either provide dynamic libs with your binary
Anonymous
Or find static libs and link them with your code
Anonymous
Or find sources and compile them to static lib yourself
Sasuke
I'm not a bro
yes i can provide dynamic lib but those are not getting linked to the the path am using when i run the ldd program command they are showing standard path for libs
Sasuke
i included the compilation command and info of custom folder having dynamic libs on the pastebin above
zelika
my goal is to find the 5 prime numbers after the entered number. Is the code all wrong or is there a problem in the main part?
zelika
i entered 5 to try.i wrote the code accordingly.
Hermann
what does mean stack protector not protecting local variables: variable length buffer in C?
Anonymous
?
Zel
It means if your relaying on stack protection to prevent overflow exploitation you are mistaken in the case of the local varibles you are being warned about.
MᏫᎻᎯᎷᎷᎬᎠ
How Rose perform purge operation programmatically?
Nils
Does access to a vector<bool> from different threads leaad into data races?
VG
Write a C program to display your branch name based upon the branch code using switch statement?....
VG
Plz need code for this question
Dima
read the rules
VG
I read
gallo
Hi, I have a problem in C++, I' m reading strings from a file .txt UTF-8 and I want to write these strings in an other file txt ever in UTf-8 but I don't know why when I open the file to view the result the file is in UTF-16. I'm using terminal ubuntu on windows (wls), how can i solve?
Hermann
how learn assembly?
Anonymous
You read book
Anonymous
Or watch youtube video
Asdew
Or just start programming in it.
Nils
Ro access is fine, rw is not safe
ok, but why is something like that in the standard?
Nils
What is?
that it's unsafe on multithreading
Nameful
that it's unsafe on multithreading
Thread safe data structures have downsides
Nils
like?
Anonymous
like?
They're slow?
Anonymous
They can really slow down your program a lot
Nameful
like?
They need to do more stuff
Nameful
And thus they're slower as Mr Cooooooooom said
Anonymous
Well it's possible btw
Anonymous
Just use a locking function and hold a lock
Nils
What about using bitmaps?
Anonymous
Also then you can cry when the deadlock occurs
Nameful
What about using bitmaps?
If you want rw access from multiple threads with a vector, use a mutex
Nameful
/report
Anonymous
Alright
Dima
/ban
Anonymous
Interesting
Nameful
ah okay
And if you want a language that doesn't let you do things that aren't thread safe you should look into alternatives
Nameful
Like Rust!
Nils
Like what?
like vector<bool> but nvm I understood now
Anonymous
Why do you need a vector of bools?
Anonymous
Also I think there's something called atomic types in C++
Anonymous
Maybe @namefullest might know what those are
Artöm
Why do you need a vector of bools?
To make use of bits and use lees memory
#39424E
Hi. map<int, DWORD> thread_ids; map<int, DWORD>::iterator it_thread_ids; for (i = 0; i < threads_count; i++) { int currentThreadid = 0; tmp_id_thread++; ghThreads[i] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)marker, &thread_ids, 0, &dwThreadID); currentThreadid = GetThreadId(ghThreads[i]); thread_ids.insert(std::pair<int, DWORD>(tmp_id_thread, currentThreadid)); } When I try to delete an item: if (it_thread_ids != thread_ids.end()) thread_ids.erase(it_thread_ids); I get: "Expression: map/set iterators incompatible". How to remove an item from the map<>?