The WizardMan
New member
שאלה בC++
יש לי טיפוס 'שבר' (CFragment) ורציתי לכתוב פונקציית קליטה לאובייקט מסוג זה. אני מקבל error שאומר: error C2678: binary '>>' : no operator defined which takes a left-hand operand of type 'class istream_withassign' (or there is no acceptable conversion) כאשר אני עושה קריאה cin >> frag1; מה לא בסדר בקוד ?
יש לי טיפוס 'שבר' (CFragment) ורציתי לכתוב פונקציית קליטה לאובייקט מסוג זה. אני מקבל error שאומר: error C2678: binary '>>' : no operator defined which takes a left-hand operand of type 'class istream_withassign' (or there is no acceptable conversion) כאשר אני עושה קריאה cin >> frag1; מה לא בסדר בקוד ?