You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to prog1...@googlegroups.com
Повече от сигурен съм, че всички сте използвали този ред за домашното (изключвам тези, които са ползвали масив): " current_digit = 10 * current_digit + c - '0'; " Моля някой да ми обясни защо по-точно се налага да умножаваме по 10?
Nedelcho Delchev
unread,
Jun 10, 2013, 10:41:03 AM6/10/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to prog1...@googlegroups.com
Така получаваш двуцифрено число.
Например current_digit ti e 3, а "c" ti e 5, става 3 = 10 * 3 + 5, което е 35.
Михаил 'hidr0' Кирилов
unread,
Jun 11, 2013, 11:20:55 AM6/11/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to prog1...@googlegroups.com
Така получаваш многоцифрено, дефакто буташ всичко в дясно към по-големите числя (от единици в десетици, от десетици в стотици, от стотици в хилядни) и тка.