delphi为什么不能ctrl+shift+c

来源:百度知道 编辑:UC知道 时间:2024/09/21 06:57:58
代码如下 我想输出函数talk 但是
ctrl+shift+c没用 请说明具体的方法以及出错原因
unit untclassstudent;

interface
type
Tstudent=class
Name:string; //姓名
sex:boolean; //性别
birthday:TDate //出生年月
function Talk:string;
end;
implementation

end.

1 uses Controls
2 //出生年月 前要加个;

unit Unit2;
uses Controls;
interface
type
Tstudent=class
Name:string; //姓名
sex:boolean; //性别
birthday:TDate; //出生年月
function Talk:string;
end;
implementation

{ Tstudent }

function Tstudent.Talk: string;
begin

end;

end.

有可能是这个原因,请试下吧
Tool ->Editor Options -> Key Mappings -> 选中左边的Default