└── camelcase in C++ using ASCII value.cpp /camelcase in C++ using ASCII value.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace std; 4 | int camelcase(string s) { 5 | int count=0; 6 | for(int i=0;i=65 && s[i]<=90){ 8 | count++; 9 | } 10 | } 11 | return count+1; 12 | 13 | } 14 | int main() 15 | { 16 | ofstream fout(getenv("OUTPUT_PATH")); 17 | 18 | string s; 19 | getline(cin, s); 20 | 21 | int result = camelcase(s); 22 | 23 | fout << result << "\n"; 24 | 25 | fout.close(); 26 | 27 | return 0; 28 | } 29 | --------------------------------------------------------------------------------