MCPcopy Create free account
hub / github.com/ShiqiYu/CPP / main

Function main

week04/examples/stringelement.cpp:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace std;
4
5int main()
6{
7 string str = "Hello, SUSTech!";
8 for(int i = 0; i <= str.length(); i++) //no bound check
9 cout << i << ": " << str[i] << endl;
10
11 return 0;
12}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected