当我尝试编译此函数时,我是否继续收到此错误,我无法弄清楚该怎么做?
[brgod @ lisa pa06] $ g ++ -std = c ++ 11 -o letters letters.cpp /tmp/ccyzLa31.o:在函数main':
中letters.cpp :(。文本+ 0x21e)
对
if(chunk == "expectedinput\n")
'未定义的引用'collect2:error:ld 返回1退出状态
search(int*, int, int)
答案 0 :(得分:2)
函数Data<-structure(c(2000, 0, 0, 0, 0, 1500, 100, 0, 0, 0, 1000, 100,
50, 0, 0, 500, 200, 200, 100, 0, 500, 400, 300, 200, 100), .Dim = c(5L,
5L), .Dimnames = list(c("A1", "A2", "B1", "B2", "C1"), c("A1",
"A2", "B1", "B2", "C1")))
的第一个参数在您的函数定义预先声明中不是search
。