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

📄 header.h

📁 我学习C++ Primer Plus过程中写下的课后作业的编程代码
💻 H
字号:
// golf.h -- for pe9-1.cpp
#ifndef HEADER_H_
#define HEADER_H_

const int Len = 40;
struct golf
{
	char fullname[Len];
	int  handicap;
};

// non-interactive version;
// function sets golf structure to provided name,handicap
// using values passed as arguments to the function
void setgolf (golf & g, const char * name, int hc);

// interactive version;
// function solicits name and handicap from user
// and sets the members of g to the values entered
// returns 1 if name is entered, 0 if name is empty string
int setgolf( golf &g);

// function resets handicap to new value
void handicap (golf & g,int hc);

// function displays contents of golf structure
void showgolf (const golf & g);

#endif

⌨️ 快捷键说明

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