Starts at --> 5654
Ends at --> 5689
The Title is: title=Stop+Motion+Animation+Drawing
You're code cannot find "title". That is why your Starts at number is that big. That number is the maximum a string can hold I believe. I forgot.
The position of the first occurrence in the string of the searched content.
If the content is not found, the member value npos is returned.
Maximum value for size_t
npos is a static member constant value with the greatest possible value for an element of type size_t.
This value, when used as the value for a count parameter n in string's member functions, roughly indicates "as many as possible".
When used in some pos parameters that allow for out-of-range values, npos indicates the end of the string.
As a return value it is usually used to indicate failure.
This constant is actually defined with a value of -1 (for any trait), which because size_t is an unsigned integral type, becomes the largest possible representable value for this type.
Enter Path to Youtube Link List: text
Video ID of Video 1 is: oded_fmt_stream_map=url%3Dhttp%253A%252F%252Fo-o.preferr
ed
Fetching info Data from Youtube...
Downloading info from --> http://www.youtube.com/get_video_info?video_id=oded_fm
t_stream_map=url%3Dhttp%253A%252F%252Fo-o.preferred
Searching for Informations...
0
Opening File...
Starts at --> 4294967295
Ends at --> 0
If it doesn't work in your terminal, its because using an IDE and using an actual terminal is not the same thing. Your paths could be off.
Now. Let me see why it isn't finding title.. Is it supposed to find title?
Oh. Nevermind. 0 means the file isn't found. Lol. Silly me.
string RealTitle = name.substr ( beginn + 6, ende );
for ( unsignedint index = 0; index < RealTitle.length ( ); index++ )
{
if ( RealTitle[index] == '+' )
{
RealTitle[index] = ' ';
}
}
cout << endl << "The title is: " << RealTitle << endl << endl;
As you can see. I created the RealTitle string for you. It only includes the title with + signs.
The for loop goes through and replaces the + signs with spaces.