Is it legal to have a vector of struct to be returned as the output of a user-defined function? I can't seem to get it to work? Thanks.

yes, although it will be copied, which might be slow

what doesn't work? post your code

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.