안녕하세요. <div><br></div> <div>Bjarne Stroustrup가(발음이 너무 어려워..) 쓴 Programming Principles and Practice Usinc C++ 책을</div> <div><br></div> <div>공부하고 있는 학생입니다. 현재 variable 들의 name과 코딩을 할 때 대소문자 관련 부분을 공부하고 있는데<span style="font-size:9pt;line-height:1.5;">요.</span></div> <div><br></div> <div><span style="font-family:'나눔고딕', nanumgothic, 'se_NanumGothic', 'AppleSDGothicNeo-Regular', sans-serif, simhei;font-size:16px;line-height:30.4px;">Try This<br></span><span style="font-family:'나눔고딕', nanumgothic, 'se_NanumGothic', 'AppleSDGothicNeo-Regular', sans-serif, simhei;font-size:16px;line-height:30.4px;"> Compile the "Goodbye, cruel world!" program and examine the error messages. Did the compiler find all the errors? What did it suggest as the problems? Di</span><span style="font-family:'나눔고딕', nanumgothic, 'se_NanumGothic', 'AppleSDGothicNeo-Regular', sans-serif, simhei;font-size:16px;line-height:30.4px;">d the compiler get confused and diagnose more than four errors? Remove the errors one by one, starting with the lexically first, and see how the error messages change (and improve).</span></div> <div><span style="font-family:'나눔고딕', nanumgothic, 'se_NanumGothic', 'AppleSDGothicNeo-Regular', sans-serif, simhei;font-size:16px;line-height:30.4px;"><br></span></div> <div>이런 문제를 주어서 차근차근 해보고 있었습니다. "Goodbye, cruel world!" 프로그램은 아래와 같습니다.</div> <div><div style="text-align:left;"><img src="http://thimg.todayhumor.co.kr/upfile/201608/1472376860685c2db868384223bf249deff7037dc9__mn82294__w966__h494__f48916__Ym201608.jpg" width="800" height="409" alt="2.jpg" class="chimg_photo" style="border:none;" filesize="48916"></div><br></div> <div>그래서 실행해보니 저러한 errors가 나왔고, 먼저 main 함수 안에 있는 어휘적인 문제들을(대소문자 처리) 수정했습니다. </div> <div>(대소문자를 한 번에 다 수정했습니다.)</div> <div><br></div> <div>그리고 나서 실행을 해보았습니다. <div style="text-align:left;"><img src="http://thimg.todayhumor.co.kr/upfile/201608/14723770108131422898c84a2482ddaeec4c8d207d__mn82294__w1323__h417__f66772__Ym201608.jpg" width="800" height="252" alt="3.jpg" class="chimg_photo" style="border:none;" filesize="66772"></div> <div style="text-align:left;"><br></div> <div style="text-align:left;">실행을 해보니 저렇게 Main 관련 오류를 '이제서야' 저에게 알려주더군요. </div> <div style="text-align:left;"><br></div> <div style="text-align:left;">궁금한 점은 왜 이 오류를 처음에 알려주지 않고, Main 함수 안의 것들을 고치고나서야 알려주지는 궁금합니다.</div> <div style="text-align:left;"><br></div> <div style="text-align:left;">너무 사소한 질문이 아닌가 모르겠네요 ㅎㅎ... 그치만 이유를 도저히 모르겠어서 질문해봅니다. 알려주시면 감사하겠습니다!</div></div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.