string,array,function parameter and ... problem
I writed a code and i run into some problems. I want to pass data to an array in a object that is has private access (Encapsulation) Problems : 1. 'string' has been not declared - L14 2. 'string' does not name a type - L22 3. 'name' was not declared in this scope - L15, L19 4. 'c' was not declared in this scope - L15 5. return-statement with a value, in function returning 'void' [-fpermissive] - L19 6. 'x' was not declared in this scope - L31 7. expected primary-expression before 'userInput' - L34 8. 'userInput' was not declared in this scope - L31 9. invalid conversion from 'const char*' to 'int' [-fpermissive] - L38 App used and Compiler : Code::Block GNU GCC Compiler Code link : https://code.sololearn.com/cXxKj3iM27cH/#cpp