C++ 알파벳개수코드

글쓴이: 익명 사용자 / 작성시간: 금, 2017/11/17 - 9:16오전
class Count {
char *s; // 포인터 -> 입력받은 문자열의 주소
public
Count(); //생성자
void Input(); // 문자열 멤버변수를 입력 받는 함수
void Output(); // 문자열 멤버변수를 출력하는 함수
int CountUpperCase(); //대문자의 개수
int CountLowerCase();// 소문자의 개수
int CountNum(); // 숫자의 개수
}
void main(void) {
Count st;
st.Input();
st.Output();
cout << st.CountUpperCase();
cout << st.CountLowerCase():
cout << st.CountNum();
}
여기까지 했는데요 어렵네요ㅠㅠ
Forums:
...
...
1. 숙제 같아 보이는 내용
2. 익명 글쓴이
3. 무엇을 답해 달라는 건지 모호 (질문이 아니라 선언인 듯.)
답변 달 의욕을 떨어지게 만드는 3요소입니다.
그래도 이왕 답변 드리는 김에 참고할 수 있을 것 같아 보이는 링크 몇 개 드리도록 하지요.
http://en.cppreference.com/w/cpp/string/byte/islower
http://en.cppreference.com/w/cpp/string/byte/isupper
http://en.cppreference.com/w/cpp/string/byte/isdigit
댓글 달기