Vitaliy ◀️TriΔng3l▶️
If the first part is true, short-circuit and return true, if not, check the second part…
Ludovic 'Archivist'
Or this->x < a.x || this->y < a.y || this->z < a.z?
Oh I pointed out even this one has the bug, which is why I posted another one
Vitaliy ◀️TriΔng3l▶️
ah, yeah
Ludovic 'Archivist'
ah, yeah
Yeah, that is a pitfall you fall in once
Влад
Hello everyone!Help, urgently need! Given a real matrix of size m x n. Determine the number b1,..., bm, equal respectively to the differences of the largest and smallest values of the elements of the rows. Please tell me how to write the condition itself here.
klimi
why
Влад
why
What,why?
klimi
why you have posted it here
Влад
why you have posted it here
in this group cannot be or that?
Anonymous
Hello everyone i would like to get your advice on a project i'm working on it now
Anonymous
I have a main program call coreprog and a second one called receiver
Anonymous
What is the best practice should i integrate receiver.h into coreprog and then execute fork and run the function of the reciver or should i use execl to execute my receiver thanks in advance of your answers
Anonymous
Thx
Anonymous
Fork is for grandfathers... std:: thread
The receiver is a big program
Anonymous
Which has a for ever loop
Anonymous
It is like a daemon
Ilya
The receiver is a big program
This doesn't matter
Anonymous
This doesn't matter
In that cas i have to integrate my header file into coreprog to instanciate the thread
Anonymous
And after the xompilation i will have one executable instade of two
Anonymous
It seems good idea better then fork and exec
Anonymous
guys i am in CS and this is my first year i started in C++ on many sites and didnt feel good is there any recomended resourse?
Anonymous
i tried code academy and solo learn
数学の恋人
i tried code academy and solo learn
did you try learncpp.com or some other books?
Anonymous
no i didnt
桃桃乌龙
anyone recognize this pattern? i mean this list of jmp instructions, what is it called?
桃桃乌龙
anyone recognize this pattern? i mean this list of jmp instructions, what is it called?
nevermind, i found it https://reverseengineering.stackexchange.com/questions/19848/what-kind-of-code-would-produce-this-assemby-with-loads-of-jump-statements
Ilya
i tried code academy and solo learn
Don't use online courses, they all suck. Read books, listen to lectures at your university.
Ilya
cpprefereence.com
Another good resource is official c++ FAQ site , you'll find it. Another one is core guidelines by Satter & Stroustrup
Al
question: fopen with w option rewrite the file or append data to it?
Al
@unterumarmung thanks
Al
what do i need to use if i want to append?
Ilya
question: fopen with w option rewrite the file or append data to it?
It is not mutually exclusive. append is (Re)write at the end of the file. w means simply "for writing"
Anonymous
what do i need to use if i want to append?
https://en.cppreference.com/w/c/io/fopen Learn to use the docs
Ilya
what do i need to use if i want to append?
Move file pointer to the end and write
Al
ok thanks all
Anonymous
Hello, any one know google benchmark?
Anonymous
I need to pass a list of files to perform a benchmark
Anonymous
my problem is hot to pass this list
Anonymous
no, google_benchmark
Anonymous
https://github.com/google/benchmark#user-guide
Vüqar
Everyone hello
Vüqar
What is the problem of C ++ diamond?
MK
New beginner of programming.
MK
Excited to learn C.
Pavel
What is the problem of C ++ diamond?
https://www.freecodecamp.org/news/multiple-inheritance-in-c-and-the-diamond-problem-7c12a9ddbbec/
I_Interface
What is the problem of C ++ diamond?
No problem, coz C++ is making 2 sub-objects for you and u can call the one what u need.
Anonymous
hey guys can i get a video tutorial of database connectivity with c++
Jussi
Search youtube
Ludovic 'Archivist'
hey guys can i get a video tutorial of database connectivity with c++
If you want to work in C++ without reading, you are gonna need a parrot that can read
Ludovic 'Archivist'
What is the problem of C ++ diamond?
The use of inheritance where composition was the correct answer
klimi
Hello Sunny, nice to meet you again
klimi
@SunnY_MortaL welcome
Ludovic 'Archivist'
Meaning
97% of programming courses and documentations for common libraries and patterns are only available as text, better get the hang of reading than wasting hours searching video tutorials
Ilya
People who is CS students: Do you have among your programming tasks any tasks related to matrix algebra, like matrix multiplication, or other operations? Please state your country. This question is for investigation on how to teach C/C++.
Anonymous
Brazil. Yes. We have analytic geometry and linear algebra. But it is only prerequisite of studies on Graphic design
Do you have assignments to code operations with matrixes in your programming classes?
C.
But as for basic programming, no we dont have it, although matrix operations and things like Bhaskara formula are good for learning how to program, pseudocode and so
Chiranjeevi
Can some one explain me what is going wrong in this code https://pastebin.com/r8M3FV40
Chiranjeevi
Im trying to sort the pairs in the set in descending order of second value
Javi
And what is the problem?
Chiranjeevi
The order which i get is not as expected
Javi
You are printing the map, not the set
Chiranjeevi
Ok, sorry about that