transfer java to c++
<p>In Java</p>

<pre><code>public int compareTo2(String that) {
    String sig1 = this.sort();
    String sig2 = that.sort();
    return sig1.compareTo(sig2);
}
</code></pre>

<p>In C++</p>

<pre><code>int compareTo2 (string that) {
    string sig1 = this.sort();
    string sig2 = that.sort();
    return strcmp(sig1,sig2);
}
</code></pre>

<p>The first is a Java program. I translated it to C++ program. Did I write it correctly? Thank you.</p>
