4-1 함수의 기초, 정수가 아닌 값을 리턴하는 함수, 외부 변수
·
2021-가을학기/프로그래밍개론
함수의 기초 예제 프로그램 [설계] 동작 : 텍스트 행들을 읽고 특정 패턴("ould")을 포함하는 행들을 출력한다. 의사코드 while (there's another line) if (the line contains the pattern) print it 입출력 예시 Ah Love! could you and I with Fate conspire To grasp this sorry Scheme of Things entire, Would not we shatter it to bits -- and then Re-mould it nearer to the Heart’s Desire! Ah Love! could you and I with Fate conspire Would not we shatter it to..