#include <iostream>
usingnamespace std;
int main()
{
//cout << "Ivesk du string tipo kintamuosius" << endl;
string first = "Daily Programmer";
string second = "aeiou ";
// cin >> pirmas >> antras;
for(int i = 0; i < first.length(); i++)
{
for(int j = 0; j < second.length(); j++)
{
if(first[i] == second[j])
{
first[i] = '\0';
}
}
}
cout << first << endl;
return 0;
}
So I have this code rn and instead of printing a space for me I want to completely delete that particular character from the 1st word. How should I do It?
And I would like to know where can I get more info about string functions since most of the functions i see you guys using is new to me. And I believe that is the reason why I am not succeeding with these tasks.
Have you tried typing in std::string into your favorite search engine? There amongst the multitude of links you should be able to find documentation for this standard C++ class close to the top of the choices.