Create function "ArmstrongNumbers" which has two integer parameters (type "int"), let call them p and q, which returns a vector whose elements are all Armstrong numbers in the range of p up to q, sorted in increasing order.
example:
p= 3000000 q= 10000000
function needs to return vector 4210818, 9800817,9926315
If in the given range has no Armstrong's numbers , program should write error message:
"No Armstrong's numbers in the required range ".
We can't do your homework for you, were not slaves. if you need help at least attempt something and then come back to us. I'll give you some tips but that is it. Include the vector library #include <vector> and then make a function of type vector vector<int> func(int p, int q) and then create a vector in there and store all the armstrong numbers in that vector and then return it. It's your job to do the rest and the logic not ours. We can only help.