Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
class:os2014f:hw3 [2014/09/27 11:18]
mhshin created
class:os2014f:hw3 [2025/10/13 12:45] (current)
Line 3: Line 3:
 실행예: 실행예:
  
 +<​code>​
 There are 4 words stored. There are 4 words stored.
 The 1 th word is apple. The 1 th word is apple.
Line 19: Line 20:
 Wrong count = 6 Wrong count = 6
 <​draw_hangman(6) 결과> <​draw_hangman(6) 결과>
 +</​code>​
  
 +코드
  
 <​code>​ <​code>​
Line 30: Line 32:
 #include <​ctype.h>​ #include <​ctype.h>​
 */ */
- 
-#define MAX_WRONG_CNT 6 
  
 void draw_hangman( int n ); void draw_hangman( int n );
Line 144: Line 144:
 } }
  
-char getAlphaCapital( void )+char getAlpha( void )
 { {
 /*C /*C
Line 159: Line 159:
  
 </​code>​ </​code>​
 +
 +채점:
 +
 +총점 10점. 컴파일 안되면 -7. C++로 수정이 안된 부분이 있으면 부분 감점. ​
 +draw_hangman()에서 string 변수를 사용해서 코드를 짧게 구현하면 가산점 최대 5점. 이 가산점은 숙제점수 총점에 가산됨. 숙제가 만점이면 전체 총점에 반영 됨.
 
class/os2014f/hw3.1411791493.txt.gz · Last modified: 2025/10/13 12:59 (external edit) · [Old revisions]
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki