الكود في الجوال يتنفذ أما في الكمبيوتر لا يتنفذ ويظهر الخطأ: no operator "<<" matches these operands operand
هذا هو الكود قمت بنسخه من الموقع.
#include <iostream>
using namespace std;
int main()
{
// str هنا قمنا بتعريف متغير نصي إسمه
string str = "welcome harmash.com";
// str رقم 8 في النص index عند الـ "to " هنا قمنا بإضافة الكلمة
str.insert(8, "to ");
// بعد أن قمنا بإجراء تعديل عليها str هنا قمنا بطباعة قيمة المتغير
cout << str;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
// str هنا قمنا بتعريف متغير نصي إسمه
string str = "welcome harmash.com";
// str رقم 8 في النص index عند الـ "to " هنا قمنا بإضافة الكلمة
str.insert(8, "to ");
// بعد أن قمنا بإجراء تعديل عليها str هنا قمنا بطباعة قيمة المتغير
cout << str;
return 0;
}
الكود في الجوال يتنفذ أما في الكمبيوتر لا يتنفذ ويظهر الخطأ:
no operator "<<" matches these operands operand
no operator "<<" matches these operands operand