What should be added in code.
Name line..
Extracted text: int main() { Test Obj; cout <« obj.f2()="" «="" endl;|="" int="" val="Obj.f3(10).f2();" f4(obj);="" cout="">«><« obj.f2()="" «="" endl;="" system("pause");="" return="" 0;="" }="" hint:="" you="" can="" only="" make="" changes="" at="" the="" lines="" highlighted="" with="" yellow="" and="" numbered="" 1="" to="" 5="" b="" i="" line1:="" line2:="" line3:="" line4:="">«>Extracted text: Given the following code, what should be added/modified so the code works well, specify the line and the code # include using namespace std; class Test { //... //... int K; 1 public: void f1(int v) { K = v++; } int f2() { return K; } Test f3(int K) { if (K == 0) K = K; //.... else K = 8; //.... return K; //... } }; void f4(const Test &T) { int x; if (T.K == 7) x = T.K; else x = T.K + 3; } class test { Test MyTest; public: test() {} void print() { cout <« mytest.k="">«>< endl;="" }="">
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here