c 2b 2b check first character of string

Solutions on MaxInterview for c 2b 2b check first character of string by the best coders in the world

showing results for - "c 2b 2b check first character of string"
Erika
12 Jan 2018
1#include <iostream>
2#include <string>
3
4int main() 
5{
6  string str{};     // creating string
7  getline(cin, str);// using getline for user input
8  std::cout << str; // output string namePerson
9  if (str[0] >= 'a' || str[0] <= 'z')
10    str[0] -= 32;
11  return (0);
12}
queries leading to this page
how to take the first character of a string c 2b 2bfind the first word in a string c 2b 2bc 2b 2b first char in stringstring find first not of c 2b 2bc 2b 2b get first letter of stringfind first char in string c 2b 2bget first character string c 2b 2bget first character of string in c 2bcheck first letter of a string c 2b 2bcheck the first value of the string c 2b 2bhow to get the first character of a string in c 2b 2bc 2b 2b check first character of stringfind first digit in string c 2b 2bhow to check for matching first character in c 2b 2bc 2b 2b string get first charlook at first chr in a string c 2b 2bhow to get the first letter of a string in c 2b 2bc 2b 2b get first word in stringhow to detect first instance of certain character c 2b 2bget first character of all string in c 2b 2bhow to get the first letter of a string c 2b 2bget first character in string c 2b 2bc 2b 2b compare first character of stringc 2b 2b string first characterget first word on string c 2b 2bcheck if the first letter of a string c 2b 2b is ac 2b 2b how to get the first character of a stringc 2b 2b string find first sincec 2b 2b first letter of stringstring find first char c 2b 2bhow to get the first character of a string c 2b 2bhow to get first letter of string in c 2b 2bc 2b 2b get first character of stringc 2b 2b first characters of stringc 2b 2b find first instance of char in stringc 2b 2b string find first offind first character in string c 2b 2bc 2b 2b check first character of stringc 2b 2b string get first lettercheck if first letter of string is a certain character c 2b 2bhow to find the first letter of a string in c 2b 2bget first character of string c 2b 2bhow to find the first digit in a string cppc 2b 2b check first character of string