A voir également:
- Fichier condefs.h
- Fichier bin - Guide
- Fichier epub - Guide
- Fichier rar - Guide
- Comment réduire la taille d'un fichier - Guide
- Fichier .dat - Guide
3 réponses
salut
c'est ça que tu cherches?
Chouba
Casque Bleu forumique
c'est ça que tu cherches?
//---------------------------------------------------------------------------
// condefs.h - defines needed by Borland C++ Builder console apps
//---------------------------------------------------------------------------
// $Revision: 1.4.1.0.1.0 $
// revised by Curt Hill for CS160 class to make it easier on students
// this is for C++ Builder 4
//-------------------------------------------------------------------------
// copyright (c) 1997 Borland International
//----------------------------------------------------------------------------
#ifndef CONDEFS_H
#define CONDEFS_H
// CS160 modifications
// Permanent fstream inclusion - this also guarantees iostream and iomanip
#ifndef __FSTREAM_H
#include <fstream.h>
#include <iostream.h>
#include <iomanip.h>
#endif
// Permanent AnsiString inclusion
#ifndef DSTRING_H
#include <vcl\system.hpp>
#endif
/* getline
this cannot be a member of istream without that header being modified
thus make it standalone function
*/
inline void getline(istream & inf, AnsiString & s, int len=256, char delim='\n'){
char * line;
line = new char [len+10];
inf.getline(line,len,delim);
s = line;
delete [] line;
}
// Definition of delay function so console apps do not disappear so fast
#include <stdio.h>
inline void __fastcall delay(){
char c[100];
_flushall();
printf("\nPress return to continue...\n");
gets(c);
return;
}
// end of CS160 modifications
//---------------------------------------------------------------------------
#if defined(_NO_VCL)
#define USEUNIT(ModName) \
extern DummyThatIsNeverReferenced
//-----------------------------------------------------------------------
#define USEOBJ(FileName) \
extern DummyThatIsNeverReferenced
//-----------------------------------------------------------------------
#define USERC(FileName) \
extern DummyThatIsNeverReferenced
//-----------------------------------------------------------------------
#define USEASM(FileName) \
extern DummyThatIsNeverReferenced
//-----------------------------------------------------------------------
#define USEDEF(FileName) \
extern DummyThatIsNeverReferenced
//-----------------------------------------------------------------------
#define USERES(FileName) \
extern DummyThatIsNeverReferenced
//-----------------------------------------------------------------------
#define USETLB(FileName) \
extern DummyThatIsNeverReferenced
//-----------------------------------------------------------------------
#define USELIB(FileName) \
extern DummyThatIsNeverReferenced
//-----------------------------------------------------------------------
#define USEFILE(FileName) \
extern DummyThatIsNeverReferenced
//-----------------------------------------------------------------------
#define USEIDL(FileName) \
extern DummyThatIsNeverReferenced
//-----------------------------------------------------------------------
#define USE(FileName, ContainerID) \
extern DummyThatIsNeverReferenced
//-----------------------------------------------------------------------
#else // _NO_VCL
# include <vcl.h>
#endif // _NO_VCL
#endif // CONDEFS_H
Chouba
Casque Bleu forumique