Having two problems with a program I have been having a hell of a time with. Beginner at programming. Constructor on line 14 of the first file is giving me an error: C:UsersCRBottiniDesktopLab3CBArray.h|14|error: return type specification for constructor invalid|
||=== Build finished: 1 errors, 0 warnings ===||
also lines 109 to 119 in the second file are causing a crash of the program. Any advice is greatly appreciated.
#pragma once
#include <string>
#include <iostream>
usingnamespace std;
/***************
* CBArray class
****************/
class CBArray
{
public:
/*********************************************
* Overloaded Constructor for private variables
**********************************************/
void CBArray(int newCapacity, bool newResize, int newNumbers, int newNumberSize);
/********************************************
* Set Function Declarations for private variables
*********************************************/
void setCapacity(int newCapacity);
void setResize(bool newResize);
void setNumbers(int newNumbers);
void setNumberSize(int newNumberSize);
/***********************************************
* Get Function Declarations for private variables
************************************************/
int getCapacity();
bool getResize();
int getNumbers();
int getNumberSize();
/************************************************
* Function Declaration for array parsing function
*************************************************/
void processes(string, int);
private:
/**********************
* Variable Declarations
***********************/
int capacity;
bool resize;
int* numbers;
int numberSize;
};