How to get a USB device's path like /dev/ttyACM0 or /dev/ttyUSB0 according to its idVedor and idProduct? The subsequent function needs this path instead of its idVendor and idProduct.
Notice: by C/C++ code, not by Command.
I am using Qt and CentOS.