delphi中的几个简单问题
1。delphi中的链表怎么实现呢?(最好给一个例子)
2。delphi中的文件操作?
3。那一个组件中既可以显示图形,又可以显示字符,而且字符的颜色,字体可以不一样?
问题点数:40、回复次数:3Top
1 楼DWGZ()回复于 2003-08-05 10:08:10 得分 30
1.record 就相当于 C++ 中的Struct
2.
AssignFile procedure
Associates the name of an external file with a file variable.
ChDir procedure
Changes the current directory.
CloseFile procedure
Terminates the association between file variable and an external disk file (Delphi).
CreateDir function
Creates a new directory.
DeleteFile function
Deletes a file from disk.
DirectoryExists function
Determines whether a specified directory exists.
DiskFree function
Returns the number of free bytes on a specified drive.
DiskSize function
Returns the size, in bytes, of a specified drive.
File mode constants
File mode constants are used to open and close disk files.
File open mode constants
File open mode constants are used to control the access mode to a file or stream.
FileClose procedure
Closes a specified file.
FileDateToDateTime function
Converts a DOS date-time value to TDateTime value.
FileExists function
Tests if a specified file exists.
FileGetAttr function
Returns the file attributes of FileName.
FileGetDate function
Returns a DOS date-time stamp for a specified file.
FileOpen function
Opens a specified file using a specified access mode.
FileRead function
Reads a specified number of bytes from a file.
FileSearch function
Searches a specified DOS path for a file.
FileSeek function
Positions the current file pointer in a previously opened file.
FileSetAttr function
Sets the file attributes of a specified file.
FileSetDate function
Sets the DOS time stamp for a specified file.
FileWrite function
Writes the contents of a buffer to the current position in a file.
FindClose procedure
Releases memory allocated by FindFirst.
FindFirst function
Searches for the first instance of a file name with a given set of attributes in a specified directory.
FindNext function
Returns the next entry matching the name and attributes specified in a previous call to FindFirst.
ForceDirectories function
Creates all the directories along a directory path if they do not already exist.
GetCurrentDir function
Returns the name of the current directory.
GetDir procedure
Returns the current directory for a specified drive.
RemoveDir function
Deletes an existing empty directory.
RenameFile function
Changes a file name.
SetCurrentDir function
Sets the current directory.
3. BitBtn or SpeedButton
Top
2 楼Little2000(rainy)回复于 2003-08-05 10:23:25 得分 10
BitBtn 或 SpeedButtonTop
3 楼etomahawk(一意孤行)回复于 2003-08-06 10:22:46 得分 0
能不能给一个链表的例子啊!
第三个问题我问的是:那个组件可以实现文字与图形一起显示,就像QQ一样!可以发送一些表情图形!
Top




