Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char A='!';
- char B='?';
- char C=',';
- char D='.';
- statitc int countA=0;
- statitc int countB=0;
- statitc int countC=0;
- statitc int countD=0;
- void countMarks(string text)
- {
- for(int i=0;i<text.length;i++)
- switch (text[i])
- {
- case A :
- countA++;
- break;
- case B :
- countB++;
- break;
- case C :
- countC++;
- break;
- case D :
- countD++;
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement