Copy and Paste  -   An Application to Copy/Paste Text  

 
S.No 4373 Name Furqan Date/Time 06-May-2020 06:13:59 PM

Copy text from below
#include <iostream>
using namespace std;

int main() {
string line;
cout << "Enter a string: ";
getline(cin, line);

for(int i = 0; i < line.size(); ++i)
{
if (!((line[i] >= 'a' && line[i]<='z') || (line[i] >= 'A' && line[i]<='Z')))
{
line[i] = '\0';
}
}
cout << "Output String: " << line;
return 0;
}




comments powered by Disqus
NEW ENTRIES
S.No Name Entry Time/Date
3403 c-program 03-Apr-2018 05:32:18 PM
3402 dddestxft 03-Apr-2018 05:30:35 PM

[First] [Prev] 31 | 32 | 33 | 34
 
web counter
web counter


To report any error messages or bugs, or other issues, please send email at: info@pakproject.com