Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <stdlib.h>
- int main()
- {
- std::string input;
- std::cout << "Enter a sentence:" <<std::endl;
- getline(std::cin, input);
- std::string input2 = input.substr();
- for(int i = 0; i <= input.size(); i++)
- {
- if(input[i] != ' ')
- {
- if(atoi(input2.c_str()) != 0)
- {
- }
- else
- {
- std::cout << input[i];
- }
- }
- else
- {
- std::cout << std::endl;
- }
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement