Is the length of 1 code line in sololearns code playground 55 chars long? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Is the length of 1 code line in sololearns code playground 55 chars long?

i counted 55 then when i reopened and tried i got 56 just wondering if its the same for everyone else as i need to know when the like ends?

25th Oct 2017, 5:38 PM
D_Stark
D_Stark - avatar
9 Answers
+ 6
@john is there away to detect when the end of the line is near? like some sort of line char reader or somthing 😋
25th Oct 2017, 10:39 PM
D_Stark
D_Stark - avatar
+ 5
thanks derXred thats helpful as i wasnt aware that the line length is diffrent if screen size is increased 👍 kind of makes things worse haha😂
25th Oct 2017, 10:42 PM
D_Stark
D_Stark - avatar
+ 4
Can you please show me an example? 😊
25th Oct 2017, 5:44 PM
Cool Codin
Cool Codin - avatar
+ 4
i counted the line like this 1234567890123456789012345678901234567890123456789012345 each 0 is 10 this tells me the length of the line i have to use in output but i need to know actually when the line ends as im working on somthing.. thanks
25th Oct 2017, 5:47 PM
D_Stark
D_Stark - avatar
+ 3
It varies based on device you display on. My tablet gets more than my phone.
25th Oct 2017, 6:06 PM
John Wells
John Wells - avatar
+ 2
I think it depends on the screen size :) on my phone i have 46chars and on the browser of the pc 116(or smth like that). Not sure if my informations help you :))) but hey, im not perfect
25th Oct 2017, 8:02 PM
derXred
derXred - avatar
+ 1
@David Stark Well, i am not 100% sure what you want to do, but when i made my first little android app for a phone, they had some parents-child properties that were some sword auto-sizeable base of the screen size :p so the output on the different display sizes were the same, only the scale was different base on the screen size. Sorry if i am ambiguous, but ive try it maybe a year ago and i am not sure if it was the java part or xml...
25th Oct 2017, 11:30 PM
derXred
derXred - avatar
+ 1
In c++ with .Net framework you can "declare" how big(Maximize) or small can a window be... so im starting to belive you can do it for a project, but only for the sololearn compiler,hmm, i dont know. Maybe someone got a document about SL compiler. Or i have another idea,but not sure if i saw a running code that had different output on my phone and on the pc browser(about this, i cant find post if i search it exactly by the name of the discussion, im seeing sometimes some great post on the phone and i want to comment from the pc, and of course i cant find it or i have to search it too much... SL should improve the search) PS beginner ideas and guessing :))
25th Oct 2017, 11:39 PM
derXred
derXred - avatar
0
Not that I know of. The SoloLearn app or web browser makes the call of wrapping text. The running program shouldn't have any access to it.
25th Oct 2017, 10:59 PM
John Wells
John Wells - avatar