🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #1797

Re: C++���������

#1797
From: �������������,����
Date: Sun, 22 Mar 1998 00:00
52 lines
1795 bytes
> ==> Greatchina_Tu(����ү�Ƕ�)                ˵��: 
> �ļ�test.dat��СΪ1024*768=786432�ֽڡ�
> Ϊ��������һ�γ����һ����˳���
> лл��
> 
> 
> #include<dos.h>
> #include<iostream.h>
> #include<fstream.h>
> 
> void main(void)
> {
> int i;
> char *buffer;
--------------------
  char _huge* buffer;
> ifstream in("test.dat");
> if(!in)
> {
>         cout<<"\nCan't open the file!\n";
> 	return;
> }
> if(!(buffer=new char[1024])){
> 	cout<<"\nNo Enough Memory!\n";
> 	return;}
> for(i=0;i<768;i++)
-------------------------
      i is not referenced.
> {
> 	in.read(buffer,1024);
---------------------------------
        in.ReadHuga(buffer,1024);???
> 	if(in.gcount()!=1024)
> 	{
> 		cout<<"\nReading imagedata error.\n";
> 		return;
> 	}
> }
> in.close();
> delete buffer;
> }
> 
> --
-------------------------------------------------------
����������õIJ���32λ����,����16λ����,������
�����,һ����near,far,hugeָ������.����128k
������Ѱַ�ռ�,�����ʹ��hugeָ��.����,�����
128K�Ժ�,�ֻ��۹�ͷ�����¶���.

--
�� ��Դ: �й�ƴ�BBSվ [bbs.ustc.edu.cn]
Technical Details
Message-ID: <980322.yGbaj$PBBS@bbs.ustc.edu.cn>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: fc86e,87f17406f99afda5
X-Google-Attributes: gidfc86e,public
From: Steve_Yu@bbs.ustc.edu.cn (�������������,����)
Subject: Re: C++���������
Date: 1998/03/22
Message-ID: <980322.yGbaj$PBBS@bbs.ustc.edu.cn>
X-Deja-AN: 336447602
Organization: �й�ƴ�BBSվ
Newsgroups: cn.bbs.comp.program