【发布时间】:2017-07-01 12:10:08
【问题描述】:
这个函数是干什么用的?并且它不是用于幂函数。:
#include<iostream>
using namespace std;
int main(){
int x,y;
cout<<(x^y)<<endl;/* this is the unkown (X^Y)*/
return 0;
}
【问题讨论】:
-
这是什么意思?
-
当我 cin 6 和 12 它 cout 10
-
仅供参考,您的程序的行为是未定义的。所以真的在你的例子中
cout<<(x^y)<<endl;的意思是“给我一堆废话”,就像cout<<std::pow(x^y)<<endl;一样。
标签: c++