No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I want to store several structs in a vector, but the struct has a template so I get a compile error, how can I store the structs in the vector? Example: [code]template<class First, class Second> struct foo { First f; Second s; }; std::vector<foo> bar; //error! [/code] |
|
How can I play sounds under windows? I know about PlaySound() but I want to load the sound by myself, then play. |
|
I want to write a program to detect when my laptop's mouse is connected/disconnected but I don't know if there's any events called when a USB device is plugged in or maybe it's something else? I'd also like to know whether it's possible to tell what device the mouse input … |