C++ Visual Studio 2022 中未调用函数

问题描述 投票:0回答:1

所以我的问题是我的

main function
太大了,所以我想创建许多在正确情况下由 main 调用的函数,但是当我进行实验时,我遇到了很多错误,包括函数不知道的错误
 struct Student
以及更多,所以我说让我们从头开始,从头开始,所以我做了一个新的
Void Function hello
并尝试在
case one is true
时调用它,当我运行程序并选择一个
Hello();
不'时不会被调用,顺便说一句,这不是因为它是静态的,我尝试在没有静态的情况下仍然没有发生任何事情。
Here is a pasteBin of the code Because its very: 
长,https://pastebin.com/zRmsnfF8.
Here is the pastebin of what I tried to Do before but it didn't work and had many build errors:
https://pastebin.com/uJM9xNvv

这就是我正在尝试做的事情:

void hello()
{
    cout << "Hello boys";
}

int main()
{
  Hello();
}

Here is picture of my console

function struct c++20 visual-studio-2022
1个回答
0
投票

Update--
我刚刚忘记构建程序了😂🤣🤣🤣🤣🤣👌

© www.soinside.com 2019 - 2024. All rights reserved.