Browse Source

Quick.Console: new cout function overload

Unknown 7 năm trước cách đây
mục cha
commit
5acaef87d3
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      Quick.Console.pas

+ 5 - 0
Quick.Console.pas

@@ -114,6 +114,7 @@ type
   procedure cout(const cMsg : Double; cEventType : TLogEventType); overload;
   procedure cout(const cMsg : string; cEventType : TLogEventType); overload;
   procedure cout(const cMsg : string; cColor : TConsoleColor); overload;
+  procedure cout(const cMsg : string; params : array of const; cEventType : TLogEventType); overload;
   procedure coutXY(x,y : Integer; const cMsg : string; cEventType : TLogEventType); overload;
   procedure coutXY(x,y : Integer; const cMsg : string; cColor : TConsoleColor); overload;
   procedure coutXY(x,y : Integer; const cMsg : string; params : array of const; cEventType : TLogEventType); overload;
@@ -229,6 +230,10 @@ begin
   end;
 end;
 
+procedure cout(const cMsg : string; params : array of const; cEventType : TLogEventType);
+begin
+  cout(Format(cMsg,params),cEventType);
+end;
 
 function GetCursorX: Integer; {$IFDEF INLINES}inline;{$ENDIF}
 var