Hi there, why does the following statement give an error in Qt?I have a class named "R" and r1 is an object of class "R". toString() is a string returning member function of class "R". when I run my program I get the following error.Qt Code:
cout << r1.toString() <<endl;To copy to clipboard, switch view to plain text mode
errorImage.jpg
I have to mention that the above does not give an error when run in pure C++. It's only when I run it in Qt that it gives an error.
Bookmarks