RP
Size: a a a
RP
EG
typedef struct {
char* filename;
} Options;
Options DEFAULT = { .filename = "foobar" };
EG
EG
number = 2;
RP
EG
RP
EG
float _Complex a;
EG
RP
AZ
RP
$ cat test.cpp
float _Complex a;
typedef struct {
char* filename;
} Options;
Options DEFAULT = { .filename = "foobar" };
int main() {
}
$ g++ test.cpp
test.cpp:7:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
Options DEFAULT = { .filename = "foobar" };
^
S
EG
$ cat test.cpp
float _Complex a;
typedef struct {
char* filename;
} Options;
Options DEFAULT = { .filename = "foobar" };
int main() {
}
$ g++ test.cpp
test.cpp:7:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
Options DEFAULT = { .filename = "foobar" };
^
AZ
S
for x in range(10)
, то можешь использовать текущее значение xEG
int new;
S
SP
AZ