摘要: #include using namespace std; int main() { cout << "char: " << sizeof(char) << " 字节" << endl; cout << "int: " << sizeof(int) << " 字节" << endl; cout << "float: " << sizeof(float)... 阅读全文
posted @ 2019-06-05 09:38 anobscureretreat 阅读(469) 评论(0) 推荐(0)
摘要: #include using namespace std; int main() { char c; int isLowercaseVowel, isUppercaseVowel; cout > c; // 小写字母元音 isLowercaseVowel = (c == 'a' || c == 'e' || c == 'i' || c =... 阅读全文
posted @ 2019-06-05 09:07 anobscureretreat 阅读(1021) 评论(0) 推荐(0)
摘要: #include using namespace std; int main() { char op; float num1, num2; cout > op; cout > num1 >> num2; switch(op) { case '+': cout << num1+num2; ... 阅读全文
posted @ 2019-06-05 09:05 anobscureretreat 阅读(308) 评论(0) 推荐(0)
摘要: #include #include using namespace std; int main() { // 创建一个向量存储 int vector vec; int i; // 显示 vec 的原始大小 cout ::iterator v = vec.begin(); while( v != vec.end()) { cout ... 阅读全文
posted @ 2019-06-05 08:40 anobscureretreat 阅读(373) 评论(0) 推荐(0)