اذهب إلى المحتوى
  • 0

المساعدة في حل سؤال بلغة ++C

حمامه السلام

السؤال

السلام عليكم بس اذا ممكن حل هاي السؤال في لغه سي بلس بلس

 Write a C++ class and call it Linear the

Linear class should have three fields
named x, y, z respectively and a constructor that initializes its fields to zeros and
prints (Linear constructor called). Then, write another class and call it Angular. It
should have three fields named x, y, z respectively and a constructor that initializes its
fields to zeros and prints (Angular constructor called). After that, write a third class
and name it geometry_msgs_twist with two fields: linear and angular (the ones you
created above) and a constructor prints (Geometry constructor called). The
Geometry_msgs_twist class should also have a method that returns the linear speed.
(speed= √(vx2+VY2+VZ2.  

Create an instance of the Geometry_msgs_twist class and print
the x field of the Angular class.

رابط هذا التعليق
شارك على الشبكات الإجتماعية

Recommended Posts

لا توجد أي إجابات على هذا السؤال بعد

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...