/text-splitting-in-lines-of-certain-length

Splitting up a text by words in 3 lines for a certain length each in Arduino

Primary LanguageC++

An Arduino test of splitting up a text by words in 3 lines for a certain length each.

Expected output:

Start test
0:Esti
1:sigur
2:ca
3:vrei
4:sa
5:stergi
6:toti
7:senzorii?
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
*****************
question1:Esti sigur ca
question2:vrei sa stergi
question3:toti senzorii?
*****************
0:Ce
1:mai
2:face
3:Ana?
4:Are
5:indeajuns
6:de
7:multe
8:mere?
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
*****************
question1:Ce mai face Ana?
question2:Are indeajuns de
question3:multe mere?
*****************
0:Ce
1:mai
2:face
3:Ana?
4:Are
5:mere?
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
*****************
question1:Ce mai face Ana?
question2:Are mere?
question3:
*****************