代码搜索结果

找到约 10,000 项符合 C++ 的代码

c,c++笔试.txt

1. 用预处理指令#define 声明一个常数,用以表明1年中有多少秒(忽略闰年问题) #define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL 我在这想看到几件事情: 1). #define 语法的基本知识(例如:不能以分号结束,括号的使用,等等) 2). 懂得预处理器将为你计算常数表达式的值,因此,直接写出你是如何计算一年中有多少秒而不是计算出 ...

c++文件实现.txt

#include #include #include #include using namespace std; int main() { int i,j,k; int n1=0,n2=0; //n1,n2分别存储两个字符串的长度 char ch; string str;