+ 11

look at the result num of this code is there any thing releated between it and the previouse one? because when I delete one of

https://code.sololearn.com/c6gaq9qX9ybB/?ref=app

27th Jan 2018, 11:58 PM
Samah Alghafri
Samah Alghafri - avatar
7 Antworten
+ 5
you have found an essential concept in computer science: garbage https://en.m.wikipedia.org/wiki/Garbage_(computer_science)
28th Jan 2018, 8:27 AM
bedawang
bedawang - avatar
+ 23
Sololearn requires all inputs at once. So you have to enter both numbers at the beginning. The other number, I don't know. Someone with more C++ knowledge can answer that.
28th Jan 2018, 12:44 AM
Mark McGhee
Mark McGhee - avatar
+ 16
I don't quite understand your question. Both inputs work for me. But the second one puts the number right after "NID" because you don't force a new line.
28th Jan 2018, 12:37 AM
Mark McGhee
Mark McGhee - avatar
+ 8
Hello Samah Alghfari! Nice to see you got it to work! Only one thing, it's a good practice to initialize your variables at time of creation.. like this: int a=0; That's why stranges numbers appeared.
28th Jan 2018, 8:13 AM
AZTECCO
AZTECCO - avatar
+ 8
" In systems or programming languages with manual memory management, the programmer must explicitly arrange for memory to be deallocated when it is no longer used. C and C++ are two well-known languages which support this model. " the link is very useful thank you👌😀
28th Jan 2018, 11:38 AM
Samah Alghafri
Samah Alghafri - avatar
+ 7
when I press run I only add number for once .. the second number I don't know from where is coming!!
28th Jan 2018, 12:41 AM
Samah Alghafri
Samah Alghafri - avatar
+ 6
yes it works as you say .. I PUT 1 SPACE 2 and happend, thx🌹
28th Jan 2018, 12:47 AM
Samah Alghafri
Samah Alghafri - avatar