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;
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #letter #string
ADD COMMENT
Topic
Name
1+1 =