Da malo razbudim ovaj forum, a i da ne otvaram novu temu pošto je već vezano.
Imam problem sa kodom:
Kôd:
#include <iostream>
#include <new>
int main()
{
int* iptr = new std::nothrow int;
*iptr = 4;
std::cout << "*iptr = " << *iptr << std::endl;
std::cout << "Press enter to exit...";
std::cin.get();
return 0;
}
Koristim MVS express 2010 i na ovaj kod dobijam output:
Citat:
...main.cpp(6): error C2061: syntax error : identifier 'nothrow'
|
Čitao sam text sa ove stranice i lepo piše da treba samo uključiti "new" header gde je "nothrow" definisan. Gde sam pogrešio?
EDIT: Rešio, nisam stavio u zagrade.