Anonymous
Can someone write for me a c program using if else statement pleasr
Harsh
Can someone write for me a c program using if else statement pleasr
Do it yourself man Readymade things won't do any good
Vishal
https://dev.to/visheshpatel/21-new-features-of-modern-c-to-use-in-your-project-3f87 Modern C++: new features ✍
Элвин
Hi
Элвин
I want write a programm in c++ using arrays, that can find biggest number in the areay
Элвин
How can i write
Элвин
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
Ask your specific questions
Artöm
Im new in c++ language , its my homework from university - can you explain more open pls
int arr[N]; // stuff int max = *std::max_element(arr, arr + N);
Vishal
are you allowed to post it?
Already seeked the permissions. This is no benefit post. And i am not spamming.
Dima
🤷‍♀️
Vishal
🤷‍♀️
Can u provide feedback if you dont mind?
MᏫᎻᎯᎷᎷᎬᎠ
How can i write
Using the keyboard
Элвин
Using the keyboard
You are soo funny dumbass
Anonymous
I want to use online compiler and compiler using gcc -fopenmp filename.c Does any online compiler support compiling like that?
MᏫᎻᎯᎷᎷᎬᎠ
You are soo funny dumbass
See?! It worked :)
Anonymous
Try godbolt or wandbox
In godbolt, I need to enter the command inside compiler options, right?
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
olli
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
The inline does not apply to the class but to the object d that is created in the global namespace. inline allows you to delcare global variables in the header file. To quite cppreferenece on inline: Because the meaning of the keyword inline for functions came to mean "multiple definitions are permitted" rather than "inlining is preferred", that meaning was extended to variables.
olli
https://dev.to/visheshpatel/21-new-features-of-modern-c-to-use-in-your-project-3f87 Modern C++: new features ✍
- According to recent(i.e. 2018 ISO C++ standard meeting) news, The standard committee decided that pointers will be deprecated in C++20 and will with very high probability be removed in C++23. you know this was a joke, right?
olli
From fluentcpp
have you looked at the date when it was posted?
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ᏫᎻᎯᎷᎷᎬᎠ
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ᏫᎻᎯᎷᎷᎬᎠ
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ᏫᎻᎯᎷᎷᎬᎠ
As far I understood how epochs work
MᏫᎻᎯᎷᎷᎬᎠ
Every 3 years cycle the standards will publish new epoch
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
olli
Every 3 years cycle the standards will publish new epoch
Okay let's assume epoch x deprecates raw pointers, which epoch dialect should the standard library use then?
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
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