我正在用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)