#include"MyString.h"
#include<iostream>
MyString::MyString()//default constructor
{
length=0;
data=NULL;
cout<<"Default called by right none is called"<<endl;
system
以前にVisual Studioを使用した後、RedHatでg ++コンパイルに移動したときに面白いエラーが発生しました。 私はこのようになりますループしています。データ[i]の for(unsigned int i = 0; i < data.size(); i ++){
for(int j = 0; j < data[i]->size; j++){
cout << d
私は基本的なシェルで作業していますが、以下のループでは、プログラムはマークされた行を超えて実行されません(代わりにすぐにループします)。私がコメントアウトすると、ブロック全体が再びループする前に完了します。何が起きてる? #include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int m