. ( ), ++ . :
for (<..> = <..>; <>; < ..>)
<>;
for (. . ); <..> , ; <..> , , ; <> , ; < ..> , ; <> C++, , .
: , , , , , , . . . , . , . , .
.
, #include string.h .
strlen (s) - ( -). s .
strcat (s1, s2) . s1, s2 . , . s2 , s1 , .
strcmp (s1, s2) . s1, s2- . 0, . , .
strcpy (s1, s2) : , , , .
strchr (s, c) s , , NULL.
strstr (s1, s2) s1 s2 , , NULL.
addcslashes | C |
addslashes | |
bin2hex | |
chr | |
chunk_split | |
convert_cyr_string | |
count_chars | , |
crc32 | CRC32 |
crypt | () |
echo | |
explode | |
fprintf | |
get_html_translation_table | , htmlspecialchars() htmlentities() |
hebrev | . |
hebrevc | . |
htmlentities | HTML . |
htmlspecialchars | HTML |
html_entity_decode | HTML |
implode | |
localeconv | |
ltrim | |
md5 | MD5 |
md5_file | MD5 |
metaphone | metaphone |
nl2br | HTML |
number_format | |
ord | ASCII |
parse_str | |
printf | |
quoted_printable_decode | , quoted printable |
quotemeta | |
rtrim | |
sha1 | SHA1 |
sha1_file | SHA1 |
similar_text | |
soundex | soundex |
sprintf | |
sscanf | |
strcasecmp | , |
strcmp | , |
strcoll | |
strcspn | , |
stripcslashes | , addcslashes() |
stripos | |
stripslashes | , addslashes() |
strip_tags | HTML PHP |
stristr | strstr, . |
strnatcasecmp | " " |
strnatcmp | " " |
strncasecmp | n , |
strncmp | n , |
strpos | |
strrchr | |
strrev | |
strripos | |
strrpos | |
strspn | , |
strtok | |
strtolower | |
strtoupper | |
strtr | |
str_ireplace | - str_replace(). |
str_pad | |
str_repeat | |
str_replace | |
str_rot13 | ROT13 |
str_shuffle | |
str_split | |
str_word_count | , |
substr | |
substr_count | |
substr_replace | |
trim | |
ucfirst | |
ucwords | |
vprintf | |
vsprintf | |
wordwrap | . |
|
|
|
|
.
, , . () . , . , , . .
:
struct < >
{
< . >
};
struct ;
< > ;
< . > , , .
:
struct auto
{
char mark [10],
type [10];
int date;
float ob;
};