ChinaUnix.net
相关文章推荐:

构造函数 return

对于这样的情况,最好设置alarmprogram,你要是真的想知道是谁做了那些操作的话: 1、首先去看看消息日志,onstat -c|grep MSGPATH可以找到你的消息日志记录在那里,或者onstat -m(不过只能看到最后20行),要是这样不能够找出问题的话。 2、使用onlog查看具体的用户做了那些事物操作,该命令可以调试事物,日志的来源可以是当前磁盘或备份的磁带。注意在使用的时候,如果你在当前的逻辑日志上面运行改命令的话,onlog会锁住旧文...

by 蓝色键盘 - Informix - 2003-03-10 17:26:54 阅读(1560) 回复(0)

相关讨论

func1(){ cmd0 cmd1 cmd2 } func0 func1 func2 how to let it when any command return with non-0, func1 quit and return the value of that command

by zhentongshu - Shell - 2013-01-10 10:23:41 阅读(1107) 回复(4)

函数 int SABIN(int realist){ int seren; ........ return seren; } 这个函数编译时候出警告; 意思好像是return不应该返回local函数的变量值,即seren是在SABIN函数内部定义的。所以return不应该返回它的值。 c中有这个规矩吗》? 高手指教

by sabin541 - C/C++ - 2008-09-24 16:00:47 阅读(2429) 回复(16)

return: can only `return' from a function or sourced script 语句是这样的: if [ $? = 0 ] then echo "file is exist" return else ....... 这个应该怎么处理,如果要返回的话,而不是退出,因为上面有循环!

by justinyun - Shell - 2005-11-02 11:05:23 阅读(1201) 回复(2)

那位前辈给小弟解释一下return 得用法 例:return 100 return 900 在这里的100和900都是为程序将来做判断来准备的吗?

by biliwei - Shell - 2005-06-07 17:38:27 阅读(1376) 回复(3)

真不好意思,先前一个程序我弄错了:em15: 不过又有一个简单的问题想请教大家..... 如果没有定义构造函数,编译器将生成一个缺省的构造函数和一个拷贝构造函数。这句话正确吗?如果正确为什么会生成一个拷贝构造函数呢? #include//重载运算符+=的程序分析 using namespace std; class Amount{ int amount; public: Amount(int n=0):amount(n){}; int getAmount()const {return ...

by 中国可爱小牛 - C/C++ - 2009-07-02 18:46:17 阅读(10589) 回复(4)

return(0); 与 return 0; =========== 为什么有两种写法?有什么不同吗? 这个好像是语法和环境的问题,请大家举例说明! ===========

by simhare - C/C++ - 2009-06-26 12:53:02 阅读(3556) 回复(6)

:luya: 大家帮帮我这个菜鸟吧我0基础开始学的所以遇到问题比较多 函数里什么时候该用到return呢 我发觉有时候你加return和不加return 打印出来的结果是一样的 如果比如说返回父类的setitem方法 我可以 return fileinfo.__setitem__(self,key,item)也可以直接fileinfo.__setitem__(self,key,item) 如果 说不是用到return的跳出函数作用仅仅 希望用到他的返回值和返回函数功能 那么什么时候该调用呢 有些地方我不是很理解 有些函数...

by zhenglxd - Python - 2009-02-24 14:01:06 阅读(2359) 回复(5)

使用 location ~* admin { return 200 http://192.168.1.200/error.html; } 使用这个配置为什么访问时会变成下载页 且下载后查看里面的内容是http://192.168.1.200/error.html [quote]return Syntax: return code [ text ] return code URL return URL Default: Context: server location if Reference: return This directive concludes execution of the rules and returns the status code indicated to client. It is pos...

by helloiac - 服务器应用 - 2013-12-10 19:40:19 阅读(1179) 回复(4)

def f1(a, b): print "f1: %d %d" % (a, b) return a def f2(b, c): print "f2: %d %d" % (b, c) return c def main(): a = 2 b = 5 c = 7 c = f1(a, b) print "main: %d %d %d" % (a, b, c) b = f2(a, c) print "main: %d %d %d" % (a, b, c) main() 具体是怎么跑的?

by diaoczssa - Python - 2011-10-26 13:14:33 阅读(1705) 回复(1)