Add this line before main function:
void swapCase (char* name);
int main()
{
...
swapCase(name); // swapCase prototype should be known at this point
...
}
This is called forward declaration: compiler needs to know function prototype when function call is compiled.
More Related Contents:
- Why won't clang compile this source code that works in VS2012?
- Why does this tell me that "gender" is an undeclared identifier on line
- Why does the expression 'a++ += b' give an error?
- C++ Programming Error [duplicate]
- warning C4018: '<' : signed/unsigned mismatch [closed]
- “does not name a type” error c++ [duplicate]
- computer science
- Resolve build errors due to circular dependency amongst classes
- What is an ‘undeclared identifier’ error and how do I fix it?
- “Undefined reference to” template class constructor [duplicate]
- c++ multiple definitions of a variable
- Why is this program erroneously rejected by three C++ compilers?
- How do I concatenate multiple C++ strings on one line?
- c++ compile error: ISO C++ forbids comparison between pointer and integer
- Template issue causes linker error (C++) [duplicate]
- StdAfx + Header file – Order of inclusion in MFC application
- invalid conversion from ‘const char*’ to ‘char’
- extra qualification error in C++
- Initializing container of unique_ptrs from initializer list fails with GCC 4.7
- C++ mutex in namespace std does not name a type
- “Symbol(s) not found for architecture x86_64” on QtCreator project
- Fatal error: “No Target Architecture” in Visual Studio
- error::make_unique is not a member of ‘std’
- cc1plus: error: unrecognized command line option “-std=c++11” with g++
- error: Class has not been declared despite header inclusion, and the code compiling fine elsewhere
- Deciphering C++ template error messages
- Linking files in g++
- Can’t get visual studio C++ include file ‘excpt.h’ to get installed
- Assert that code does NOT compile
- SFINAE tried with bool gives compiler error: “template argument ‘T::value’ involves template parameter” [duplicate]