Search Functions in Code

查找不同编程语言中的函数
本文介绍了如何在C++, Python, Java及C#等不同编程语言中查找函数的方法。对于C++, 可以通过搜索“);”来找到函数声明;Python则通过搜索“def”关键字来定位函数;而Java和C#的函数查找则较为复杂。

Finding functions in scripts, or code, is not easy. Here's some idea.

For C++, because functions needs to be declared in the header file and every functions end with ");", we can search ");" in the code. 

For Python, search "def".

For Java, or C#, it's a bit hard. I still didn't find out a good way. For now, I'm searching ("){", ") {",")\n{")

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值