| | |
Just started
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
The answer to the first question is easy
For the second question, there is no portable way to do that. Some compilers pre-define macros that indicate the compiler and compiler's version, while other compilers don't. So the only sure-file way to do it is to declare the macros yourself for each compiler you want to support.
C++ Syntax (Toggle Plain Text)
#include <iostream> #include <iomanip> using namespace std; int main() { cout << right << setw(20) << "Hello\n"; }
For the second question, there is no portable way to do that. Some compilers pre-define macros that indicate the compiler and compiler's version, while other compilers don't. So the only sure-file way to do it is to declare the macros yourself for each compiler you want to support.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- server service is not started (Networking Hardware Configuration)
- Help, im frozen and cant get started! (Windows NT / 2000 / XP)
- Started a new forum... (Growing an Online Community)
- want to create a reminder program, need help getting started (Computer Science)
- Re-started Windows XP need to get drivers (Windows NT / 2000 / XP)
- Started with Frontpage now want Dreamweaver (Site Layout and Usability)
- how to get started in C++ (C++)
- Help - This started out as 213.159.117.132/redir.php NOW??? (Viruses, Spyware and other Nasties)
Other Threads in the C++ Forum
- Previous Thread: CAN bus, opencv and pcmcia
- Next Thread: Substitute for system("cls")`
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






