Anonymous
Maybe you will try this code
Berkus
a C one-liner?
Compilation
Compilation
I didnt understand what does this step does
int k = j / 3 + i / 3 + i / 3 + i / 3;
box[k].insert(val); } } }
Compilation
I guess you are concerning a single 3x3 block right?
Compilation
So ill be thankful if you explain to me how it works
Anonymous
Of course after while ok? Coz right now i cant due to some problems
Compilation
Ok thanks
Anonymous
Can someone explain the difference netween return this and return *this in c++
Anonymous
Please 😭
Berkus
return this; returns a pointer, return *this; returns a reference
Anonymous
I am struggling to run this file
Anonymous
Can you help
Anonymous
Anonymous
Isn't it possible to link or connect data file?
Berkus
there's no real reason to return *this by value
Berkus
Berkus
technically they're the same thing
Berkus
in case of this they're pretty much equivalent, because this can't be null
Григорий
Does it in C work differently?
Anonymous
Im lost honestly is there a simple example ?thank u
Anonymous
I cant distinguish :/
Berkus
yes, it's great
Anonymous
Berkus
Anonymous
Thank u both
Anonymous
I love u guyd
Anonymous
I understood
Anonymous
😁
Anonymous
So the chaining guarentees that b copies c 's values by ref ..same for a right?
Berkus
no
Anonymous
http://www.cplusplus.com/forum/general/135589/
Anonymous
I read this about chaining it didnt help that much ..
Anonymous
Could u please tell me what it is..thank u
Berkus
let's say it's not related to returning this by pointer or by reference
Anonymous
😂 brief is chaining important?
Anonymous
Where the tutors at?
Roxifλsz 🇱🇹
a = b = c goes from right to left while the stream operators go from left to right
Roxifλsz 🇱🇹
You probably could get the same result if you used stream operators to the other side (»)
Roxifλsz 🇱🇹
= and << are not the same, they're used for different purposes
Anonymous
My controversial question has made buzz
Anonymous
I have another one for u ..except its not related to C..its about OS.
Anonymous
Ignore the french comments xD
Anonymous
This is my algorithm
Anonymous
We have a critical section here. I dont understand the while loop..
Anonymous
I will translate if u want
Isc
no locks, no guards
Isc
This will explode
Anonymous
No its our professor course
Anonymous
I asked him he never answered clearly
Anonymous
Ignore the photo that i ve sent ... how peterson algorithm actually works ..i lost the idea 😔
Anonymous
Anonymous
This is better
Anonymous
My question is how the second while loop works?
Anonymous
And why pAtrying=False..doesnt that block A ..
Anonymous
Plz rescue me xD .. does anyone have any idea bout this ill be so gratefull
Álvaro
Anonymous
I really do not care what the owner of the pic says x) i just want to understande the algorithm..when i look at this pic and check my course I find conflicts a lot of contradiction
Anonymous
The problem is tht our professor inverted the 2nd while loop of process A..he says while(pBtryin and Turn =A)
Anonymous
This is wrong! Because we give the turn to B and if B is interested in Critical section and has the turn A will wait till the while loop ceases! Except my stupid professor sucks at explanation and ruin our minds with his irrational BS
Anonymous
I know ...easy stuff seem to appear easy but their depth and meaning requires effort ..so it doesnt seem retarded to me..i just wanna know if our teacher is correct or not
Anonymous
And here is his version
Anonymous
Entrer-sc is the function that allows us to get into Critical section
Anonymous
Ok forget about all what i ve mentionned above here is my isuue..what If process B still wants to be in critical zone and at the same time its no longer its turn
Anonymous
I promise this will be my final quest
Liam
Anonymous
Lets Code
Anonymous
Recomend thinking like a programmer to everyone
Anonymous
Its a book on what programmers actually do, solve problems using algorithms
Anonymous
Creative problem solving
Y
Hi
Anonymous
Is there any alternative for graphics.h in gnu gcc
Anonymous
How to draw a circle in new compiler with the help of header files
Liam
done.
fearless
Plus before combo1