string

I'm from Romania.I don't work at school in C++ only in Pascal.I have some questions in C++ so please don't ignore me.
I must built a function which receives an integer and a vector string like this
{"0 2","1 0"}, am I must return two integers a and b.
My questins are:
1.How I must begin the functin...what parameters to use and where?
int maint(...?...)

2.a and b must receive the value from the string:
a=0+2
b=1+0

In Pascal I know how to do it but I don't know it in C++;
So pleace help me
Topic archived. No new replies allowed.