일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- AI
- 자연어 처리의 모든것
- 비전공자 빅분기 합격
- BoostCourse
- inplace=True
- tail()
- 스택에 배열 푸시하기
- colab
- 파인튜닝 메모리 해결
- Collection if
- head()
- pytorch zero to all
- DeepSpeed
- 자연어 처리 기법
- Naive Bayes Classifier for Document Classification
- C++
- 데이터 결측치
- Bag-of-Words
- 아이리포
- sklearn.ensemble
- 논문초록
- 챗지피티와 업무자동화
- list
- 데이터 시각화
- sqld
- Til
- SQLD 벼락치기
- llm
- Python
- interpolate()
Archives
- Today
- Total
목록스택에 배열 푸시하기 (1)
hyerong's Dev_world🎡

문제 정수 원소를 저장하는 stack을 class를 사용하여 구현하고, 이를 이용하여, 주어진 array의 정수 원소 n개 에서 100보다 큰 값을 역순으로 출력하는 프로그램을 작성하시오. (다음 main() 함수가 동작하도록 나머지 부분을 작성) int main() { mystack s1; int list[5] = { 32, 123, 27, 131, 242 }, i, x; s1.init(); for (i = 0; i 100) s1.push( list[i] ); while ( ! s1.stack_empty( ) ) { x = s1.pop( ); cout
문제풀이👩🏻💻
2023. 9. 24. 13:31