Displaying class variables. Using string as parameter in printf function.
<p>I'm trying to figure out how classes work, but I'm having a bit of trouble</p>

<p>main.cpp</p>

<pre><code>#include &lt;stdio.h&gt;
#include "Student.h"
#include &lt;stdlib.h&gt;

void main()
{
Student students;

students.Print();

system("pause");

}
</code></pre>

<p>Student.h</p>

<pre><code>#pragma once
#include &lt;string.h&gt;
#include &lt;iostream&gt;
using namespace std;

class Student
{
public:
    Student(void);
    ~Student(void);
    void Print(void);
private:
    int IDone;
    int IDtwo;
    string studentOne;
    string studentTwo;
};
</code></pre>

<p>Student.cpp</p>

<pre><code>#include "Student.h"

Student::Student(void)
{
    studentOne = "John Doe";
    studentTwo = "Jane Doe";
    IDone = 227768;
    IDtwo = 227769;
}

Student::~Student(void)
{
}
void Student::Print(void)
{
    printf("Student name: %s\n", studentOne);
    printf("Student ID: %d\n", IDone);
    printf("Student name: %s\n", studentTwo);
    printf("Student ID: %d\n", IDtwo);

}
</code></pre>

<p>When this runs I get:</p>

<pre><code>    Student name: &lt;null&gt;
    Student ID: 227768
    Student name: &lt;null&gt;
    Student ID: 227769
</code></pre>

<p>Later I want to be able to change the names and IDs. Also, it is possible to have these member in a type of array so I could print it by going student[0] and student[1]?</p>
