The problem is here:
node node;
After that, the name node
refers to the local variable, not the type. Since it’s a class type, you could refer to it as class node
or struct node
thereafter; but a better option might be to use a different name for the variable.
More Related Contents:
- C++ pointer decleration
- Do…while loop keeps looping even when condition is not met [closed]
- C++ delete – It deletes my objects but I can still access the data?
- Regular expression to detect semi-colon terminated C++ for & while loops
- Is the return type part of the function signature?
- Accessing arrays by index[array] in C and C++
- Why doesn’t delete set the pointer to NULL?
- ULL suffix on a numeric literal
- How do I use Reference Parameters in C++?
- Headers Including Each Other in C++
- know if .lib is static or import
- Printing prime numbers from 1 through 100
- How does overloading of const and non-const functions work?
- Variable number of parameters in function in C++
- What is indeterminate behavior in C++ ? How is it different from undefined behavior?
- Why doesn’t reference-to-member exist in C++?
- How can I make Visual Studio’s build be very verbose?
- Converting an int to std::string
- How to make Visual Studio use the native amd64 toolchain
- Why do reference type members cause implicitly-declared copy assignment operator to be deleted
- cc1plus: error: unrecognized command line option “-std=c++11” with g++
- How do I pass multiple ints into a vector at once?
- Can std::vector emplace_back copy construct from an element of the vector itself?
- Compile-time error: Multiple definition of ‘main’
- const char* concatenation
- std::thread::join() hangs if called after main() exits when using VS2012 RC
- Cross Platform Way to make a directory including subfolders?
- Can I call memcpy() and memmove() with “number of bytes” set to zero?
- How to get duration, as int milli’s and float seconds from ?
- C++ Best way to get integer division and remainder