小弟刚学Delphi语言,遇到两个程序题,那位高手帮忙解答一下,不胜感激!
题一
_____date; _____ type TDate = _____
Public
Function getYear():integer;
Function getMonth():integer;
…
Private
…
Protected
…
_____ ImplementationFunction TDateTime.getYear():integer;
Begin;
_____ :=2008;
End;
题二
Unit unit1;Interface
Uses ………..;
TForm1 = Class(TForm)
Public
…
Private
…
Protected
Procedure drawIt(canvas:TCanvas);
Procedure paint; _____ ;
Procedure print;
End;
_____ form1:TForm1;Implementationprocedure TForm1.drawIt(canvas:TCanvas);
begin
…
end;procedure TForm1.paint;
begin
…
end;procedure print;
begin
printer. _____ ;
drawIt( _____ );
printer. _____ ;
end;
…
end.
就是空白的地方需要补填起来,是作业题,帮帮忙!
题一
_____date; _____ type TDate = _____
Public
Function getYear():integer;
Function getMonth():integer;
…
Private
…
Protected
…
_____ ImplementationFunction TDateTime.getYear():integer;
Begin;
_____ :=2008;
End;
题二
Unit unit1;Interface
Uses ………..;
TForm1 = Class(TForm)
Public
…
Private
…
Protected
Procedure drawIt(canvas:TCanvas);
Procedure paint; _____ ;
Procedure print;
End;
_____ form1:TForm1;Implementationprocedure TForm1.drawIt(canvas:TCanvas);
begin
…
end;procedure TForm1.paint;
begin
…
end;procedure print;
begin
printer. _____ ;
drawIt( _____ );
printer. _____ ;
end;
…
end.
就是空白的地方需要补填起来,是作业题,帮帮忙!
解决方案 »
- 问一个指针转换的问题,看不懂
- 怎么样用DSPack拍摄一张照片
- Delphi写好一个程序打开运行后
- 有事不明:哪位过了计算机软件专业技术资格和水平考试,请问这个考试是不是就是职称考试?
- 时间数据过滤,急急急急!
- 关于传奇外挂中某些功能实现的方法
- 想实现在图片上移动就换图片,鼠标移开换回原图片效果,换的时候老是闪烁,大家有好的思路吗?
- ADO高手请进
- 请大家推荐几本初学DELPHI的书~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 我对这些烂玩意儿烦而又烦,是否该和Microsoft说再见?!
- 如何算出五个点的重心
- 我没有其他编程语言基础,但我想学开发语言
Public
Function getYear():integer;
Function getMonth():integer;
…
Private
…
Protected
…
end;_____ImplementationFunction TDateTime.getYear():integer;
Begin;
Result _____ :=2008;
End;
题二
Unit unit1;Interface
Uses ………..;
TForm1 = Class(TForm)
Public
…
Private
…
Protected
Procedure drawIt(canvas:TCanvas);
Procedure paint; override_____ ;
Procedure print;
End;
var _____ form1:TForm1;Implementationprocedure TForm1.drawIt(canvas:TCanvas);
begin
…
end;procedure TForm1.paint;
begin
…
end;procedure print;
begin
printer. _____ ;
drawIt( _____ );
printer. _____ ;
end;
…
end.
Public
Function getYear():integer;
Function getMonth():integer;
…
Private
…
Protected
…
end;Implementation Function TDateTime.getYear():integer;
Begin;
Result :=2008;
End;
题二
Unit unit1; Interface
Uses ………..;
TForm1 = Class(TForm)
Public
…
Private
…
Protected
Procedure drawIt(canvas:TCanvas);
Procedure paint; override;
Procedure print;
End;
var form1:TForm1; Implementation procedure TForm1.drawIt(canvas:TCanvas);
begin
…
end; procedure TForm1.paint;
begin
…
end; procedure print;
begin
printer. begindoc;
drawIt( form1 );
printer. enddoc;
end;
…
end.
begin
printer. begindoc;
drawIt( printer );
printer. enddoc;
end;
…
end.