Calling a class and returning data?
<p>I'm a bit of a newbie, so some help here would greatly be appreciated. I have a class called Device which gets a devices screen size:</p>

<pre><code>int Device::GetDisplay()
{
 DisplayInfo display;
 int displayArray [2];
 displayArray[0] = display.pixelSize().width();
 displayHeight[1] = display.pixelSize().height();

 return displayArray;
}
</code></pre>

<p>It returns an array, is there a better way to return the data?</p>

<p>Also is there a better way to call the class, It's currently called via:</p>

<pre><code>Device *device = new Device();
device.GetDisplay();
</code></pre>

<p>Could I call it without using Device <code>*device = new Device();</code></p>

<p>Thanks!</p>
