Using C Libraries for C++ Programs

后端 未结 7 2388
北海茫月
北海茫月 2020-11-27 14:50

I am trying to control Dynamixel servos using a GUI made using Qt. Dynamixel provides a C set of C libraries to control the motors, while the only way of making GUI\'s I kno

7条回答
  •  余生分开走
    2020-11-27 15:10

    Yes - C++ can use C libraries.

    This is an example that uses libc the main C library

    #include 
    
    int main()
    {
       printf("%s\n", "Hello world");
       return 0;
    }
    

提交回复
热议问题