return value

G

Gianni Mariani

baron said:
hi
how could return two or more var of a function?

Look at a previous post with the subject "Function returning two values"
posted with message id : (e-mail address removed)
 
B

blytkerchan

hi
how could return two or more var of a function?
Try returning either an std::pair or a boost::tuple, or if you want
your values to have names, return a struct with them.

rlc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,049
Members
47,655
Latest member
eizareri

Latest Threads

Top