You’re not using the return value of the recursive call. You need to do:
return load_price();
More Related Contents:
- Algorithm (especially for c++) to show Every Permutation
- divide a number by 2 recursively
- does cout before return statement of recursive function stops it?
- Function Recurssion: [duplicate]
- How can this code be reversed? (recursion)
- C++ throwing exception in recursive algorithm
- Reflection and refraction impossible without recursive ray tracing?
- Regular expression to detect semi-colon terminated C++ for & while loops
- What exactly is a reentrant function?
- Tail recursion in C++
- Is it legal to recurse into main() in C++? [duplicate]
- Does C++ limit recursion depth?
- Headers Including Each Other in C++
- Is this infinite recursion UB?
- Stack overflow caused by recursive function
- Understanding Recursion to generate permutations
- Write a recursive function that reverses the input string
- Howto create combinations of several vectors without hardcoding loops in C++?
- Can lambda functions be recursive? [duplicate]
- When to use recursive mutex?
- Creating N nested for-loops
- Recursion in c++ Factorial Program
- What’s time complexity of this algorithm for finding all combinations?
- sizeof an array passed as function argument [duplicate]
- Determine if int is not 0 with no if statements
- How does delete[] “know” the size of the operand array?
- C++, Free-Store vs Heap
- Is there a way to access the underlying container of STL container adaptors?
- C++ memory model and race conditions on char arrays
- Visual Studio Warning C4996