This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
class:os2014f:hw7 [2014/11/06 22:07] mhshin created |
class:os2014f:hw7 [2025/10/13 12:45] (current) |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| * void clear() 함수는 인자 없이 호출되면 내부 데이터를 모두 지운다. (1점) | * void clear() 함수는 인자 없이 호출되면 내부 데이터를 모두 지운다. (1점) | ||
| * int size() 함수는 인자없이 호출되면 저장된 데이터 수(int)를 리턴한다. (1점) | * int size() 함수는 인자없이 호출되면 저장된 데이터 수(int)를 리턴한다. (1점) | ||
| - | * bool find(...) 함수는 인자로 데이터를 넘겨주면 이미 저장된 데이터에서 같은 데이터가 존재하면 true를 아니면 false를 리턴한다. (Hint: algorithm::find 함수 활용) (3점) | + | * bool exist(...) 함수는 인자로 데이터를 넘겨주면 이미 저장된 데이터에서 같은 데이터가 존재하면 true를 아니면 false를 리턴한다. (Hint: algorithm::find 함수 활용) (3점) |
| Line 65: | Line 65: | ||
| Student s4("Shin", 90); | Student s4("Shin", 90); | ||
| | | ||
| - | check("find()", students.exist( s4 ), false ); | + | check("exist()", students.exist( s4 ), false ); |
| - | check("find()", students.exist( s3 ), true ); | + | check("exist()", students.exist( s3 ), true ); |
| system("pause"); | system("pause"); | ||