小编use*_*815的帖子

使用case switch语句加载函数

我正在用C++编写一个程序,并且我已经能够编译并开始运行,当我选择一个选项时,不会调用应该由switch-case语句调用的相应函数.我在代码中遗漏了什么吗?

//The following program framework is given.
//Add the programming logic to complete the assignment.
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
//function prototypes should be placed here
//Main must be the first function in the program. Write other functions after it.
int main()
{
char cInput;
string strFileName;
vector<string> vecStudent;
cout<<"Please enter the data file name (with location): ";
cin >> strFileName;
//call a function to read the content of the input file into
//the …
Run Code Online (Sandbox Code Playgroud)

c++ switch-statement visual-studio

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

c++ ×1

switch-statement ×1

visual-studio ×1