« first day (364 days earlier)      last day (2064 days later) » 

12:56 AM
#include <iostream>

using namespace std;

typedef struct TT
{
TT *parent;
void *data;
void **control;
TT *left, *right;

void InitTT(TT **tree);

TT()
{
TT *mytree;
InitTT(&mytree);
}

TT* GetTree(TT *curtree)
{
return curtree;
}

} TT;

void InitTT(TT **tree)
{
TT *newtree = new TT();
newtree->data = (void*)0xff;
newtree->control = &newtree->data;
newtree->left = new TT();
newtree->right = new TT();

*tree = newtree;
}
why it's giving:

error LNK2019: unresolved external symbol "public: void __thiscall TT::InitTT(struct TT * *)" (?InitTT@TT@@QAEXPAPAU1@@Z) referenced in function "public: __thiscall TT::TT(void)" (??0TT@@QAE@XZ)
 
2 messages moved from Lounge<C++>
 
1:34 AM
Emotion is a complex psychophysiological experience of an individual's state of mind as interacting with biochemical (internal) and environmental (external) influences. In humans, emotion fundamentally involves "physiological arousal, expressive behaviors, and conscious experience." Emotion is associated with mood, temperament, personality, disposition, and motivation. Motivations direct and energize behavior, while emotions provide the affective component to motivation, positive or negative. No definitive taxonomy of emotions exists, though numerous taxonomies have been proposed. So...
 
1 message moved from Lounge<C++>
 
1:53 AM
Eto konecno posildaniye. @Hoxieboy
 
1 message moved from Lounge<C++>
 
 
6 hours later…
7:43 AM
wow, the best supercomputer to date (I think) can process 10.51 Petaflops a second
does want!
thats 7340032000000 gigabytes
 
3 messages moved from Lounge<C++>
 
@Hoxieboy You know what you motherfucking bastard
I was talking nicely
fuck you and your family
 
3 messages moved from Lounge<C++>
 
 
9 hours later…
5:05 PM
gist: 1864656, 2012-02-19 17:05:09Z
bool directory_exists( const string &directory )
{
#if _WIN32
    wstring directoryW( convert_to_utf16(directory) );
    struct _stat64 status;
    if( _wstat64(directoryW.c_str(), &status) == 0 )
#else // _WIN32
    struct stat status;
    if( stat(directory.c_str(), &status) == 0 )
#endif //_WIN32
    {
        debug(debug::type::platform) << "platform::directory_exists::(_w)stat(64) succeeded for " << directory << ".\n";
        if ( status.st_mode & S_IFDIR )
            return true;
    }
    debug(debug::type::platform) << "platform::directory_exists::" << directory << " is not a directory.\n";
    return false;
}
bool file_exists( const string &filename )
{
#if _WIN32
    wstring filenameW( convert_to_utf16(filename) );
    struct _stat64 status;
    if( _wstat64(filenameW.c_str(), &status) == 0 )
#else // _WIN32
    struct stat status;
    if( stat(filename.c_str(), &status) == 0 )
#endif //_WIN32
    {
        debug(debug::type::platform) << "platform::file_exists::(_w)stat(64) succeeded.\n";
        if ( status.st_mode & S_IFREG )
            return true;
    }
    debug(debug::type::platform) << "platform::file_exists::" << filename << " is not a file.\n";
    return false;
}
 
1 message moved from Lounge<C++>
 
 
4 hours later…
9:11 PM
void SortHeap(int *buffer, int length)
{
bool again = false;

for(int i = 0; i < length; i++)
{
if(buffer[i] > buffer[i + 1] && i != length - 1)
{
again = true;
int tmp = buffer[i + 1];
buffer[i + 1] = buffer[i];
buffer[i] = tmp;
};
};

length--;

if(again) SortHeap(buffer, length);
}
 
1 message moved from Lounge<C++>
 

« first day (364 days earlier)      last day (2064 days later) »