At the beginning you must declare the variable :
int array[100], beg, mid, end, i, num, n;
N is the only variable that you don’t declare but use.
More Related Contents:
- fstream read behavior upon hitting eof
- What is the most effective way for float and double comparison?
- Why are global and static variables initialized to their default values?
- Is pass-by-value a reasonable default in C++11?
- How to compile a 64-bit application using Visual C++ 2010 Express?
- How to implement atoi using SIMD?
- When are C++ macros beneficial? [closed]
- Standard library sort and user defined types
- How to display a dynamically allocated array in the Visual Studio debugger?
- Copy constructor and = operator overload in C++: is a common function possible?
- using std::is_same, why my function still can’t work for 2 types
- C++ std::vector vs array in the real world
- Is it possible to set timeout for std::cin?
- Is it ok to read a shared boolean flag without locking it when another thread may set it (at most once)?
- Overriding non-virtual methods
- In C++, is it still bad practice to return a vector from a function?
- Default argument in the middle of parameter list?
- Do c++ templates make programs slow?
- Getting a vector into a function that expects a vector
- Convert double to string C++? [duplicate]
- Understanding (simple?) C++ Partial Template Specialization
- Class inherited from class without default constructor
- Understanding gsl::narrow implementation
- In C/C++, is char* arrayName[][] a pointer to a pointer to a pointer OR a pointer to a pointer?
- Aligning static string literals
- C++ – std::thread crashes upon execution
- How to throw std::exceptions with variable messages?
- How to fix: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15′ not found
- “Proper” way to store binary data with C++/STL
- Video processing with OpenCV in IOS Swift project