C++ function prototypes?

前端 未结 3 1219
粉色の甜心
粉色の甜心 2021-01-21 00:23

Here goes newbie question number 5, but I don\'t have a teacher.. so.. anyhow here we go:

I\'m wondering if is necessary to have function prototypes at the top of the fi

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-21 01:10

    This works when you have tiny functions. It works less well when they get long. Or when you have more than one file of code. As a matter of style, many teachers demand that even tiny applications be written with the structure that serves large applications well.

提交回复
热议问题