Fórumok
Codeblocks.
read.h
#ifndef READ_H_INCLUDED
#define READ_H_INCLUDED
#include <vector>
void ReadFromFile(vector<int>&);
void ReadFromKeyboard(vector<int>&);
#endif
compier beszolása:
/work/tanul/beadando4/read.h|10|error: variable or field ‘ReadFromFile’ declared void|
/work/tanul/beadando4/read.h|10|error: ‘vector’ was not declared in this scope|
/work/tanul/beadando4/read.h|10|error: expected primary-expression before ‘int’|
/work/tanul/beadando4/read.h|11|error: variable or field ‘ReadFromKeyboard’ declared void|
/work/tanul/beadando4/read.h|11|error: ‘vector’ was not declared in this scope|
/work/tanul/beadando4/read.h|11|error: expected primary-expression before ‘int’|
||=== Build finished: 6 errors, 0 warnings ===|
mit rontottam el?
Hozzászólások
hianyoznak karatkerek a fenti peldadban.
Igen, közben javitva :)
>‘vector’ was not declared in this scope
A vector az std namespaceben van.
Köszönöm :)