由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
CS版 - 请教
相关主题
[转载] 兄弟姐妹们帮个忙吧CS Algorithm Help
Re: [转载] Re: 30多岁的phd去当programmer写code是不是很没前途??CS Algo Question
现在搞programming languages research的does anyone know how to input this symbol in Latex? or its name?
Re: Some insight Re: EE challenge Chow to search this pattern in google search
生物与计算机科学的结合,工作前景如何? (转载)有大牛可以帮助我一下这个ML的程序吗?
一个data scientist好不好怎么评价?有没有计算sparse matrix的C/C++源代码
关于SNNS 或 JavaNNS (Stuttgart Neural Network Simulator)[转载] 急需Java 或者GSM的人才!
帮朋友发帖招人,版主请留情勿删[转载] How to implement the "Contour" command
相关话题的讨论汇总
话题: val话题: int话题: add1话题: c++话题: need
进入CS版参与讨论
1 (共1页)
g*******n
发帖数: 94
1
Need to write a function "int add1(int val)" in C or C++ that returns val+1
without using +'s or -'s anywhere in the code.
any insight?
THX
j*****h
发帖数: 62
2
Interesting, let me give it a try!
int add1( int val) {
return (~0 ^ val) * ~0;
}

+1

【在 g*******n 的大作中提到】
: Need to write a function "int add1(int val)" in C or C++ that returns val+1
: without using +'s or -'s anywhere in the code.
: any insight?
: THX

1 (共1页)
进入CS版参与讨论
相关主题
[转载] How to implement the "Contour" command生物与计算机科学的结合,工作前景如何? (转载)
谁有什么solution吗?一个data scientist好不好怎么评价?
C++ Builder and SQL......关于SNNS 或 JavaNNS (Stuttgart Neural Network Simulator)
35岁开始学计算机编程,是不是有些晚了??帮朋友发帖招人,版主请留情勿删
[转载] 兄弟姐妹们帮个忙吧CS Algorithm Help
Re: [转载] Re: 30多岁的phd去当programmer写code是不是很没前途??CS Algo Question
现在搞programming languages research的does anyone know how to input this symbol in Latex? or its name?
Re: Some insight Re: EE challenge Chow to search this pattern in google search
相关话题的讨论汇总
话题: val话题: int话题: add1话题: c++话题: need