After defining friend function, can't access the private variable of a classBut Employee inherit Person class. I can access to Person class data using operator<< so why not ope...
After defining friend function, can't access the private variable of a classI've written a simple employee management project. I am facing problem when I am trying to assign va...
Can you implement an efficient C++ code for finding frequency of an element for a range into an array?I am a beginner in competitive programming. I've read a problem where I have to output the number of...
Why is complier showing (.text+0x20)||undefined reference to `main'|?I've written the following program. [code] #include<iostream> #include<sstream> #include<string> u...
How do I save an array of objects into a file and read the saved data from the file?I've written the following program. Now how do I save the object data saved into array to a file? an...
This user does not accept Private Messages