[問題] hw1.2.p2c
template <class T>
void selectionSort(vector<T>& array, const Compare<T>& compare)
{
...
}
int main()
{
vector<string> userInput_1(i);
...
selectionSort( userInput_1, Less() );
...
}
compile 時就出現error:
missing template arguments before 「(」 token
請問這是哪裡出問題了呢....?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.224.46.41
→
03/18 14:58, , 1F
03/18 14:58, 1F
→
03/18 15:22, , 2F
03/18 15:22, 2F
推
03/18 15:39, , 3F
03/18 15:39, 3F