Pre {Line-Height: 1; color: #9f1d66; Background-color: # f0f0f0; font-size: 16px ;}. sysfunc {color: # 5d57ff; font-style: italic; font-weight: bold ;}. selffuc {color: #8e0ed3 ;}. bool {color: #008000 ;}. condition {color: #008000; font-weight: bold ;}. key {color: #440080 ;}. vaR {color: #008000; font-style: italic ;}. digit {color: #000080; font-weight: bold ;}. includepre {color: # 661d9f ;}. operator? {Color: # fd1a53; font-weight: bold ;}
Format ()? Function is used to convert data into formatted strings for output ?????? For example ;????????????? Int ??? X ??? = ??? 123 ;???? Cstring ??? STR ;???? Str. Format ("% d ",??? X );??????????????????? //??? 123 ???? Str. Format ("% 6D ",??? X );????????????????? //??????? 123 ???? Str. Format ("% 06d ",??? X );??????????????? // 000123 ?????.... Not 6 ?? Add 0 ?? Is this more practical ?? Str. Format ("% x ",??? X );??????????????????? // 7b ???? Str. Format ("% x ",??? X );??????????????????? // 7b ???? Str. Format ("% 04x ",??? X );??????????????? // 007b ??????? Float ??? X ??? = ??? 123.456 ;???? Str. Format ("% F ",??? X );??????????????????? //??? 123.456 ???? Str. Format ("% 2.3f ");??????????????????? //??? 123.456 ???? Str. Format ("% 4.2f ");??????????????????? //????? 123.45 ??? Cstring ??? Errormessage ;???? Errormessage. Format ("the specified number of connections is missing! /R/n accept information: % s ", E. errormessage ());
Used in this article? Calligraphy and painting novel software? Released, the content has nothing to do with the software, and the painting and calligraphy novel software? More comfortable reading, more comfortable writing, and easier Publishing.
Cstring format () usage ?. XML