Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ check first character of string

int main() {
    string a="HELLO";
    cout<<a[0];
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #check #character #string
ADD COMMENT
Topic
Name
7+1 =