parsed.org

Tips by tag: cppcli

Parameter arrays in C++/CLI by Matthijs on Jan 29, 2007 06:21 AM

Here's how to declare parameter arrays in C++/CLI:

int Add(... List<int>^ numbers)
{
    int total = 0;
    for each(int i in numbers)
    {
        total += i;
    }
    return total;
}
cppcppclidotnetlanguagesprogramming
RSS