fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Node{
  5. int data;
  6. Node* pNext;
  7. };
  8.  
  9. void displayLL(Node* cur) {
  10. for (; cur != nullptr; cur = cur->pNext) {
  11. cout << cur->data << endl;
  12. }
  13. }
  14.  
  15. int main() {}
Success #stdin #stdout 0.01s 5460KB
stdin
Standard input is empty
stdout
Standard output is empty