代碼疑雲(3)-靜態字符串

代碼:ios #include<iostream> using namespace std; int main() { char *str1 = "string"; char *str2 = "string"; if(str1 == str2) cout<<"str1 is same as str2"; } 疑:str1 的值是否等於 str2 而輸出字符串「str1 is s
相關文章
相關標籤/搜索