[Solved] Need help, need to count the number of negative values inside a linked list, C++ [closed]


This seems like the easiest way to do it.

if(currObj->GetDataVal() < 0) negativeCntr++;

1

solved Need help, need to count the number of negative values inside a linked list, C++ [closed]