hy.i am a beginner in c++ and y start to run into some little problems.(common stuff :) ).
y would like to ask a question about some rules using the operator '='.
Y now the basic meaning of it and how it works but y found a expression in witch y don't now how things work,and in what order the assignment is made .And if someone can explain me,y would appreciate it.
the exercises are: a=((b=c)=d); and (a=(b=c)=d);
a,b,c,d are random numbers.TY
aha..well thx for nothing.to be honest.and the word exercise,y use it because it was just the first thing that got in my mind..that what it is..how else can you cal that "thing"..call it expression or what ever you want.
and it is not homework,even if it is from a book y got,to do at home stuff on summer.not posting here so y get a 10*with you're help.
y will figure it out myself anyway.have a nice day
Whats in brackets get evaluated first, then the assignment goes from right to left like this;
1 2 3 4
(a=(b=c)=d)
(a=c=d) [ b = c ]
(a=d) [ c = d ]
(d) [ a = d ]
Skillless means no skill (Skill Less), maybe you didnt know that because your english is not very good,
your english has tricked yourself.
And yes, alot of homework questions are posted here, if it would be a homework like question from someone with 100 posts, id be glad to help, if its from someone with virtually no posts, my homework senses tingle
I told you to try some stuff yourself because that is the best way to learn, and its not very hard to test what the result would be.
well y admit my english is not even half as it should be,mainly because y am not from an english speaking country.but y try to do my best.and it was not a problem of knowing what "skillless " means,but just didn't see the word typed correctly.many "illllilil" things can be tricky sometimes.
anyway no need to argue on stuff like this. ty for the replay and the time u spend writing in boxes,step by step,and so on.
Y don't have so many posts because y don't have such a vast domain of knowledge in programing to answer and comment someone else problems.most of the time y read the reference window.functions and things in there.