My program compiles and works correctly, but I have this warning:
Warning W8027 workingArea2.cpp 76: Functions containing for are not expanded inline
what does that error mean ?
Code:#include <iostream> using namespace std; class CRectangle { private: int x; string y; public: void set_values (int,string); string check() { int flag = 0; if (x!=4) cout << "false"<<endl; else for(int i=0;i<x;i++) { if (y[i]=='4') { cout << "correct"<<endl; flag = 1; } } if(flag == 0){ cout<<"incorrect"<<endl; } return y; } string check2() { } }; void CRectangle::set_values (int a, string b) { x = a; y = b; } int main () { int length; string codeNumber; string mystr = codeNumber; cout << "Insert a code of 4 characters:"; cin >> codeNumber; length = codeNumber.length(); CRectangle rect; rect.set_values (length,codeNumber); rect.check(); return 0; }