/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/php/sync/example.cxx
19 строк
466 B
Olly Betts
Fix PHP sync example
19 апр 2021, 02:26
19 апр 2021, 02:26
09d0684
Код
Авторство
О чём код?
#include "example.h" #include <iostream> int x = 42; std::string s = "Test"; void Sync::printer() { std::cout << "The value of global s is " << ::s << '\n'; std::cout << "The value of global x is " << ::x << '\n'; std::cout << "The value of class s is " << this->s << '\n'; std::cout << "The value of class x is " << this->x << '\n'; } void Sync::all_change() { ::s = "global change"; ++::x; this->s = "local change"; ++this->x; }