Created
February 25, 2017 13:08
-
-
Save limzunyuan/66036fc6a86f7bd7fd70a3f2317e4deb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
int main() { | |
ios::sync_with_stdio(false); | |
char str[] = "FuYong-Zun"; | |
str[8]='\0'; | |
cout<<str<<endl; | |
string str1 = "FuYong-Zun"; | |
str1[8]= '\0'; | |
cout<<str1<<endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment