DB
Country* temp = new Country[count + 1];
for (int i = 0; i < count; i++)
{
temp[i] = countries[i];
}
delete[] countries;
countries = temp;
что за логика ...Size: a a a
DB
Country* temp = new Country[count + 1];
for (int i = 0; i < count; i++)
{
temp[i] = countries[i];
}
delete[] countries;
countries = temp;
что за логика ...DB
D
AS
AF
AS
export "C" {
void my_c_api_func1();
void my_c_api_func2();
}
AS
DB
D
export "C" {
void my_c_api_func1();
void my_c_api_func2();
}
AS
AS
export "C" {
void* my_api_create_object();
void my_api_call_func1(void* thiz);
void my_api_call_func2(void* thiz);
void my_api_destroy_object(void*);
}
AS
AS
D
AS
AS
void my_api_call_func1(void* thiz) {
try {
...
} catch(...) {
}
}
AS
AS
D
void my_api_call_func1(void* thiz) {
try {
...
} catch(...) {
}
}
AS
void* my_api_create_object() {
try {
return new my_object();
} catch(...) {
return nullptr;
}
}