dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: 2kaud

Search: Search took 0.02 seconds.

  1. Thread: empty char

    by 2kaud
    Replies
    6
    Views
    549

    Re: empty char

    To create and initialise each element to its default init value (\0 for a char), consider



    auto matrix = new char*[N];

    for (int i = 0; i < N; ++i)
    matrix[i] = new char[N] {};
  2. Thread: empty char

    by 2kaud
    Replies
    6
    Views
    549

    Re: empty char

    How is the matrix defined? There are probably ways of initializing it without setting each value.
Results 1 to 2 of 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)