This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//LIST NODE | |
String::ListNode * String::ListNode::stringToList(char * s){ | |
if (s[0] != '\0'){ | |
ListNode * tempHead = new ListNode(s[0],stringToList(s[1])); | |
return tempHead; | |
} else { | |
return nullptr; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Im tring to implement a string with a linked list | |
using namespace std; | |
class String | |
{ | |
public: | |
/// Both constructors should construct | |
/// from the parameter s | |
String( const char * s = ""); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.