Guys, I've got a class TvProgram(The program it self), and a class TvWeek(the programs in the week), the class TvWeek consists of a maximum of 100 programs, now I need to make a method that adds a program to the week and adds the amount of the current amount of programs in that week by 1. How do I do that?
internal class TvWeek { private TvWeek() { TvProgram[] arrProg = new TvProgram[100]; } private int current; public void TvProgramAdd(TvProgram Program) { arrProg[current++] = Program; } }}
internal class TvWeek { private TvWeek() { TvProgram[] arrProg = new TvProgram[100]; } private int current; public void TvProgramAdd(TvProgram Program) { arrProg[current++] = Program; } }}