Advertisement
LeventeDaradici

Transforming a string into another string with lowercase letters and deleting spaces from the origin

May 3rd, 2023 (edited)
1,011
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | Source Code | 0 0
  1. //ARDUINO C++
  2. //Transforming a string into another string with lowercase letters and deleting spaces from the original string
  3. void setup()
  4.     {
  5.       Serial.begin(9600);
  6.       String inputString = "Pro TV HD"; //stringul initial
  7.       // Transformarea in string fara litere mari si fara spatii
  8.       inputString.toLowerCase(); // transforma literele mari in litere mici
  9.       inputString.replace(" ", ""); // elimina toate spatiile din string
  10.       Serial.println(inputString); // rezultatul afisat va fi "protvhd:
  11.     }
  12.  
  13. void loop()
  14.     {
  15.         // loop
  16.     }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement