頭檔案
#include
using namespace std;
功能
把bool值顯示為true或false
用法
1. 以下三條輸出語句分別輸出什麼?
char str1[] = "abc";
char str2[] = "abc";
const char str3[] = "abc";
const char str4[] = "abc";
const char* str5 = "abc";
const char* str6 = "abc";
cout
boolalpha,函式名稱,功能是把bool值顯示為true或false。
#include
using namespace std;
把bool值顯示為true或false
1. 以下三條輸出語句分別輸出什麼?
char str1[] = "abc";
char str2[] = "abc";
const char str3[] = "abc";
const char str4[] = "abc";
const char* str5 = "abc";
const char* str6 = "abc";
cout