Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在不使用任何算术或逻辑运算符的情况下将两个数字相加?
如果是这样,我该怎么做?
解决方案:
main(){ int x=10,y=21; char *p=x; printf("%d" , &p[y]); }
至少不要对这个问题投反对票,因为你没有得到答案。
int add(int x, int y) { std::vector<int> v(x); std::vector<int> u(y); for(auto& n : u) { v.push_back(n); } return v.size(); }