| | |
Just started
![]() |
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 |
ace_thread api array based binary bitmap borland c++ c/c++ calling char class classes code coding compile console conversion count delete delete-line deploy desktop developer directshow dll download dynamic dynamiccharacterarray email embedded encryption error file forms fstream function functions game givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream information input int integer java lib linkedlist linker loop looping loops map math mathhomeworkhelp matrix memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion reference reverse richedit rpg string strings temperature template test text text-file tree url variable vector video win32 windows winsock word wordfrequency wxwidgets






