Dima
What the f was going on
klimi
xD
Roxifλsz 🇱🇹
I just saw some russian name-calling and B& the two
Roxifλsz 🇱🇹
simple as
klimi
Roxi is the best
Roxifλsz 🇱🇹
how
klimi
i didn't even know that was russian
Dima
I just saw some russian name-calling and B& the two
Just saw their group and it feels like I am back at third grade again
the best for everyone
https://onecompiler.com/c/3yraaf6kq
the best for everyone
can anyone help me what is the problem its working but i am not able to get the result that it should be
Anonymous
can anyone help me what is the problem its working but i am not able to get the result that it should be
don`t write & inside printf printf("counter << %d", &counter); it should be printf("counter << %d", counter);
Anonymous
yep i know, white a minute)
Anonymous
i dont know how to share code with this website😂i will dm u okay?
Anonymous
it still get the counter 0
https://pastebin.com/NHrFtaaM
𝑴
What is the different between: int main() and int main(void)
𝑴
And is the indentation always meaningless in C?
mrab
And is the indentation always meaningless in C?
(void)meaning the main function would not receive params form system
mrab
such as environment variable
mrab
Just correct me if I'm wrong
mrab
🙈
Ighor
And is the indentation always meaningless in C?
you can put everything in one line and it still will be valid
Ighor
such as environment variable
this have no relation to return value
mrab
return value is the diff between int main and void main
Ighor
return value is the diff between int main and void main
if you use void main, no error state can be transferred to executing side, so for example in command line you can't pass exit status from your code to the terminal. This have no relation to environment variables
mrab
yes😂
Chat Boss
Vishal Sharma sent a code, it has been re-uploaded as a file
Anonymous
Vishal Sharma sent a code, it has been re-uploaded as a file
@LazyHippogriff No. There won't be a data race. You are using an exclusive lock for making changes to the vector (writer thread). And as long as all reader threads use the same shared mutex to read the vector, there is no problem. Do you have to copy the vector however? A search through the vector would be more efficient than a copy and hence you don't have to keep the writer thread waiting for a long time.
Anonymous
Actually TSan is telling me a data race in my code ...the actual code does a lot more things...I have tried to reduce the actual scenario and took only the relevant portion in the question.. haven't yet found out the cause of TSan's unhappiness
TSan would then pinpoint the actual reason it thinks there is a data race. Why don't you explore that? Moreover there are limitations with TSan. TSan works by reserving 4 chunks of memory for every chunk of memory that your program uses. It writes in these chunks everytime a thread reads or writes to a memory. If it detects a write or a read to the same memory without synchronisation, it will flag it. But since it has only 4 chunks, it cannot capture certain use cases and certain other use cases can trigger false positives. So you will have to manually go through the code to figure out what went wrong.
Anonymous
You can compile it with command line and you will the output: gcc main.c -o bin/output
\Device\NUL
Yes, we use OS syscall to perform it. When we use Libc function, it just a wrapper to actual syscall
Otniel
I need someone to code with me please
klimi
I need someone to code with me please
provide more information please
Otniel
provide more information please
I’m trying to code Mastermind game
klimi
I’m trying to code Mastermind game
and you need someone to code with you why? on what platforms are you developing it? if you don't provide enough information it will just look like spam/ad (tbh it really feels like this is just an ad for you project)
Otniel
No thanks
🆂🅸🅳🅳🅷🅸
00
Otniel
why?
To show you what I did so far
Anonymous
00
Nice bio
Otniel
You receive answers for free but you ask for money to help someone else
klimi
To show you what I did so far
just send github link or where you are hosting it
klimi
I don’t have GitHub account
so where is your work what you have done so far located?
Otniel
On a file in my laptop 💻
Otniel
It’s okay thanks for your time
Otniel
Have a nice day
klimi
On a file in my laptop 💻
i would recommend backing/versing your projects
Otniel
Okay
Mr
hey everyone
Natanim
Is there anyone here willing to help me add a new language to celtx application?
DaviChan
You write the source code in a text editor like vscode and use a compiler like clang to translate that source code to a machine readable format
DaviChan
But there actually might be a plugin for vs code to call a compiler from vs code directly
DaviChan
you need to setup vs code first with compiler paths and commands. it's better go with an ide like code blocks or Clion that has preconfigured cpp
It is personal prefenece ofc. but for almost all tasks i like a simple but fast text editor better. And most good text editors lile nvim or vscode also have plugin support, so you can get yourself almost all features an IDE has also. Also code blocks is ... ehh. Clion has a cmake debugger which is kinda cool. A collegue bought a license... now thinking about doing the same just for the cmake debugger lol
DaviChan
Nothing hard
Well it is a little more than that to use it efficiently, but agreed its not "hard" just different. But takes a while to get use to. However, when you are used to it and have configured it I think it is the best editor for coding to date
DaviChan
With g++ life is better
clang gang! 💪🏿
DaviChan
What is the different between: int main() and int main(void)
Im sure there efectively is none, bit you can always check on compiler explorer. Also yes, indentation is always meaningless in C (and thats a damm good thing!)
DaviChan
I would be serious about that lol. Like im here just for fun, but too many people expecting free stuff. Nah thanks, my time is worth money, if you don't agree, you don't respect me or my time, so why would I help someone like that 😅
DaviChan
Short questions and stuff sure np. But I think people here know what Im talking about
Anonymous
Hi
Anonymous
Please I need c++ guide That will help in c++ programming
Dima
google?
Blue
Hey can anyone decode a encrypted file made from the software
\Device\NUL
Jose
encrypt and encode isn't same thing
For the sake of gpt (not IA used in this explanation): Encrypt is not recoverable Encoding is recoverable
klimi
For the sake of gpt (not IA used in this explanation): Encrypt is not recoverable Encoding is recoverable
You cannot decrypt encrypted data? I would say both should be recoverable