#ifndef QWERT_H
#define QWERT_H
const int x [] = {1, 2,};
const int z = 3;
#endif
#include <iostream>
#include "qwert.h"
class Class
{
int y [x[0]];
int g [z];
};
int main ()
{
int y [x[0]];
Class a_class;
}
I can’t understand why this is not working. Other people with this problem seem to be trying to dynamically allocate arrays. Any help is greatly appreciated.
source
share