Idunno if you got the answer to this question or if I'm too late, feel free to message me if I'm not!
A constructor, member initialization lists and also the default member initializer. Here you see all three (in reality you choose one construct per variable).
class A
{
public:
int x = 0;
A() : x(1)
{
x = 2;
}
};
Answer:
#include<bits/stdc++.h>
using namespace std;
int main()
{
string st;
getline(cin,st);
int i=0;
while(i<st.length())
{
if(isupper(st[i]))
{
st.erase(st.begin()+i);
continue;
}
i++;
}
cout<<st<<endl;
return 0;
}
Explanation:
I have included the file bits/stdc++.h which include almost most of the header files necessary.
For taking the input as a string line getline is used.
For checking the upper case isupper() function is used. cctype header file contains this function.
For deleting the character erase function is used.
Just quizlet it believe me it will help 100%