- Registriert
- 12.03.08
- Beiträge
- 62
hallo,
also ich habe vor etwas in cpp nachzuvollziehen. ich habe dafür alle nötigen programmteile in xcode kopiert und auf build and go gedrückt. soweit so gut. jetzt spuckt er allerdings zwei fehler aus. einmal:
throw out_of_range("nicht auf Lager");
error: "out_of_range" was not declared in this scope
und
throw invalid_argument("unbekannt");
error: "invalid_argument" was not declared in this scope
#include "Lager.h"
#include "Spielzeug.h"
#include "Elektro.h"
#include "Artikel.h"
#include <iostream>
#include <string>
using namespace std;
void Lager::read()
{
ist das einbinden von namespace so nicht korrekt?
also ich habe vor etwas in cpp nachzuvollziehen. ich habe dafür alle nötigen programmteile in xcode kopiert und auf build and go gedrückt. soweit so gut. jetzt spuckt er allerdings zwei fehler aus. einmal:
throw out_of_range("nicht auf Lager");
error: "out_of_range" was not declared in this scope
und
throw invalid_argument("unbekannt");
error: "invalid_argument" was not declared in this scope
#include "Lager.h"
#include "Spielzeug.h"
#include "Elektro.h"
#include "Artikel.h"
#include <iostream>
#include <string>
using namespace std;
void Lager::read()
{
ist das einbinden von namespace so nicht korrekt?