Yes - have your function return a struct. Or return the values via reference parameters.
struct A {
int x, y;
A( int a, int y ) : x(x), y(y) {}
};
A myfun() {
return A( 0, 42 ); // return two values
}
or:
void myfun( int & a, int & b ) {
a = 0;
b = 42;
}