chase ref

address of reference?  ( similar to &)

cat chase_ref.cpp
#using <mscorlib.dll>
using namespace System;
int main()
{
    array<String^>^ arr = gcnew array<String^>(10);
    int i = 0;

    for each(String^% s in arr)    // ^% is similar to &
        s = gcnew String(i++.ToString());

        for( i=0;i<10; i++){
                System::Console::WriteLine(arr[i]);
        }
    return 0;
}

cat makefile
TARGET=chase_ref

all: $(TARGET).exe

.PHONY: all test mmm clean
.SUFFIXES: .obj
LOPT=

OBJS=$(TARGET).obj

$(TARGET).obj: $(TARGET).cpp

$(TARGET).exe: $(OBJS)
        link $(LOPT) $(OBJS)

.cpp.obj:
        cl -c -Wall -Od -clr $<

test: $(TARGET).exe
        ./$(TARGET).exe &

clean:
        -rm $(TARGET).exe *.obj *~ $(TARGET).manifest

mmm:
        cat $(TARGET).cpp
        @echo
        cat makefile

html:
        cat /dev/clipboard | code2html.exe | unix2dos