Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::open($save_path, $session_name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 199
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 214
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::read($id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 228
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::write($id, $dataStr) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 256
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::destroy($id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 362
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 383
Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 126
Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 127
Warning: session_cache_limiter(): Session cache limiter cannot be changed after headers have already been sent in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 133
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Warning: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent in /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php on line 140
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of Wikimedia\Rdbms\IResultWrapper::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php on line 70
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of Wikimedia\Rdbms\IResultWrapper::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php on line 80
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of Wikimedia\Rdbms\IResultWrapper::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php on line 75
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of Wikimedia\Rdbms\ResultWrapper::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php on line 117
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of Wikimedia\Rdbms\ResultWrapper::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php on line 90
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 624
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 629
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 639
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 634
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 649
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 644
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 659
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of & MediaWiki\Session\Session::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 672
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 681
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Return type of MediaWiki\Session\Session::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cppe.ru/www/includes/session/Session.php on line 685
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Message implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/cppe.ru/www/includes/Message.php on line 159
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: RawMessage implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/cppe.ru/www/includes/RawMessage.php on line 34
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property RequestContext::$recursion is deprecated in /var/www/cppe.ru/www/includes/context/RequestContext.php on line 354
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property Parser::$mPreprocessorClass is deprecated in /var/www/cppe.ru/www/includes/parser/Parser.php on line 280
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /var/www/cppe.ru/www/includes/parser/Preprocessor_DOM.php on line 803
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php:34) in /var/www/cppe.ru/www/includes/Feed.php on line 232
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php:34) in /var/www/cppe.ru/www/includes/Feed.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php:34) in /var/www/cppe.ru/www/includes/WebResponse.php on line 46
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php:34) in /var/www/cppe.ru/www/includes/WebResponse.php on line 46
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php:34) in /var/www/cppe.ru/www/includes/WebResponse.php on line 46
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cppe.ru/www/includes/session/PHPSessionHandler.php:34) in /var/www/cppe.ru/www/includes/WebResponse.php on line 46 Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
http://www.cppe.ru/index.php?action=history&feed=atom&title=C%2FString%2FString_GeneralC/String/String General - История изменений2026-11-17T19:26:29ZИстория изменений этой страницы в викиMediaWiki 1.30.0 Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/cppe.ru/www/includes/content/TextContent.php on line 56
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/cppe.ru/www/includes/content/TextContent.php on line 56
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property PoolCounterWorkViaCallback::$poolCounter is deprecated in /var/www/cppe.ru/www/includes/poolcounter/PoolCounterWork.php on line 39
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /var/www/cppe.ru/www/includes/parser/Preprocessor_DOM.php on line 803
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /var/www/cppe.ru/www/includes/parser/Preprocessor_DOM.php on line 803
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property BlockLevelPass::$lineStart is deprecated in /var/www/cppe.ru/www/includes/parser/BlockLevelPass.php on line 60
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48 Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
http://www.cppe.ru/index.php?title=C/String/String_General&diff=138&oldid=prev в 14:20, 25 мая 20102010-05-25T14:20:56Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr style="vertical-align: top;" lang="ru">
<td colspan="1" style="background-color: white; color:black; text-align: center;">← Предыдущая</td>
<td colspan="1" style="background-color: white; color:black; text-align: center;">Версия 14:20, 25 мая 2010</td>
</tr><tr><td colspan="2" style="text-align: center;" lang="ru"><div class="mw-diff-empty">(нет различий)</div>
</td></tr></table> Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/cppe.ru/www/includes/content/TextContent.php on line 56
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48 Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
http://www.cppe.ru/index.php?title=C/String/String_General&diff=139&oldid=prevAdmin: 1 версия: Импорт контента...2010-05-25T10:22:17Z<p>1 версия: Импорт контента...</p>
<p><b>Новая страница</b></p><div>==A function to read a string terminated by an arbitrary character==<br />
<br />
<br />
<br />
<br />
<source lang="cpp"><br />
#include <stdio.h><br />
#include <string.h><br />
#define MAX_SIZE 100<br />
<br />
char* getString(char *buffer, char end_char);<br />
int main()<br />
{<br />
char buffer[MAX_SIZE];<br />
int i = 0;<br />
printf("Enter a string terminated by a semi-colon:\n");<br />
getString(buffer, ";");<br />
printf(":\n%s\n", buffer);<br />
}<br />
char* getString(char *buffer, char end_char)<br />
{<br />
size_t i = 0;<br />
/* Read a character until end_char is entered */<br />
while((buffer[i++] = getchar()) != end_char)<br />
;<br />
buffer[i-1] = "\0"; /* Overwrite end_char with string terminator */<br />
return buffer;<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==Analyze comma-separated list of words==<br />
<br />
<br />
<br />
<br />
<source lang="cpp"><br />
#include <stdio.h><br />
#include <string.h><br />
int main()<br />
{<br />
char list[5000]="This, is, a, test.";<br />
char words[500][20];<br />
const char comma = ",";<br />
const char space = " ";<br />
int count = 0;<br />
int word_length = 0;<br />
int i = 0;<br />
while(list[i] != "\0")<br />
{<br />
/* Skip over spaces and commas */<br />
while(list[i] == space || list[i] == comma)<br />
++i;<br />
/* Copy characters that are not space, comma or \0 as part of a word */<br />
while(list[i] != space && list[i] != comma && list[i] != "\0")<br />
words[count][word_length++] = list[i++];<br />
words[count++][word_length] = "\0"; /* Append terminator */<br />
word_length = 0;<br />
}<br />
printf("\nThe words in the list are:\n");<br />
for(i = 0 ; i<count ; i++)<br />
printf("%s\n",words[i]);<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==Arrays of Pointers to Strings==<br />
<br />
<br />
<br />
<br />
<source lang="cpp"><br />
#include <stdio.h><br />
#define BUFFER_LEN 500<br />
int main() {<br />
char buffer[BUFFER_LEN];<br />
char *pS[3] = { NULL };<br />
char *pbuffer = buffer;<br />
int i = 0;<br />
for (i=0; i<3 ; i++)<br />
{<br />
printf("\nEnter a message\n");<br />
*(pS + i) = pbuffer; <br />
/* Get input till Enter pressed */<br />
while ((*pbuffer++ = getchar()) != "\n");<br />
*(pbuffer - 1) = "\0";<br />
}<br />
printf("\nThe strings you entered are:\n\n");<br />
for(i = 0 ; i<3 ; i++)<br />
printf("%s\n", *(pS+i));<br />
printf("The buffer has %d characters unused.\n",&buffer[BUFFER_LEN - 1] - pbuffer + 1);<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==Function: Sort string ==<br />
<br />
<br />
<br />
<source lang="cpp"><br />
#include <stdio.h><br />
#include <stdlib.h><br />
#include <string.h><br />
#define TRUE 1<br />
#define FALSE 0<br />
void str_sort(char *[], int);<br />
void str_out(char *[], int);<br />
#define BUFFER_LEN 240<br />
#define NUM_P 50<br />
int main()<br />
{<br />
char *pS[NUM_P];<br />
int count = 3;<br />
int i = 0; /* Loop counter */<br />
pS[0] = "A";<br />
pS[1] = "C";<br />
pS[2] = "B";<br />
str_sort( pS, count );<br />
printf("\nYour input sorted in order is:\n\n");<br />
for (i = 0 ; i<count ; i++)<br />
{<br />
printf("%s\n", pS[i]); /* Display a string */<br />
free(pS[i]); /* Free memory for the string */<br />
pS[i] = NULL;<br />
}<br />
}<br />
void str_sort(char *p[], int n)<br />
{<br />
char *pTemp = NULL;<br />
int i = 0;<br />
int sorted = FALSE;<br />
while(!sorted)<br />
{<br />
sorted = TRUE;<br />
for( i = 0 ; i<n-1 ; i++ )<br />
if(strcmp(p[i], p[i + 1]) > 0)<br />
{<br />
sorted = FALSE;<br />
pTemp= p[i];<br />
p[i] = p[i + 1];<br />
p[i + 1] = pTemp;<br />
}<br />
}<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==How to copy a string==<br />
<br />
<br />
<br />
<source lang="cpp"><br />
<br />
#include <string.h><br />
#include <stdio.h><br />
int main(void)<br />
{<br />
char str[5];<br />
strcpy(str, "this is a test");<br />
printf(str);<br />
return 0;<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==Looking for palindromes==<br />
<br />
<br />
<br />
<source lang="cpp"><br />
#include <stdio.h><br />
#include <string.h><br />
#include <ctype.h><br />
int main()<br />
{<br />
char sentence_chars[500] ="level";<br />
int i = 0;<br />
int j = 0;<br />
int length = 0;<br />
length = strlen(sentence_chars);<br />
for(i = 0 ; i<length/2 ; i++){<br />
if(sentence_chars[i] != sentence_chars[length-1-i])<br />
{<br />
printf("\n The sentence you entered is not a palindrome.\n");<br />
break;<br />
}<br />
}<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==Managing memory and storing strings==<br />
<br />
<br />
<br />
<source lang="cpp"><br />
#include <stdio.h><br />
#define BUFFER_LEN 500<br />
int main()<br />
{<br />
char buffer[BUFFER_LEN]; /* Store for strings */<br />
char *pS1 = NULL; /* Pointer to first string */<br />
char *pS2 = NULL; /* Pointer to second string */<br />
char *pS3 = NULL; /* Pointer to third string */<br />
char *pbuffer = buffer; /* Pointer to buffer */<br />
printf("\nEnter a message\n");<br />
pS1 = pbuffer;<br />
while ((*pbuffer++ = getchar()) != "\n");<br />
*(pbuffer - 1) = "\0";<br />
printf("\nEnter another message\n");<br />
pS2 = pbuffer;<br />
while ((*pbuffer++ = getchar()) != "\n");<br />
*(pbuffer - 1) = "\0";<br />
printf("\nEnter another message\n");<br />
pS3 = pbuffer;<br />
while((*pbuffer++ = getchar()) != "\n");<br />
*(pbuffer - 1) = "\0";<br />
printf("\nThe strings you entered are:\n\n%s\n%s\n%s",pS1, pS2, pS3);<br />
printf("\nThe buffer has %d characters unused.\n",&buffer[BUFFER_LEN - 1] - pbuffer + 1);<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==Output a name and address==<br />
<br />
<br />
<br />
<source lang="cpp"><br />
#include <stdio.h><br />
void main()<br />
{<br />
/* The double quotes must appear as the escape sequence \" */<br />
printf("\n\"It"s freezing in here,\" he said coldly.\n");<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==Output a name and address 2==<br />
<br />
<br />
<br />
<source lang="cpp"><br />
<br />
#include <stdio.h><br />
void main()<br />
{<br />
printf("\nGeorge Washington");<br />
printf("\n3200 George Washington Memorial Parkway");<br />
printf("\nMount Vernon");<br />
printf("\nVirginia 22121\n");<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==Output a name and address in a single statement==<br />
<br />
<br />
<br />
<source lang="cpp"><br />
#include <stdio.h><br />
void main() {<br />
/* The compiler will automatically join strings together into <br />
a single string when they immediately follow one another */<br />
printf("\nGeorge Washington"<br />
"\n3200 George Washington Memorial Parkway"<br />
"\nMount Vernon\nVirginia 22121\n");<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==Output string==<br />
<br />
<br />
<br />
<source lang="cpp"><br />
<br />
#include <stdio.h><br />
int main(void)<br />
{<br />
printf("%s %s %s", "1", "2", "3");<br />
return 0;<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==Reading a string with gets()==<br />
<br />
<br />
<br />
<source lang="cpp"><br />
#include <stdio.h><br />
void main()<br />
{<br />
char initial[2] = { 0 };<br />
char name[80] = { 0 };<br />
printf("Your first initial: ");<br />
gets(initial);<br />
<br />
printf("Your name: " );<br />
gets(name);<br />
<br />
if(initial[0] != name[0])<br />
printf("\n%s,you got your initial wrong.\n", name);<br />
else<br />
printf("\nHi, %s. Your initial is correct. Well done!\n", name);<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==Removing spaces and puctuation from a string==<br />
<br />
<br />
<br />
<br />
<source lang="cpp"><br />
#include <stdio.h><br />
#include <ctype.h><br />
int main()<br />
{<br />
char buffer[80] = "This is a test";<br />
char *pbuffer1 = buffer;<br />
char *pbuffer2 = buffer;<br />
pbuffer1 = buffer; /* Reset pointer to start */<br />
while(*pbuffer1 != "\0")<br />
{<br />
if(ispunct(*pbuffer1) || isspace(*pbuffer1))<br />
{<br />
++pbuffer1;<br />
continue;<br />
}<br />
else<br />
*pbuffer2++ = *pbuffer1++; /* otherwise, copy the character */<br />
}<br />
*pbuffer2 = "\0"; /* Append string terminator */<br />
printf("\n%s\n", buffer);<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==REVERSI An Othello type game==<br />
<br />
<br />
<br />
<br />
<source lang="cpp"><br />
/*<br />
Beginning C, Third Edition<br />
By Ivor Horton<br />
ISBN: 1-59059-253-0<br />
Published: Apr 2004<br />
Publisher: apress<br />
*/<br />
#include <stdio.h><br />
#include <ctype.h><br />
#define SIZE 6 /* Board size - must be even */<br />
/* Function prototypes */<br />
void display(char board[][SIZE]);<br />
int valid_moves(char board[][SIZE], int moves[][SIZE], char player); <br />
void make_move(char board[][SIZE], int row, int col, char player); <br />
void computer_move(char board[][SIZE], int moves[][SIZE], char player); <br />
int best_move(char board[][SIZE], int moves[][SIZE], char player);<br />
int get_score(char board[][SIZE], char player);<br />
void main()<br />
{<br />
char board [SIZE][SIZE] = { 0 }; /* The board */<br />
int moves[SIZE][SIZE] = { 0 }; /* Valid moves */<br />
int row = 0; /* Board row index */<br />
int col = 0; /* Board column index */<br />
int no_of_games = 0; /* Number of games */<br />
int no_of_moves = 0; /* Count of moves */<br />
int invalid_moves = 0; /* Invalid move count */<br />
int comp_score = 0; /* Computer score */<br />
int user_score = 0; /* Player score */<br />
char y = 0; /* Column letter */<br />
int x = 0; /* Row number */<br />
char again = 0; /* Replay choice input */<br />
int player = 0; /* Player indicator */<br />
printf("\nREVERSI\n\n");<br />
printf("You can go first on the first game, then we will take turns.\n");<br />
printf(" You will be white - (O)\n I will be black - (@).\n");<br />
printf("Select a square for your move by typing a digit for the row\n "<br />
"and a letter for the column with no spaces between.\n");<br />
printf("\nGood luck! Press Enter to start.\n");<br />
scanf("%c", &again);<br />
/* Prompt for how to play - as before */<br />
/* The main game loop */<br />
do<br />
{<br />
/* On even games the player starts; */<br />
/* on odd games the computer starts */<br />
player = ++no_of_games % 2; <br />
no_of_moves = 4; /* Starts with four counters */<br />
/* Blank all the board squares */ <br />
for(row = 0; row < SIZE; row++)<br />
for(col = 0; col < SIZE; col++)<br />
board[row][col] = " ";<br />
/* Place the initial four counters in the center */<br />
board[SIZE/2 - 1][SIZE/2 - 1] = board[SIZE/2][SIZE/2] = "O";<br />
board[SIZE/2 - 1][SIZE/2] = board[SIZE/2][SIZE/2 - 1] = "@";<br />
/* The game play loop */<br />
do<br />
{<br />
display(board); /* Display the board */<br />
if(player++ % 2)<br />
{ /* It is the player"s turn */<br />
if(valid_moves(board, moves, "O"))<br />
{<br />
/* Read player moves until a valid move is entered */<br />
for(;;)<br />
{<br />
fflush(stdin); /* Flush the keyboard buffer */<br />
printf("Please enter your move (row column): "); <br />
scanf("%d%c", &x, &y); /* Read input */<br />
y = tolower(y) - "a"; /* Convert to column index */<br />
x--; /* Convert to row index */<br />
if( x>=0 && y>=0 && x<SIZE && y<SIZE && moves[x][y])<br />
{<br />
make_move(board, x, y, "O");<br />
no_of_moves++; /* Increment move count */<br />
break;<br />
}<br />
else<br />
printf("Not a valid move, try again.\n");<br />
}<br />
}<br />
else /* No valid moves */<br />
if(++invalid_moves<2)<br />
{<br />
fflush(stdin);<br />
printf("\nYou have to pass, press return");<br />
scanf("%c", &again);<br />
}<br />
else<br />
printf("\nNeither of us can go, so the game is over.\n");<br />
}<br />
else<br />
{ /* It is the computer"s turn */<br />
if(valid_moves(board, moves, "@")) /* Check for valid moves */<br />
{<br />
invalid_moves = 0; /* Reset invalid count */<br />
computer_move(board, moves, "@");<br />
no_of_moves++; /* Increment move count */<br />
}<br />
else<br />
{<br />
if(++invalid_moves<2)<br />
printf("\nI have to pass, your go\n"); /* No valid move */<br />
else<br />
printf("\nNeither of us can go, so the game is over.\n");<br />
}<br />
}<br />
}while(no_of_moves < SIZE*SIZE && invalid_moves<2);<br />
/* Game is over */<br />
display(board); /* Show final board */<br />
/* Get final scores and display them */<br />
comp_score = user_score = 0; <br />
for(row = 0; row < SIZE; row++)<br />
for(col = 0; col < SIZE; col++)<br />
{<br />
comp_score += board[row][col] == "@";<br />
user_score += board[row][col] == "O";<br />
}<br />
printf("The final score is:\n");<br />
printf("Computer %d\n User %d\n\n", comp_score, user_score);<br />
fflush(stdin); /* Flush the input buffer */<br />
printf("Do you want to play again (y/n): ");<br />
scanf("%c", &again); /* Get y or n */<br />
}while(tolower(again) == "y"); /* Go again on y */<br />
printf("\nGoodbye\n"); <br />
}<br />
/***********************************************<br />
* Function to display the board in it"s *<br />
* current state with row numbers and column *<br />
* letters to identify squares. *<br />
* Parameter is the board array. *<br />
***********************************************/<br />
void display(char board[][SIZE])<br />
{<br />
int row = 0; /* Row index */<br />
int col = 0; /* Column index */<br />
char col_label = "a"; /* Column label */<br />
printf("\n "); /* Start top line */<br />
for(col = 0 ; col<SIZE ;col++)<br />
printf(" %c", col_label+col); /* Display the top line */<br />
printf("\n"); /* End the top line */<br />
/* Display the intermediate rows */ <br />
for(row = 0; row < SIZE; row++)<br />
{<br />
printf(" +");<br />
for(col = 0; col<SIZE; col++)<br />
printf("---+");<br />
printf("\n%2d|",row + 1); <br />
for(col = 0; col<SIZE; col++)<br />
printf(" %c |", board[row][col]); /* Display counters in row */<br />
printf("\n"); <br />
}<br />
printf(" +"); /* Start the bottom line */<br />
for(col = 0 ; col<SIZE ;col++)<br />
printf("---+"); /* Display the bottom line */<br />
printf("\n"); /* End the bottom line */<br />
}<br />
/***********************************************<br />
/* Calculates which squares are valid moves *<br />
* for player. Valid moves are recorded in the *<br />
* moves array - 1 indicates a valid move, *<br />
* 0 indicates an invalid move. *<br />
* First parameter is the board array *<br />
* Second parameter is the moves array *<br />
* Third parameter identifies the player *<br />
* to make the move. *<br />
* Returns valid move count. *<br />
***********************************************/<br />
int valid_moves(char board[][SIZE], int moves[][SIZE], char player)<br />
{<br />
int rowdelta = 0; /* Row increment around a square */<br />
int coldelta = 0; /* Column increment around a square */<br />
int row = 0; /* Row index */<br />
int col = 0; /* Column index */<br />
int x = 0; /* Row index when searching */<br />
int y = 0; /* Column index when searching */<br />
int no_of_moves = 0; /* Number of valid moves */<br />
/* Set the opponent */<br />
char opponent = (player == "O")? "@" : "O"; <br />
/* Initialize moves array to zero */<br />
for(row = 0; row < SIZE; row++)<br />
for(col = 0; col < SIZE; col++)<br />
moves[row][col] = 0;<br />
/* Find squares for valid moves. */<br />
/* A valid move must be on a blank square and must enclose */<br />
/* at least one opponent square between two player squares */<br />
for(row = 0; row < SIZE; row++)<br />
for(col = 0; col < SIZE; col++)<br />
{<br />
if(board[row][col] != " ") /* Is it a blank square? */<br />
continue; /* No - so on to the next */<br />
/* Check all the squares around the blank square */ <br />
/* for the opponents counter */<br />
for(rowdelta = -1; rowdelta <= 1; rowdelta++)<br />
for(coldelta = -1; coldelta <= 1; coldelta++)<br />
{ <br />
/* Don"t check outside the array, or the current square */<br />
if(row + rowdelta < 0 || row + rowdelta >= SIZE ||<br />
col + coldelta < 0 || col + coldelta >= SIZE || <br />
(rowdelta==0 && coldelta==0))<br />
continue;<br />
/* Now check the square */<br />
if(board[row + rowdelta][col + coldelta] == opponent)<br />
{<br />
/* If we find the opponent, move in the delta direction */<br />
/* over opponent counters searching for a player counter */<br />
x = row + rowdelta; /* Move to */<br />
y = col + coldelta; /* opponent square */<br />
/* Look for a player square in the delta direction */<br />
for(;;)<br />
{<br />
x += rowdelta; /* Go to next square */<br />
y += coldelta; /* in delta direction*/<br />
/* If we move outside the array, give up */<br />
if(x < 0 || x >= SIZE || y < 0 || y >= SIZE)<br />
break;<br />
/* If we find a blank square, give up */ <br />
if(board[x][y] == " ")<br />
break;<br />
/* If the square has a player counter */<br />
/* then we have a valid move */<br />
if(board[x][y] == player)<br />
{<br />
moves[row][col] = 1; /* Mark as valid */<br />
no_of_moves++; /* Increase valid moves count */<br />
break; /* Go check another square */<br />
}<br />
} <br />
} <br />
} <br />
}<br />
return no_of_moves; <br />
}<br />
/************<br />
* Finds the best move for the computer. This is the move for *<br />
* which the opponent"s best possible move score is a minimum. *<br />
* First parameter is the board array. *<br />
* Second parameter is the moves array containing valid moves. *<br />
* Third parameter identifies the computer. *<br />
************/<br />
void computer_move(char board[][SIZE], int moves[][SIZE], char player)<br />
{<br />
int row = 0; /* Row index */<br />
int col = 0; /* Column index */<br />
int best_row = 0; /* Best row index */<br />
int best_col = 0; /* Best column index */<br />
int i = 0; /* Loop index */<br />
int j = 0; /* Loop index */<br />
int new_score = 0; /* Score for current move */<br />
int score = 100; /* Minimum opponent score */<br />
char temp_board[SIZE][SIZE]; /* Local copy of board */<br />
int temp_moves[SIZE][SIZE]; /* Local valid moves array */<br />
char opponent = (player == "O")? "@" : "O"; /* Identify opponent */<br />
/* Go through all valid moves */<br />
for(row = 0; row < SIZE; row++)<br />
for(col = 0; col < SIZE; col++)<br />
{<br />
if(moves[row][col] == 0)<br />
continue;<br />
<br />
/* First make copies of the board and moves arrays */<br />
for(i = 0; i < SIZE; i++)<br />
for(j = 0; j < SIZE; j++)<br />
temp_board[i][j] = board[i][j];<br />
<br />
/* Now make this move on the temporary board */<br />
make_move(temp_board, row, col, player); <br />
/* find valid moves for the opponent after this move */<br />
valid_moves(temp_board, temp_moves, opponent);<br />
/* Now find the score for the opponents best move */<br />
new_score = best_move(temp_board, temp_moves, opponent);<br />
if(new_score<score) /* Is it worse? */<br />
{ /* Yes, so save this move */<br />
score = new_score; /* Record new lowest opponent score */<br />
best_row = row; /* Record best move row */<br />
best_col = col; /* and column */<br />
}<br />
}<br />
/* Make the best move */<br />
make_move(board, best_row, best_col, player); <br />
}<br />
/************<br />
* Calculates the score for the current board position for the *<br />
* player. player counters score +1, opponent counters score -1 *<br />
* First parameter is the board array *<br />
* Second parameter identifies the player *<br />
* Return value is the score. *<br />
************/<br />
int get_score(char board[][SIZE], char player)<br />
{<br />
int score = 0; /* Score for current position */<br />
int row = 0; /* Row index */ <br />
int col = 0; /* Column index */<br />
char opponent = player == "O" ? "@" : "O"; /* Identify opponent */<br />
/* Check all board squares */<br />
for(row = 0; row < SIZE; row++)<br />
for(col = 0; col < SIZE; col++)<br />
{ <br />
score -= board[row][col] == opponent; /* Decrement for opponent */<br />
score += board[row][col] == player; /* Increment for player */<br />
}<br />
return score; <br />
}<br />
/************<br />
* Calculates the score for the best move out of the valid moves *<br />
* for player in the current position. *<br />
* First parameter is the board array *<br />
* Second parameter is the moves array defining valid moves. *<br />
* Third parameter identifies the player *<br />
* The score for the best move is returned *<br />
************/<br />
int best_move(char board[][SIZE], int moves[][SIZE], char player)<br />
{<br />
int row = 0; /* Row index */<br />
int col = 0; /* Column index */<br />
int i = 0; /* Loop index */<br />
int j = 0; /* Loop index */<br />
char opponent = player=="O"?"@":"O"; /* Identify opponent */<br />
char new_board[SIZE][SIZE] = { 0 }; /* Local copy of board */<br />
int score = 0; /* Best score */<br />
int new_score = 0; /* Score for current move */<br />
/* Check all valid moves to find the best */<br />
for(row = 0 ; row<SIZE ; row++)<br />
for(col = 0 ; col<SIZE ; col++)<br />
{<br />
if(!moves[row][col]) /* Not a valid move? */<br />
continue; /* Go to the next */<br />
<br />
/* Copy the board */<br />
for(i = 0 ; i<SIZE ; i++)<br />
for(j = 0 ; j<SIZE ; j++)<br />
new_board[i][j] = board[i][j];<br />
/* Make move on the board copy */<br />
make_move(new_board, row, col, player); <br />
/* Get score for move */<br />
new_score = get_score(new_board, player); <br />
if(score<new_score) /* Is it better? */<br />
score = new_score; /* Yes, save it as best score */<br />
}<br />
return score; /* Return best score */<br />
}<br />
/*************<br />
* Makes a move. This places the counter on a square,and reverses *<br />
* all the opponent"s counters affected by the move. *<br />
* First parameter is the board array. *<br />
* Second and third parameters are the row and column indices. *<br />
* Fourth parameter identifies the player. *<br />
*************/<br />
void make_move(char board[][SIZE], int row, int col, char player)<br />
{<br />
int rowdelta = 0; /* Row increment */<br />
int coldelta = 0; /* Column increment */<br />
int x = 0; /* Row index for searching */<br />
int y = 0; /* Column index for searching */<br />
char opponent = (player == "O")? "@" : "O"; /* Identify opponent */<br />
board[row][col] = player; /* Place the player counter */<br />
/* Check all the squares around this square */<br />
/* for the opponents counter */<br />
for(rowdelta = -1; rowdelta <= 1; rowdelta++)<br />
for(coldelta = -1; coldelta <= 1; coldelta++)<br />
{ <br />
/* Don"t check off the board, or the current square */<br />
if(row + rowdelta < 0 || row + rowdelta >= SIZE ||<br />
col + coldelta < 0 || col + coldelta >= SIZE || <br />
(rowdelta==0 && coldelta== 0))<br />
continue;<br />
/* Now check the square */<br />
if(board[row + rowdelta][col + coldelta] == opponent)<br />
{<br />
/* If we find the opponent, search in the same direction */<br />
/* for a player counter */<br />
x = row + rowdelta; /* Move to opponent */<br />
y = col + coldelta; /* square */<br />
for(;;)<br />
{<br />
x += rowdelta; /* Move to the */<br />
y += coldelta; /* next square */ <br />
/* If we are off the board give up */<br />
if(x < 0 || x >= SIZE || y < 0 || y >= SIZE)<br />
break;<br />
<br />
/* If the square is blank give up */<br />
if(board[x][y] == " ")<br />
break;<br />
/* If we find the player counter, go backwards from here */<br />
/* changing all the opponents counters to player */<br />
if(board[x][y] == player)<br />
{<br />
while(board[x-=rowdelta][y-=coldelta]==opponent) /* Opponent? */<br />
board[x][y] = player; /* Yes, change it */<br />
break; /* We are done */<br />
} <br />
}<br />
}<br />
}<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==Storing and displaying proverbs in order of length==<br />
<br />
<br />
<br />
<source lang="cpp"><br />
/*<br />
Beginning C, Third Edition<br />
By Ivor Horton<br />
ISBN: 1-59059-253-0<br />
Published: Apr 2004<br />
Publisher: apress<br />
*/<br />
/********************<br />
* This program will read any number of proverbs of any length. *<br />
* The input buffer has a default size that is increased automatically *<br />
* if it is not large enough. The current contents of the old buffer *<br />
* are copied to the new and the old buffer is released before input *<br />
* continues. *<br />
* The same applies to the number of proverbs. If the initial capacity *<br />
* for pointers to proverbs is exceeded, a larger space is allocated *<br />
* and the existing pointers are copied to the new memory before releasing *<br />
* the old memory. *<br />
* You could add printf() statements to record when new memory is allocated*<br />
* Values for BUFFER_LEN, BUFFER_LEN_INCR, and CAPACITY_INCR are set low *<br />
* so as to cause frequent reallocation of memory for you to track. *<br />
* In a practical program they would be set much higher to avoid *<br />
* frequent allocation and release of memory. *<br />
*********************/<br />
#include <stdio.h><br />
#include <stdlib.h><br />
#include <string.h><br />
#define BUFFER_LEN 5 /* Initial length of input buffer */<br />
#define BUFFER_LEN_INCR 2 /* Increment to buffer length */<br />
#define CAPACITY_INCR 2 /* Increment to capacity for proverbs */<br />
void main()<br />
{<br />
char **pProverbs = NULL; /* Pointer to string pointer */<br />
char **temp = NULL; /* Temporary pointer to string pointer */<br />
int capacity = 0; /* Number of proverbs that can be stored */<br />
int count = 0; /* Number of proverbs read */<br />
char *pbuffer = NULL; /* Pointer to buffer */<br />
char *pstart = NULL; /* Pointer to buffer start */<br />
char *pstr = NULL; /* Pointer to a string */<br />
int buffer_length = BUFFER_LEN; /* Buffer length */<br />
int i = 0; /* Loop counter */<br />
int j = 0; /* Loop counter */<br />
pbuffer = (char*)malloc(BUFFER_LEN); /* Initial buffer size */<br />
pstart = pbuffer; /* Store start of buffer */<br />
for(;;)<br />
{<br />
if(count==capacity)<br />
{<br />
capacity += CAPACITY_INCR;<br />
temp = (char**)malloc(capacity*sizeof(char*));<br />
if(temp == NULL) /* If memory was not allocated */<br />
{ /* Output a message and end */<br />
printf("Memory allocation failed. Terminating program.");<br />
exit(1);<br />
}<br />
<br />
if(pProverbs == NULL) /* Are there any proverbs? */<br />
pProverbs = temp; /* No - so just copy address of new memory */<br />
else /* Yes - so copy data from old to new */<br />
{<br />
for(i = 0 ; i<count ; i++)<br />
*(temp+i) = *(pProverbs+i);<br />
free(pProverbs); /* Free the old memory */<br />
pProverbs = temp; /* Copy address of new */<br />
} <br />
temp = NULL; /* Reset pointer */<br />
}<br />
printf("Enter a proverb or press Enter to end:\n");<br />
/* Read a proverb */<br />
while((*pbuffer++ = getchar()) != "\n")<br />
{<br />
if(pbuffer-pstart == buffer_length) /* Check for buffer full */<br />
{<br />
buffer_length += BUFFER_LEN_INCR; /* Increase buffer length */<br />
pstr = (char*)malloc(buffer_length); /* Allocate new buffer */<br />
/* Copy old buffer contents to new */<br />
for(i = 0; i<pbuffer-pstart ; i++)<br />
*(pstr+i) = *(pstart+i);<br />
pbuffer = pstr+(pbuffer-pstart); /* Address of next position in new */<br />
free(pstart); /* Release old buffer memory */<br />
pstart = pstr; /* Set to start of new buffer */<br />
pstr = NULL; /* Reset pointer */<br />
}<br />
}<br />
/* check for empty line indicating end of input */<br />
if((pbuffer-pstart)<2)<br />
break;<br />
/* Check for string too long */<br />
if((pbuffer - pstart) == BUFFER_LEN && *(pbuffer-1)!= "\n")<br />
{<br />
printf("String too long ?maximum %d characters allowed.", <br />
BUFFER_LEN);<br />
pbuffer = pstart;<br />
continue;<br />
}<br />
*(pbuffer-1) = "\0"; /* Add string terminator */<br />
pbuffer = pstart;<br />
*(pProverbs+count) = (char*)malloc(strlen(pstart)+1);<br />
strcpy(*(pProverbs+count++),pstart);<br />
}<br />
/* Order the proverbs from shortest to longest */<br />
for(i = 0 ; i<count-1 ; i++)<br />
for(j = i+1 ; j<count ; j++)<br />
if(strlen(*(pProverbs+i))>strlen(*(pProverbs+j)))<br />
{<br />
pstr = *(pProverbs+i);<br />
*(pProverbs+i) = *(pProverbs+j);<br />
*(pProverbs+j) = pstr;<br />
}<br />
/* Output all the strings */<br />
printf("\nIn ascending length order, the proverbs you entered are:\n");<br />
for (i = 0 ; i<count ; i++ )<br />
{<br />
printf("\n%s", *(pProverbs + i));<br />
free(*(pProverbs + i)); /* Release the memory for the proverb */<br />
*(pProverbs + i) = NULL; /* Set pointer back to NULL for safety */<br />
}<br />
free(pProverbs); /* Release memory for the pointers */<br />
free(pstart); /* Release memory for the buffer */<br />
}<br />
<br />
<br />
</source><br />
<br />
<br />
==String length and string compare==<br />
<br />
<br />
<br />
<br />
<source lang="cpp"><br />
<br />
#include <string.h><br />
#include <stdio.h><br />
int main(void)<br />
{<br />
char str1[80], str2[80];<br />
int i;<br />
printf("Enter the first string: ");<br />
gets(str1);<br />
<br />
printf("Enter the second string: ");<br />
gets(str2);<br />
/* see how long the strings are */<br />
printf("%s is %d chars long\n", str1, strlen(str1));<br />
printf("%s is %d chars long\n", str2, strlen(str2));<br />
/* compare the strings */<br />
i = strcmp(str1, str2);<br />
if(!i) <br />
printf("The strings are equal.\n");<br />
else if(i<0) <br />
printf("%s is less than %s\n", str1, str2);<br />
else <br />
printf("%s is greater than %s\n", str1, str2);<br />
/* concatenate str2 to end of str1 if<br />
there is enough room */<br />
if(strlen(str1) + strlen(str2) < 80) {<br />
strcat(str1, str2);<br />
printf("%s\n", str1);<br />
}<br />
/* copy str2 to str1 */<br />
strcpy(str1, str2);<br />
printf("%s %s\n", str1, str2);<br />
return 0;<br />
}<br />
<br />
</source><br />
<br />
<br />
==Use gets to get the whole string==<br />
<br />
<br />
<br />
<source lang="cpp"><br />
<br />
#include <stdio.h><br />
int main(void)<br />
{<br />
char str[80];<br />
printf("Enter a string (less than 80 chars): ");<br />
<br />
gets(str);<br />
<br />
printf(str); /* output the string */<br />
return 0;<br />
}<br />
<br />
<br />
</source></div>Admin Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48