C++ 关键词:and

来自cppreference.com
< cpp‎ | keyword
 
 
C++ 语言
 
 

用法

示例

#include <iostream>
 
int n;
int main()
{
   if(n > 0 and n < 5)
   {
       std::cout << "n is small and positive\n";
   }
}