Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~2K People Reached
Favorite Tags
Member Avatar for el33t

I'm beginning android development and was going through some guides in which I tumbled across this piece of code : myEditText.setOnKeyListener (new OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { if (event.getAction() == KeyEvent.ACTION_DOWN) if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { todoItems.add(0, myEditText.getText().toString()); aa.notifyDataSetChanged(); myEditText.setText(“”); return true; } return …

Member Avatar for el33t
0
79
Member Avatar for el33t

Hi, I am facing some problem dealing with the qsort funtion. Basically, the below program takes in a bunch of strings from the text file "word.txt" and then implements the qsort function for sorting the list alphabatically and then displaying the sorted list. However, after the sorting is done, all …

Member Avatar for el33t
0
115
Member Avatar for el33t

Hi, I created a C program which basically calculates bunch of variable values.... Although the desired output for the final version program is just a few lines, however, for debugging purpose, I've printed the variable values everytime a change is being made in-code. As a result, the output consist of …

Member Avatar for el33t
0
228
Member Avatar for el33t

Hi, Is this a valid while loop? : while((grid[tr][tc]=='0'||grid[tr][tc]==s[i]) && tr<row && count<strlen(s)) { ++count; ++tr; } Although the full program compiles fine, but *sometimes* my program crashes during runtime giving me a "Access violation(Segmentation Fault)" error and the debugger points to this loop statement... By the way, I'm using …

Member Avatar for Gribouillis
0
172
Member Avatar for el33t

Hi, Please consider the below code. [CODE=php]<html> <body> <?php $time1 = localtime(); echo $time1[0]; echo("<br /><br />"); /* HERE SOME CODES RELATED TO CERTAIN FUNCTIONS LIKE DISPLAYING OF SOME IMAGE ETC. IS EXECUTED. APPROXIMATELY IT TAKES 10 SECONDS FOR THE COMPLETE EXECUTION OF THESE FUNCTIONS. SINCE IT IS IRRELEVANT TO …

Member Avatar for el33t
0
118
Member Avatar for el33t

Hi, I'm trying to develop a PHP script which will calculate the internet connection speed of the users. In order to achieve this, the script will perform 5 basic tasks : 1) Fetch the time and store the value in a variable (say: $start_time) 2) Transfer a chunk of data …

Member Avatar for richieking
0
1K
Member Avatar for el33t

Hi, I have a doubt regarding inheritance of base class constructor by inherited class. I was recently going through some C++ online tutorial when I came across this piece of code: [CODE=c]#include <iostream> class Foo { public: Foo() { std::cout << "Foo's constructor" << std::endl; } }; class Bar : …

Member Avatar for caut_baia
0
189
Member Avatar for el33t

Hi, I'm am very new to wxwidget. After reading certain guides, I finally managed to set it up. But I'm still facing problems while executing my own 'independent program'. I'm using wxwidgets 2.8.10 and Visual studios 2008 express. This is what I did: [b]I used the below tutorial for building[/b] …

0
59
Member Avatar for el33t

Please consider the below code. 1 #include <QApplication> 2 #include <QLabel> 3 int main(int argc, char *argv[]) 4 { 5 QApplication app(argc, argv); 6 QLabel *label = new QLabel("Hello Qt!"); 7 label->show(); 8 return app.exec(); 9 } Now, I'm abit doubtful about line 5. According to the book(from which I …

Member Avatar for el33t
0
121
Member Avatar for el33t

In visual c++, what is the difference between these three: WindowClass.style = CS_HREDRAW | CS_VREDRAW; //Found in winmain() UpdateWindow(hWnd); // Also found in winmain() WM_PAINT //It is a switch case in funtion winproc() I unerstand that all three of them does something like to draw/redraw the client window/window. But can …

Member Avatar for Frederick2
0
184