CppDS.com

C++ 98 11 14 17 20 手册

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";
   }
}


关闭