🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: cn.bbs.comp.program
1 messages
1 total messages Started by �Ӱ���һ�� Sat, 22 Aug 1998 00:00
C++Builderһ��������
#416
Author: �Ӱ���һ��
Date: Sat, 22 Aug 1998 00:00
51 lines
2969 bytes
���ձ�һ������һ��Form������ʱ����һ�������ļ���
�����ڣ�����InitReplaceTable()����һ����Ȼ���
����ļ��ж�ȡһЩ��Ϣ���������µij����ܶ���������
    ifstream    Replace(".\\replace.dat");
    if(!Replace){
        if(InitReplaceTable()){
            Replace.open(".\\replace.dat");
            if(!Replace){
                Visible = true;
                return;
            }
        }else   {
            Visible = true;
            return;
        }
    }

���������InitReplaceTable()������replace.dat �ɹ���
��������Replace.open(".\\replace.dat")������Ϊ
���������Ҫ�����е���ݡ����ټ��Replace ��ֵ����
��false ������˵��Ȼδ�ܴ�replace.dat �ļ������
�ж�����ȥ��Replace ȥ���ļ�û�����ݡ�����ʱ�����
���Ѿ������ˣ���Ӳ�����Ѿ��ܹ������ˡ�����ij�����
�ģ�Replace2�Ϳ��Դ����replace.dat �ļ���������
ôһ���£��ѵ�������open�����ļ������Թ���ʹ��
open֮ǰ��ִ��Replace.close();Ҳû���á�

    ifstream    Replace(".\\replace.dat");
    if(!Replace){
        if(InitReplaceTable()){
            ifstream Replace2(".\\replace.dat");
            if(!Replace2){
                Visible = true;
                return;
            }
        }else   {
            Visible = true;
            return;
        }
    }


--

          ��������������������������������������������������
          ��������ƾ�Ķ��ģ�ƾ����棬һ���ܱ�ʤ      ��
          ����  ��·��Ѫ���ܼ�֤�������԰��൱��ִ�ҳ�    ��
          ��������������������������������������������������

�� ��Դ:���������� bbs.cst.sh.cn��[FROM: 202.127.16.22]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads