Anonymous
Can someone write for me a c program using if else statement pleasr
Harsh
Vishal
https://dev.to/visheshpatel/21-new-features-of-modern-c-to-use-in-your-project-3f87
Modern C++: new features ✍
Dima
Элвин
Hi
Элвин
I want write a programm in c++ using arrays, that can find biggest number in the areay
Элвин
How can i write
Artöm
Artöm
Элвин
Im new in c++ language , its my homework from university - can you explain more open pls
Pavel
std::max
You mean std::max_element?
Artöm
Yeah
Anonymous
Anonymous
Ask your specific questions
Artöm
Dima
Dima
🤷♀️
Vishal
🤷♀️
Can u provide feedback if you dont mind?
Anonymous
I want to use online compiler and compiler using
gcc -fopenmp filename.c
Does any online compiler support compiling like that?
MᏫᎻᎯᎷᎷᎬᎠ
Artöm
I_Interface
Artöm
Anonymous
Hello Mr @BinaryByter I just want to ask that I have checked your repo on GitHub and I want to ask a question from DebugMachine/debugMachine.h
Anonymous
Hii
Anonymous
Yes
How do I know the filename?
Anonymous
Please tell me as you created whole class (means every function of class) as inline. But what if compiler don't find enough resources to make it as inline (as replacing function call with function code on compile Time) , then there is any advantage to make it inline.. ?
@BinaryByter
Artöm
Paste code in local editor
Anonymous
Also, the compiler option includes what part of this -> `gcc -fopenmp filename.c`
Artöm
-fopenmp only
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
olli
I think it was 1 April
yes... in the end it turned out to be a few bloggers that decided to write about it as a joke
MᏫᎻᎯᎷᎷᎬᎠ
olli
I don't think such a thing would be accepted, because al the smart pointers have some overhead if passed around, it would break too much code and how are you supposed ti implement the standard library without raw pointers?!
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
Read this
https://twitter.com/supahvee1234/status/1183662568566677505?s=19
olli
Well
It could be
regarding backwards compatibility? There are still a lot of open questions
It doesnt solve the other issue(s) though
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
Lots of bad things is resolved with epochs
MᏫᎻᎯᎷᎷᎬᎠ
Because it is within the module unit
olli
https://t.co/4P4ZFrL0e9
yeah I read that paper, there are still some open questions, and still: how would you implement the standard library without raw pointers?
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
As far I understood how epochs work
MᏫᎻᎯᎷᎷᎬᎠ
Every 3 years cycle the standards will publish new epoch
Anonymous
Anonymous
Bcoz.. namespace is just for collection of declaration statements
Anonymous
But he defined functions in header file as header file is just for declaration and library is for definition
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
So you can implement the std without them
MᏫᎻᎯᎷᎷᎬᎠ
It's like C++ free yard
MᏫᎻᎯᎷᎷᎬᎠ
Tbh I didn't go over the paper word by word xD
klimi
so much going on here since lunatic got back UwU welcome back .
MᏫᎻᎯᎷᎷᎬᎠ
klimi
klimi
you should be the groups mascot
MᏫᎻᎯᎷᎷᎬᎠ
Anonymous
My openmp based program is only using 1 thread on my laptop. Do I need any other configurations/environment for multiple threads to work ?
Anonymous
I've no idea about this?
klimi
Use threads I guess
Dede
Hi, I’m working on this basic c program and I am stuck. Data validation function is not working properly. Any help would be much appreciated :
https://gist.github.com/wilfrantz/5c39fd075f34fd2903f6dca5d7df2352
Anonymous
is there a sscanf that can take in data from command line arguments
Dima
why
Anonymous
like sscanf(command_line_arguments,”%f”, &somearray[1])
Anonymous
i am trying to take the arugments from command like , put in a for loop to store the values in an array
Anonymous
@Neko_cpp
Anonymous
./a.out 1 2 3
Anonymous
int somearray[4] = {1,2,3}
Anonymous
so i can type in the arguments in a array so i can use that array for something else
Anonymous
i am coding in C btw
Anonymous
i know you have to convert the arguments to the data type i trying to store , since argv are characters
Anonymous