Homework: C-style Strings |
< Previous Next > |
#include <iostream> #include <cstring> int main(){ // Declare a C-style string name oldSchoolString and initalize it to "low overhead". std::cout << "There are " << strlen( oldSchoolString) << " characters in \"" << oldSchoolString << "\"\n"; return 0; }
Points Item ---------- -------------------------------------------------------------- _____ / 1 1 _____ / 1 2 _____ / 1 3 _____ / 1 4 _____ / 4 Total
Last Modified: