|
[求助]一个非常有挑战性的程序
如果没有什么特殊原因,随便找个正则表达式库就解决了. |
|
[原创 + 抄袭]TinyBASIC Version 1.0
想起当年盖茨的4K-BASIC,其中解释器只有1.3KB. |
|
[讨论]控制台程序强制退出的问题
哦,我还忘了一点: 上面我的测试都是使用VC6的动态库, 如果使用静态库,则什么输出都没有,如果在fwrite后面加上fflush,则只得到"1"了. 也许VC2003/2005的动态库也可能输出"12". |
|
[讨论]来个简单题目,看哪位兄弟写的最好!
如果要保证编译后没有条件跳转指令,那么即使实现也是位数受限制的,要实现字符串逆序就无法实现. 其实本不必限制在汇编层上,利用&&或||做条件,递归做循环就能符合楼主的要求. |
|
[讨论]控制台程序强制退出的问题
我的环境是: WinXP+sp2,VC6.0+sp6 运行上面的例子程序(Release模式编译),直接关闭窗口的退出得到的文件内容是"12"; 任务管理器中结束进程的方法得到的文件内容是"1". 我怀疑是一般的结束任务是先给程序发一个异常,程序处理异常时会析构全局对象,其他编译器可能不会处理这个异常. |
|
[讨论]控制台程序强制退出的问题
我用的编译器是VC6.0,难道这只是VC的特性,WinXP只照顾微软自己的编译器? |
|
[讨论]来个简单题目,看哪位兄弟写的最好!
最后给出一个直接返回整数的版本: unsigned revd(unsigned u,unsigned t=0) { return (!(u&&!(t=revd(u/10,t*10+u%10))))*t; } int main() { return printf("%u\n",revd(123456789)); } |
|
|
|
[讨论]来个简单题目,看哪位兄弟写的最好!
我想出一个方法: 整数: #include<stdio.h> int revd(unsigned u) { return u&&(printf("%u",u%10),revd(u/10)); } int main() { return revd(123456789); } 字符串: #include<stdio.h> int revs(char *p) { return *p&&printf("%c",*p,revs(p+1)); } int main() { return revs("123456789"); } 也许还有更简单的吧... |
|
|
|
[讨论]来个简单题目,看哪位兄弟写的最好!
不写if的程序真是不可想象啊... |
|
[讨论]怎么用编程关闭天网进程啊?
确实释放并安装了IsDrv120.sys这个文件,卡巴斯基拦截到了安装驱动的操作. |
|
用 WinUpack039final 压缩程序,会不会杀软报毒啊
无奈啊无奈... |
|
[分享]5.1小礼物之5,最新 北斗加壳机Nspack 4.1破解版!
资源里有可疑的数据,像是捆绑木马,但运行时并没发现释放木马的迹象.很奇怪... |
|
|
|
|
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值