Programming Basics SQL HTML CSS JavaScript Python C++ Java JavaFX Swing Problem Solving English English Conversations Computer Fundamentals Learn Typing

الكود في الجوال يتنفذ أما في الكمبيوتر لا يتنفذ ويظهر الخطأ: 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

تعليقات 2

أضف تعليق

يجب تسجيل الدخول حتى تتمكن من إضافة تعليق أو رد.

الدورات

أدوات مساعدة

أقسام الموقع

دورات
مقالات كتب مشاريع أسئلة