Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Strict warning: No AI . Solve it immediately. AX 0 8 Jambo, ninahitaji usaidizi kwa kazi hii katika C + + . Nimechapisha moja hapo
Strict warning: No AI Solve it immediately.
AX
Jambo, ninahitaji usaidizi kwa kazi hii katika C Nimechapisha moja hapo awali lakini suluhisho halikufanya kazi bado kuna makosa. Huwezi kurekebisha chochote kando na sehemu ya KOSI YAKO.
KUMBUKA HUWEZI KUREKEBISHA MSTARI HUU KATIKA MSIMBO : string toString return ptoString to ptoString; NIMECHAPIA KABLA, MAJIBU HABADILI MSTARI HUU DAIMA
Muundo wa Sehemu
Nakili nambari yako kutoka kwa Muundo wa Sehemu mjenzi na vijiti vya wanachama unavihitaji kwa shida hii.
Kisha ongeza nambari ya kitendakazi cha moveByint deltaX, int deltaY kwenye Sehemu ili tuweze kuhamisha sehemu hiyo kwa kiasi fulani katika x deltaX na kiasi fulani katika y deltaY Kuhamisha sehemu kunapaswa kusogeza ncha zote mbili.
Tunafafanua msimbo wote ndani ya tamko la darasa. Kwa hivyo hauitaji Sehemu :: mbele ya ufafanuzi wako wa mjenzi. Hii inafanya kazi kwa miradi rahisi ya faili moja kama hii. Usifanye hivi katika kazi.
MSIMBO:
#pamoja na
#pamoja na
kutumia nafasi ya majina std;
alama ya darasa
Privat:
int x ;
int y ;
umma:
Hatua
Pointiint xVal, int yVal
moveByxVal yVal;
kamba toString
return tostringx tostringy;
void moveByint xVal, int yVal
x xVal;
y yVal;
;
sehemu ya darasa
umma:
string toString return ptoString to ptoString; HUWEZI KUREKEBISHA MSTARI HUU PIA
Usirekebishe chochote juu au juu ya mstari hapa chini
CODEYAKOHAPA CHINI
CODEYAKO
void moveByint deltaX, int deltaY sogeza sehemu kwa xVal na yVal
p moveBydeltaX deltaY;
p moveBydeltaX deltaY;
HII ndio sehemu niliyoongeza lakini bado inaonyesha makosa.
SehemuPointi p Pointi p
hiip p;
hiip p;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started