lotuslwt
how to set comment color to same in vim-code-dark plugin?
zaman
zaman
zaman
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]
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
Hussam
Anonymous
Anonymous
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
Anonymous
Sasuke
I have to rely on static linking because I don't static libs (.a) of external libraries.
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.
Hubert
Hermann
what does mean stack protector not protecting local variables: variable length buffer in C?
Anonymous
?
Hermann
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
Hermann
how learn assembly?
Anonymous
You read book
Anonymous
Or watch youtube video
Asdew
Or just start programming in it.
Artöm
Nameful
Nils
What is?
that it's unsafe on multithreading
Nils
like?
Anonymous
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
/report
Anonymous
Alright
Nils
Dima
/ban
Anonymous
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
Nils
Nameful
Like Rust!
Artöm
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
#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<>?