To call new Employee[count]
you need an Employee
default constructor (Employee::Employee()
).
Employee::Employee(SymbolStr sstr, int* egn, int* cd)
isn’t a default constructor.
More Related Contents:
- Questions regarding constructors
- program.cpp:12:140: error: in C++98 ‘x’ must be initialized by constructor
- Branching statements doesn’t work? Giving me a negative answer when it’s supposed to be positive
- How can I insert element to vector instead the element already exists in the vector?
- Dynamic memory allocation of array in C & C++
- Storing C++ template function definitions in a .CPP file
- Why is enum class preferred over plain enum?
- In this specific case, is there a difference between using a member initializer list and assigning values in a constructor?
- Do built-in types have default constructors?
- Have you used any of the C++ interpreters (not compilers)? [closed]
- Create WCF service for unmanaged C++ clients
- Header guards in C++ and C
- c++ template partial specialization member function [duplicate]
- Isn’t the template argument (the signature) of std::function part of its type?
- Using a STL map of function pointers
- The simplest and neatest c++11 ScopeGuard
- Using float gives “call to overloaded function is ambiguous” error [duplicate]
- Find out whether a C++ object is callable
- Why would someone use #define to define constants?
- Function Overloading Based on Value vs. Const Reference
- Why do we need to use boost::asio::io_service::work?
- How to use graphics.h in codeblocks?
- Does boost have a datatype for set operations that is simpler than the STL?
- Using `std::function` to call non-void function
- Using std::string_view with api that expects null-terminated string
- For loop prints an extra comma
- Implementation of Permutation, Combinations and PowerSet in C++ [duplicate]
- Is there a safe navigation operator for C++?
- what is return type of new in c++?
- How do I find the current directory?