Cześć, mam pewien problem otóż nie umiem sobie poradzić prawdopodobnie z głupim błędem albo z moimi brakami i proszę was o pomoc co robię źle:
#include <iostream>
using namespace std;
struct Foo
{
int test_a;
float test_b;
char test_c[20];
};
int main()
{
const char Foo y = {2, 0,12, "Ala ma kota."};
// cout << Foo X << endl;
}
Błąd:
struct_test.cpp: In function ‘int main()’:
struct_test.cpp16: error: expected initializer before ‘y’
Kompilowane na Ubuntu 12.04.