Defining an Array
Vino
vino.bheeman at hotmail.com
Sat Dec 16 13:52:32 UTC 2017
Hi All,
Request your help for the below as how do i add an item to a
array in the array is defined as Type 2.
Type 1: Working
import std.conatiner.array;
void main () {
auto PStore = Array!(string)("Test1", "Test1")
}
Type 2: not working
import std.conatiner.array;
void main () {
Array!(string) PStore;
PStore = ("Test1", "Test1"); or
PStore ~= ("Test1", "Test1"); or
PStore.insertBack("Test1", "Test1");
}
From,
Vino.B
More information about the Digitalmars-d-learn
mailing list