if(array[i].words == "f" || array[i].words == "F")
This checks if the word is f
or F
rather than whether it starts with f
or F
.
More Related Contents:
- Map C++ Sort and Insert elements by value
- C++ double char array deliminator [closed]
- Most vexing parse
- Which iomanip manipulators are ‘sticky’?
- How can a Windows service execute a GUI application?
- Why does int pointer ‘++’ increment by 4 rather than 1?
- C++ template constructor
- Behavior of post increment in cout [duplicate]
- Program only crashes as release build — how to debug?
- Is std::cout guaranteed to be initialized?
- Writing Universal memoization function in C++11
- How would you implement your own reader/writer lock in C++11?
- C++17 class template partial deduction
- Technically, how do variadic functions work? How does printf work?
- Visual Studio 2012 C++ Standard Output
- How to change string into QString?
- Multiple inputs on one line
- Implicit conversion from char** to const char**
- Serializing and deserializing JSON with Boost
- C function pointers with C++11 lambdas
- C-string definition in C / C++
- /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version CXXABI_1.3.8′ not found
- Determining exception type after the exception is caught?
- C++, can I statically initialize a std::map at compile time?
- Declaring a pointer to multidimensional array and allocating the array
- Why is a class allowed to have a static member of itself, but not a non-static member?
- What is the difference between string::at and string::operator[]?
- References Needed for Implementing an Interpreter in C/C++
- Constexpr if alternative
- How can a char pointer be initialized with a string (Array of characters) but an int pointer not with an array of integer? [duplicate]