Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<string.h>
- #include<cctype>
- using namespace std;
- int isVowel(char ch);
- int isConsonant(char ch);
- int main()
- {
- char s[101];
- cin.getline(s, 101);
- char* pch = strtok(s, " ");
- while (pch != NULL) {
- if (pch[0] >= 65 && pch[0] <= 90) {
- cout << pch[0];
- }
- /* if (isupper(pch[0])) {
- cout << pch[0];
- }*/
- pch = strtok(NULL, " ");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment