我必須實現一個看起來像這樣的功能: MyList * sum (MyList * l1, MyList * l2) {
MyList * newlist = new MyList();
//Adds two objects and place the result in a third new list
return newlist;
}
功能了兩個列表,並放置
是否可以定義指向特徵:: Map對象的指針?原始代碼是非常複雜,但這裏是我想實現(僞代碼) void testfunction1(... XPtr){
// XPtr is a pointer
// create a vector, map it to a Map object and make XPtr point to the latter
VectorXd X