c2 classes

aerto cvsc at gmx.com
Fri Apr 6 13:41:50 UTC 2018


its possible to make this work ??

import std.stdio;


class UUsers
{
public:
     int age;
}


class users
{
public:
     int[int] uid;

}


void main() {
	
	users newuser = new users();
	newuser.uid[0].age = 23;
	writeln(newuser.uid[0].age);

}





More information about the Digitalmars-d-learn mailing list