본문 바로가기

hahahia

검색하기
hahahia
프로필사진 hahahia

  • hahahia (109)
    • Kafka (2)
    • Spring (0)
    • Language (40)
      • C (11)
      • C++ (10)
      • C++ STL (8)
      • Assembly (7)
      • Python (1)
      • Java (3)
    • Windows Programming (22)
      • Windows::System (12)
      • Windows::C# (5)
      • Windows::API (5)
    • Web Programming (17)
      • HTML & CSS (4)
      • JavaScript (7)
      • JSP (6)
    • Linux (4)
      • Linux Programming (3)
    • Security (3)
      • Research (3)
    • Algorithm (10)
    • Data Structure (7)
    • 투자일지 (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • hkpco
  • sosal
  • dakuo
  • 앨리삵
  • sLo
  • yumere
  • Newheart
  • LICS
  • 잉여잉여
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • java
  • 포인터
  • C
  • beans
  • array
  • CSS
  • 악성코드
  • query
  • HTML
  • algorithm
  • function
  • UTF-8
  • API
  • meta
  • 자료구조
  • Call-by-reference
  • request
  • Kafka
  • 투자
  • JavaScript
  • CLASS
  • jsp
  • 윈도우즈
  • System
  • WebProgramming
  • OOP
  • 노드
  • c++
  • Sort
  • windows
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록stl (1)

hahahia

map

Member function - begin, end, empty, insert, erase, Find, size, clear 형식 : map mp; /* 주어진 한 줄의 문자열을 map을 사용하여 오름차순으로 A~Z까지 몇 번 나왔는지 출력 “ABABAZCDEBOOZQRSSRRR” A : 3 D : 1 Q : 1 Z : 2 B : 3 E : 1 R : 4 C : 1 O : 2 S : 2 */ #include #include #include using namespace std; int main() { string s; map mp; map::iterator it; cin>>s; for(int i = 0 ; ifirst, (it->second)+1); } mp.clear(); }

Language/C++ STL 2012. 3. 24. 12:14
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바