|
|
Up |
|
|
  |
Author: worlman385worlman385
Date: Apr 2, 2008 22:52
why when I use cout, I must put - using std::cout;
#include
using std::cout;
if i look at iostream, it seem cout is defined in iostream -
__PURE_APPDOMAIN_GLOBAL extern _CRTDATA2 ostream cout;
I also see
_STD_BEGIN
_STD_END
are those label in C++?
|
| |
|
| |
5 Comments |
|
  |
Author: sugankanya86sugankanya86
Date: Apr 2, 2008 22:51
Hi all,
there is a code snippet like this
this -> PClient = new IPCAMAClient (&tcpProfile, clientPriority);
if (!this -> PClient -> isValid())
{
// The object is invalid, the connection was not
established
delete this -> PClient;
this -> PClient = NULL;
}
else
{
// The Object is valid
this -> Valid = TRUE;
}
in the above case, whether the memory alloted by the new operator is
released perfectly or not?
since there is no delete operator in the else part,is this a memory
leak?
|
| |
|
| |
2 Comments |
|
  |
Author: neelagainneelagain
Date: Apr 2, 2008 22:28
Hi,
Perhaps this question needs to be in Visual Studio forum, but, I think
it must be applicable to general C++ programming as well.
I have an inline class. In case this is only visual studio
terminology, by that I mean I have a class which has ALL the functions
inline (no member variables) and I have not included that class in
project (it's 500 lines long and expected to grow to 600 - although I
don't think line numbers shouldn't matter that much). But, there are
classes which are using the object of this class.
To know what's the difference between when I am using this class and
when I am not, I measured obj file size with and without this class
usage (see below).
What I wanted to know is, at what point it becomes intolerable to have
inline classes? I suppose, it must depend on compiler as well but I
thought I should ask if there is a general guiding principal when I
should _stop_ using this approach.
Note: File 1 & 2 are the ones that are using object of this class
(different methods call in each file).
Debug
|
| Show full article (1.79Kb) |
|
3 Comments |
|
  |
Author: jewelry085jewelry085
Date: Apr 2, 2008 21:25
Breitling Professional Aerospace 18kt Yellow Gold Titanium Mens Watch
F75362-B5-BKLT
Breitling Professional Aerospace 18kt Yellow Gold Titanium Mens Watch
F75362-B5-BKLT Link : http://www.aaa-replica-watch.com/Breitling_F75362_B5_BKLT.html
Buy the cheapest Breitling Professional Aerospace 18kt Yellow Gold
Titanium Mens Watch F75362-B5-BKLT in toppest Replica . www.aaa-replica-watch.com
helps you to save money! Breitling-F75362-B5-BKLT , Breitling
Professional Aerospace 18kt Yellow Gold Titanium Mens Watch F75362-B5-
BKLT , Replia , Cheap , Fake , imitation , Breitling Watches
Breitling Professional Aerospace 18kt Yellow Gold Titanium Mens Watch
F75362-B5-BKLT Information :
|
| Show full article (4.76Kb) |
|
no comments
|
|
  |
|
|
  |
|
|
  |
|
|
  |
|
|
  |
|
|
  |
|
|
  |
|
|
|
|
|
|
|