I am really new to C++ so if it a is really stupid question I am sorry. I am trying to create an Object Dog but it won't allow me to pass in the name into the contractor here is the code
Main.cpp
#include <iostream> #include <string> #include "Dog.h" int main(){ std::string name = "Spike"; Dog *dog = new Dog('Name', 2); } Dog.h
#include <string> class Dog { public : std::string name; int age; Dog(std::string name , int age); }; Dog.cpp
#include "Dog.h"; #include <string>; Dog::Dog(std::string name, int age) { Dog::name = name; Dog::age = age; }