i just want to understand why i cant create object with braces like this () i dont understand what is the problem
"BSNode.h"
#pragma once
#include <string>
#include <iostream>
template <class T>
class BSNode
{
public:
BSNode() {
}
void printNodes() const {
std::cout << "test" << std::endl;
}
};
"main.cpp"
#include "BSNode.h"
int main()
{
BSNode<int> bsnodeInt1();
BSNode<int> bsnodeInt2;
bsnodeInt1.printNodes();
bsnodeInt2.printNodes();
return 0;
}
im getting this two errors
main.cpp 3 expression must have class type
main.cpp 3 left of '.printNodes' must have class/struct/union