Forum: C++ Aug 12th, 2009 |
| Replies: 7 Views: 298 Hi FirstPerson,
I've tweaked your code to meet your needs, I think you are trying to acheive something like this.
class Tetris {
public:
bool DrawLine(unsigned int iColId) {
cout <<... |
Forum: C++ Aug 7th, 2009 |
| Replies: 7 Views: 376 @firstPerson the default Constructor & Destructor are not always trivial at the Compiler level, to users it might be...
Hi lotrsimp12345,
This usually irritates the programmer that why the... |
Forum: C++ Jul 28th, 2009 |
| Replies: 1 Views: 225 if you are using pthread then you can use the following API.
int pthread_attr_setschedparam(pthread_attr_t *tattr, const struct sched_param *param);
consult google for such questions :). it... |
Forum: C++ Jul 20th, 2009 |
| Replies: 11 Views: 439 I don't understand your objective behing calling derive funciton in base at all, I understand C++ is multi paradigm language, but I can't see any logical reasoning behind this, could you please... |
Forum: C++ Apr 6th, 2008 |
| Replies: 2 Views: 461 difference b/w const and #define (macro).
1. Type Checking:- macros are not type safe where as const are type safe. since the macros are replaced by definition at the time of preprocessing (which... |
Forum: C++ Mar 28th, 2008 |
| Replies: 6 Views: 617 _cdecl and _stdcall has some difference, I think you are calling the function from the library written using different calling convention than the one you are using. Its basically a name decoration... |
Forum: C++ Mar 1st, 2007 |
| Replies: 19 Views: 53,735 Check out this code
std::string str;
cin>>str;
transform(str.begin(), str.end(),str.begin(), tolower );
cout<< str; |
Forum: C++ Sep 22nd, 2006 |
| Replies: 5 Views: 1,062 heyz it its undefined what about the following code
class A {
int a;
public:
A() : a ( 0 ) {}
int get() const {
cout <<" in A()" << endl; |
Forum: C++ Sep 21st, 2006 |
| Replies: 5 Views: 1,062 please help me understand the folowing code....
class A {
int a;
public:
A() : a ( 0 ) {}
int get() {
cout << "Hello WOrld " << endl;
return 0;
... |