내용은 Implement a class Student. For the purpose of this exercise, a student has a name and a total quiz score. Supply an appropriate constructor and methods getName(), addQuiz(int score), getTotalScore(), and getAverageScore(). To compute the latter, you also need to store the number of quizzes that the student took. Supply a StudentTester class that더 보기
Day: 2009 3월 23
3주차 C++숙제가 나왔습니다!!
내용은 아래와 같아요~~ 1. Your boss, Juliet Jones, is getting married and decides to change her name. Complete the following program so that you can type in the new name for the boss: int main() { Employee boss(“Jones, Juliet”, 45000.00); /* your code goes here; leave the code above and below unchanged */ cout
내맘대로 강좌 C++편 6 (함수편)
이번에는 함수편이야. 먼저 우리가 C++언어를 짤때 항상 들어가는 int main() { return 0; } 에 대해 설명하려고해. 왜 함수예기를 한다고 하고서 main예기를 하냐고? 그야 main이 함수니까 그러지. int main() 이거는 함수 main을 선언한다는거야 그러면서 int형의 값을 반환하고 인자는 안받겠다는거야. 이름이 main이라는것은 프로그램을 실행시키면 맨처음 불려지는 함수라는 뜻이고, 그러면 이제 선언과 반환과 인자에 대해 알아봐야지,더 보기