Compile main and class source.
Namespace
rswhite4 at googlemail.com
Fri Jul 5 13:24:50 PDT 2013
On Friday, 5 July 2013 at 20:22:08 UTC, Jaehunt wrote:
> How to import classABC? Here is my main.d
>
> import std.stdio, std.conv, std.exception, std.math, std.random;
>
> void main() {
>
> ABC a = new ABC( a, b, c, d);
> ABC b = new ABC( e, f, g, h);
>
> ABC sum = a.sum( b);
>
> writeln( a);
> writeln( b);
> writeln( sum);
>
> }
>
> }
E.g. with
import classABC;
More information about the Digitalmars-d-learn
mailing list