Search Results

Showing results 1 to 9 of 9
Search took 0.01 seconds.
Search: Posts Made By: Laiq Ahmed
Forum: C++ Aug 12th, 2009
Replies: 7
Views: 299
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
@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
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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: 464
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
_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,831
Posted By Laiq Ahmed
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,063
Posted By Laiq Ahmed
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,063
Posted By Laiq Ahmed
please help me understand the folowing code....

class A {
int a;
public:
A() : a ( 0 ) {}
int get() {
cout << "Hello WOrld " << endl;
return 0;
...
Showing results 1 to 9 of 9

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC