Hi guys,
I have a code in C++ that was written way back in 1995.Back then,I guess even in C++,#include<iostream.h> was used unlike nowadays, #include<iostream> using namespace std;...im rite now trying to compile that code with a g++ compiler.It gives the error at lots of places:'cout not declared in this scope'..I have tried using namespace std...but if I use that then errors sprout up in files that belong to C++ standard library...so I haven't been able to use using namespace std;....i have even tried using std::cout<<...<<std::endl...but even that is not working.....any ideas to get past this problem are appreciated.
Thanks....
C11 vendredi 17 avril 2020. I can not cout equal range So I have this code in which I print lower, upper, and equal range but IDK how to print equal range if someone knows how I will like a coded solution to be submitted thanks. Compilation problem - variable was not declared in this scope; staticpointercast not declared in this scope; dynamic memory: was not declared in this scope; Getting the 'this' scope of the caller 'gundo' was not declared in this scope; newby - error: 'rint' was not declared in this scope; iomanip: setwidth was not declared in this scope. 'endl' was not declared in this scope. C / C Forums on Bytes. Home topics c / c questions 'endl' was not declared in this scope + Ask a Question. Post your question and get tips & solutions from a community of 449,750 IT Pros & Developers.
post one of the files that has the errors, especially the top of the *.cpp file where you have all the includes etc. The problem is most likely missing something like this:
or this
or like this:
|