is it possable to do something like this?

Code:
struct program
{
	bla bla
};

int main()
{
int K = 6;

program LocalMachine[K];
Just need to create an array of the structure that will be different depending on what the variable K is equal to

can't just put 6 because the value will be different every time the prog is run.