Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to know the first letter of string c++

 string car = "audi";
    char firstCharacter= car.at(0);
    cout<< firstCharacter;
 
PREVIOUS NEXT
Tagged: #letter #string
ADD COMMENT
Topic
Name
5+7 =