tem.cpp:5:12: error: variable or field ‘print’ declared void
tem.cpp:5:12: error: ‘T’ was not declared in this scope
tem.cpp:6:14: error: ‘print’ was not declared in this scope
At first error, gcc say print isn't define, yes because i can't define print's prototype at main function.
Question:
How can i use a template function that i defined it after main() function. How i define it's prototype into main?