Personal programming record
We often find two parameters named "argc" and "argv" in main function like,
int main(int argc, char** argv)
This algorithm realises the searching method for maximum subarray by changing the initial value when the sum is below 0.
The C++ code shows as follow: