计算机技术论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

  • 欢迎访问 计算机技术论坛-电脑迷与初学者的家园!由于论坛管理严格,新注册会员可能遇到各种问题,无法解决的请发邮件 admin@jsjbbs.cn
查看: 6473|回复: 10

病***毒程序,仅供研究!

[复制链接]
发表于 2009-10-6 22:44:29 | 显示全部楼层 |阅读模式
/*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
* treepath.C -
*     
\*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
#include  <stdlib.h>
#include  <stdio.h>
#include  <assert.h>
#include  <string.h>
#include  "generic.h"
#include  "sarray.h"
#include  "Tree.h"
#include  "Misc.h"
#include  "treepath.h"
/*--- Constants ---*/

/*--- Start of Code ---*/

void  TreePath::init( char  * line, FILE  * fl )
{
    char  buf[ LINE_SIZE ];
    line_type  word;
    char  * start_brace, * end_brace, * str;
    strcpy( buf, line );
    while  ( ! str_is_close_brace( line ) ) {
        if  ( ! getLine( fl, line ) ) {
            fprintf( stderr, "Unexpected end of file!\n" );
            exit( -1 );
        }
        strcat( buf, line );
    }
   
    start_brace = (char *)str_pos_unquoted( buf, '{' );
    end_brace = (char *)str_pos_unquoted( buf, '}' );
   
    if  ( ( start_brace == NULL )  ||  ( end_brace == NULL ) )
        my_error( "Either { or } missing in line!\n" );
    str = start_brace + 1;
    while  ( *str != '}' ) {
        str_skip( str, " \t\n," );
        if  ( *str == '}' )
            break;
        if  ( *str != '"' ) {
            fprintf( stderr, "Unexpected character encountered: [%c]\n",
                     *str );
            exit( -1 );
        }
        
        str_get_quoted_word( str, word );
        
        push( word );
    }
    if  ( str != end_brace )
        my_error( "Unbalanced braces!\n" );
    str++;
   
    strcpy( new_file_name, str );
    str_kill_empty_suffix_prefix( new_file_name );
    if  ( strlen( new_file_name ) <= 0 )
        my_error( "No filename given for filename!" );
}

    /*
filename { "Bookmarks",
           "Computers",
           "Computer Science",  
           "Computatoional Geometry" }  cg_links.html
    */


/* treepath.C - End of File ------------------------------------------*/
发表于 2009-10-7 09:05:44 | 显示全部楼层
这是病毒程序吗 ?    你好厉害哦
发表于 2009-10-7 13:48:16 | 显示全部楼层
什么毒.......................
yangxi1215 该用户已被删除
发表于 2009-10-7 19:26:32 | 显示全部楼层
没看明白有说明吗?
发表于 2009-10-7 21:14:57 | 显示全部楼层
什么东西啊!不懂!
jiang_qinggen 该用户已被删除
发表于 2009-10-9 20:15:25 | 显示全部楼层
呵呵    高级啊
发表于 2009-10-10 02:32:18 | 显示全部楼层
看不懂啊,说明一下啊
发表于 2009-10-10 19:02:13 | 显示全部楼层
就是 呀   没有说明呀
发表于 2009-10-18 10:25:48 | 显示全部楼层
太深奥了,看不懂
wtu403 该用户已被删除
发表于 2009-11-14 04:15:53 | 显示全部楼层
太深奥了,看不懂啊
但还是顶一个
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

无图版|手机版|计算机技术论坛 JSJBBS.CN @ 2008-2024 ( 鲁ICP备17021708号 )

技术支持 : 北京康盛新创科技有限责任公司

快速回复 返回顶部 返回列表