Witam jak w temacie mam problem z deklarowaniem zmiennej w stringu.
#include <iostream>
#include <string.h>
struct filmy
{
string tytul;
int rok;
int czas;
}
Błąd :
/home/kicex/Projekty/Struktura_1/main.cpp|5|error: ‘string’ does not name a type|
/home/kicex/Projekty/Struktura_1/main.cpp||In function ‘int main()’:|
/home/kicex/Projekty/Struktura_1/main.cpp|18|error: ‘struct filmy’ has no member named ‘tytul’|
/home/kicex/Projekty/Struktura_1/main.cpp|21|error: ‘struct filmy’ has no member named ‘tytul’|
/home/kicex/Projekty/Struktura_1/main.cpp|24|error: ‘struct filmy’ has no member named ‘tytul’|
/home/kicex/Projekty/Struktura_1/main.cpp|27|error: ‘struct filmy’ has no member named ‘tytul’|
/home/kicex/Projekty/Struktura_1/main.cpp|30|error: ‘struct filmy’ has no member named ‘tytul’|
/home/kicex/Projekty/Struktura_1/main.cpp|36|error: ‘struct filmy’ has no member named ‘tytul’|
== Build finished: 7 errors, 0 warnings ===
Wersja CodeBlocks 10.5 (Ubuntu).