السلام عليكم بس اذا ممكن حل هاي السؤال في لغه سي بلس بلس
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.
السؤال
حمامه السلام
السلام عليكم بس اذا ممكن حل هاي السؤال في لغه سي بلس بلس
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.
0 أجوبة على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.