+ 11
What is the problem in this code?
The compiler says'' variable is set but not used '' what is it mean??? https://code.sololearn.com/chnuko8jcowS/?ref=app
26 Antworten
+ 3
I gaved them values and I want it to print them on screen . I didn't get the idea of it but now I realize that to use cout<<n.Reg_no;
And I successfully did it.
https://code.sololearn.com/chnuko8jcowS/?ref=app
+ 7
Oma Falk 😂😂 i think he have skills he dont need to post question actully he can do it
+ 4
Naveed Ahmad 🇵🇰 Doesn't matter. Object or variable can be of any type. You have to use otherwise you will get this warning.
+ 4
Why u made your code more complex you can easily print these three numbers wht need to divide it into functions
+ 3
Naveed Ahmad 🇵🇰 It means you have just declared the variable but didn't use anywhere. So it is just a warning.
+ 3
Thanks everyone !
I just comeback after 2 weeks and I forgot such things in coding.😟
+ 3
You called me that " it's not complicated use your own brain " and I did it.😍
+ 3
Now it's ok bro.venda hajsman
+ 3
I think
you want to unlock your "self-learner" badge
😂
+ 3
Nice bro
+ 3
Thank you.
+ 2
Naveed Ahmad 🇵🇰
What do you expect the code to do?
Is there any command that could bring the values to the screen or do anything else with them?😉
+ 2
What are you trying to print through this program. U made some functions and u calling with dot and u assign some values in main where is your () round brac.
+ 2
I well start practicing again to remember everything and recover myself back in coding Oma Falk . I utmost thankfull to you.
+ 2
C,Cpp,Java,Html. Now it's not complex for me it's a bit easier.
+ 2
I don't see any error
+ 2
ŚĄŃ no bro I already unlocked it watch my old replies you we'll understand.
+ 2
It's great, I don't see any errors.
+ 1
AJ Anant yes bro but it's only the object of the class "car" .
+ 1
It's running correctly