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.
算術演算子や論理演算子を使用せずに2つの数値を加算することは可能ですか?
もしそうなら、どうすればいいですか?
解決:
main(){ int x=10,y=21; char *p=x; printf("%d" , &p[y]); }
uが答えを得られなかったので、少なくともこの質問に反対票を投じないでください。
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(); }