⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newdate.cpp

📁 Since the field of object oriented programming is probably new to you, you will find that there is a
💻 CPP
字号:
                              // Chapter 7 - Program 10 - NEWDATE.CPP
#include "newdate.h"

extern int days[];

         // This routine ignores leap year for simplicity, and adds
         //  the days in each month for all months less than the
         //  current month, then adds the days in the current month
         //  up to today.
int new_date::get_day_of_year(void)
{
int index = 0;

   day_of_year = 0;

   while (index < month)
   {
      day_of_year += days[index++];
   }

   return (day_of_year += day);
}


// Result of execution
//
// (This file cannot be executed)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -