I am new to C++, and am running into an error that seems rather simple to fix but am lacking an understanding of how to do so. I want to assign the value that string.length() returns to a variable so I thought I would use something like 'size_t' However from what I have read it looks like you need to use a typedef to do so properly. I tried 'typdef unsigned int size_t' but that did not work. I then tried a few variations to no avail. I have been using this link as a reference but do not understand their typedef in the slightest. http://www.cplusplus.com/reference/string/string/length/Does anyone know how to do what I am trying to do??