Thanks for your replies.
I'm really desillusionated a bit. I thought templates didn't cause runtime overhead. Also i thought classes where at no cost.
I knew only that virtual functions do cause...
Type: Posts; User: teneniel
Thanks for your replies.
I'm really desillusionated a bit. I thought templates didn't cause runtime overhead. Also i thought classes where at no cost.
I knew only that virtual functions do cause...
apstring's constructor, destructor and the operator function
class istream & __cdecl operator>>(class istream &,class apstring &) have no function bodys. That means, the compiler knows that the...
I like to use STL. It's not perfect, but it makes life easier.
Several people said that using cout instead of printf and using several container templates instead of pseudo-generic void* C-style...
You have that length in characters.
If you want the length in bytes, multiply that length by the length of one caracter:
size_in_bytes = number_of_characters * sizeof(ifstream::char_type);
like Magos allready mentioned, an extern declaration like
extern CCamera g_Camera;
doesn't create the CCamera object, it just brings an elsewhere declared object in scope again. Those statements...
Sorry, i don't really understand what you are refering to with 'binary numbers'...
tellg() seems to return the length of the file in char sizes (for char actually length in bytes, for wchar_t the...
Hi!
i would do the following:
#include <ctime>
using namespace std;
char cur_date[9];
char cur_time[9];
_strdate(cur_date);
_strtime(cur_time);
"boundaries" is an array.
An array access like boundaries[i] is eqal to *(boundary + i), so boundaries[0] doesn't need to be dereferenced another time.
operator[] has already done it for you.
...
Try: ( additional std:: before setiosflags() )
if ( valid ){
numVal = atof(input);
std::cout << std::setiosflags(std::ios::fixed)<< std::setprecision(2)
<< "\nnumVal = " << numVal << "\n\n";...
Are you sure that CreateThread() succeeded ?
Check if the HANDLE you get as return value is not NULL.
If it's NULL, call immediatelly after CreateThread() GetLastError(). Use Tools-> Error lookup...
As you used CreateThread(/*...*/) you had to pass a entry function (your third parameter, i suppose).
Just set a breakpoint within that thread entry function and VC will break anytime the function...
Thank you for your replies. I have allready found out what i needed to know. If someone's interested, here's what I meant:
unsigned long foo = 1234567;
myfilestream myfile;
myfile << foo << "...
i want to use streams from std lib to output int, long, __int64, etc...
but i dont want to have them formatted, i want unformatted output. that's no problem useing write(), but if i use operator<<,...