finding the number in a string.

Правка en5, от 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.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en6 Английский zubayerhossain 2018-05-22 20:57:34 73
en5 Английский zubayerhossain 2018-05-22 20:39:11 208 Reverted to en3
en4 Английский zubayerhossain 2018-05-22 20:37:49 208 Reverted to en2
en3 Английский zubayerhossain 2018-05-22 09:23:53 208 (published)
en2 Английский zubayerhossain 2018-05-22 09:17:45 22 Tiny change: 'number_iss.' -> 'number_iss(the string you input).'
en1 Английский zubayerhossain 2018-05-22 09:14:08 161 Initial revision (saved to drafts)