Useless. Why you even bother with sending variables if you will make it =0 anyway?
and how can i call it in main
It is a member function. Constructor to be precise. Why do you wrote it that way if you don't know how to use it?
I want to say it again: Error you got tells that there isn't main() function anywhere. There is several possible reasons: * cpp file where main() is is not included in project build list. * Showing great deal of standard compliance (sarcasm mode off) MSVC is waiting for function named differently from main() ( possibly _tmain(), check your compiler settings )
but the compiler still give the same error !!
so is it like what do you say " Showing great deal of standard compliance (sarcasm mode off) MSVC is waiting for function named differently from main() ( possibly _tmain(), check your compiler settings )" ?
There is no #endif at the end of your header. queue_1& queue_1<T1>::operator(queue_1&)
operator what?
And I still think that cpp file where your main function is is not in compile list. Because if this was compiled it were compile-time errors, not linking ones.
1>c:\users\odai\documents\visual studio 2010\projects\hw5\hw5\queueone.h(54): error C2143: syntax error : missing ';' before '<'
1>c:\users\odai\documents\visual studio 2010\projects\hw5\hw5\queueone.h(54): error C2988: unrecognizable template declaration/definition
1>c:\users\odai\documents\visual studio 2010\projects\hw5\hw5\queueone.h(54): error C2059: syntax error : '<'
1>c:\users\odai\documents\visual studio 2010\projects\hw5\hw5\queueone.h(54): error C2039: '=' : is not a member of '`global namespace''