C++ Pointer Pointers to Your Objects

Description

C++ Pointer Pointers to Your Objects

#include <iostream> 

using namespace std; 

class Movie { /*from w  w w. j  av  a  2 s. c o  m*/
public: 
    string name; 
    int length; 
    int year; 
}; 

int main() 
{ 
    Movie *missing[10]; 

    for (int i=0; i<10; i++) 
    { 
        missing[i] = 0; 
    } 

    return 0; 
}



PreviousNext

Related