Contact: aviboots(AT)netvision.net.il
39,990 questions
51,935 answers
573 users
#include <iostream> using std::cout; using std::endl; int main() { float *f; f = new float; if (!f) { cout << "Allocation error" << endl; return 1; } *f = 3.14; cout << *f << endl; delete f; return 0; } /* run: 3.14 */