finding the number in a string.

Revision en5, by zubayerhossain, 2018-05-22 20:39:11

In various problem you have to find the number which is present in the string.? so for this we can use istringstream number_iss(the string you input). take a variable of integer example: a and then access the number_iss>>a; You can count the total number in the string,you can easily find out the maximum and minimum of the numbers present in the string.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en6 English zubayerhossain 2018-05-22 20:57:34 73
en5 English zubayerhossain 2018-05-22 20:39:11 208 Reverted to en3
en4 English zubayerhossain 2018-05-22 20:37:49 208 Reverted to en2
en3 English zubayerhossain 2018-05-22 09:23:53 208 (published)
en2 English zubayerhossain 2018-05-22 09:17:45 22 Tiny change: 'number_iss.' -> 'number_iss(the string you input).'
en1 English zubayerhossain 2018-05-22 09:14:08 161 Initial revision (saved to drafts)