This might be (in fact I can probably say it is) a really dumb question but it's been doing my head in since I've been looking at it. First off, I've been looking at C++ for a short time and it's confusing to me more than what Java ever was. I have an assignment that involves C++ and one of the requirements from a .h file reads;
/** * Constructor that will build an initial screen to hold the * specified array of registers. */ Screen(Register* registers, int numRegisters);
Now this is the dumb bit; I don't understand what it's asking to be done? The register .h file is basically a struct holding data such as strings, int's, etc. Could someone put this into layman's terms for me and point me in the right direction of what I would need to do? This is from main.cpp with said constructor in use;
int numRegisters = 5; Register *registers = Setup::buildRegisters(numRegisters); // Create the screen and add/set the registers Screen screen(registers, numRegisters);
Apologies for wasting anyones time who reads this.
Edited 3 Years Ago by cppfml