| View previous topic :: View next topic |
| Author |
Message |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Mon Jul 07, 2008 1:17 am Post subject: Quick Question [Updated V.2 Please Check] |
|
|
1. What is the difference between Microsoft Visual Studios C++ and "regular" C++ ?
Answered
2. | Code: |
The operator ## concatenates (Connects/Links) two arguments leaving no blank spaces between them:
#define glue(a,b) a ## b
glue(c,out) << "test";
This would also be translated into:
cout << "test";
|
While I understand what this does, I dont really see the point in it. Does this have any real function other than editing the same mistake made throughout the code with this little adjustment rather than correcting each typo individually/manually?
3.
| Code: |
To check if a file stream was successful opening a file, you can do it by calling to member is_open() with no arguments. This member function returns a bool value of true in the case that indeed the stream object is associated with an open file, or false otherwise:
if (myfile.is_open()) { /* ok, proceed with output */ } |
Do you actually put { /* ok, proceed with output */ } ??
4. (#pragma) - What is the Preprocesser directive #pragma used for?
_________________
Last edited by manc on Wed Jul 09, 2008 1:07 am; edited 3 times in total |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Mon Jul 07, 2008 1:21 am Post subject: |
|
|
Microsoft Visual C++ 2008 is just an IDE (Integrated Development Environment). It also allows to you to make GUIs through Forms, similar to the way Delphi and Visual Basic (hence the Visual part of the name) instead of using Win32 APIs to create a GUI.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Jul 07, 2008 1:24 am Post subject: |
|
|
MSVC++ compiler can compile straight regular C++ code. It can also compile C++.net or Visual C++ which is a shitty language.
_________________
|
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Mon Jul 07, 2008 1:41 am Post subject: |
|
|
Well, I guess it cant hurt to have on the side just in case. (I just downloaded it)
_________________
|
|
| Back to top |
|
 |
|