64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for usman2k4u

Implement the following improvement to the quick sort and find out the percentage of key comparisons that can be saved in each case. Using randomly generated 1000 integers as input for sorting. Repeat the experiment 1000 times for each case to get the average percentage reduction in key comparisons. Case …

Member Avatar for Narue
0
5K
Member Avatar for swappy

if db.open = true then db.close End if I want some code like this where it will check in the form load and if the connection is open , and if it is open it will close it..

Member Avatar for swappy
0
405
Member Avatar for tehbrozor

hi, Im running debian/ubuntu linux and am trying to get a script/module that runs each time python is called from terminal. I am trying to write scripts that use Scipy,numPy,pyLab, etc and am trying to have all those packages import automatically each time python starts. I am not new to …

Member Avatar for tehbrozor
0
133
Member Avatar for dilipkk

Hi, I am downloading url using urllib2, the problem I am facing is some times server goes down and then read will take indefinite time. I dont want that, I want to raise a exception after 20 secs in this case. There is solution using signal.alarm but it works only …

Member Avatar for dilipkk
0
4K
Member Avatar for tomtetlaw

can anyone suggest any tutorials for the vc++ resource editor? or can anyone tell me how to use it? i know how to design the forms but i dont know how to use it in my code any help would be appreciated :)

Member Avatar for tomtetlaw
0
201
Member Avatar for LindseyV

Hello there. I have successfully read my emails from outlook into access. The problem is that I am trying to get the sent date field but I can not figure out the command for it. Below you will find the commands I used to find the subject, body and sender. …

Member Avatar for jonc
0
215
Member Avatar for achiman

please can anyone give me more information on how to solve this problem i have. im writing a php code to create a form for a ms access database, i want customers to be able to select or tick various things they want in our services either from a dropdown …

Member Avatar for achiman
0
77
Member Avatar for daviddoria

I found this while googling for something [url]http://msdn.microsoft.com/en-us/library/ms177203(VS.80).aspx[/url] I tried it (with g++) and it seems to be a syntax error - is this like something specific to Visual Studio or something? Dave

Member Avatar for Narue
0
92
Member Avatar for ARYT

Hi everybody Thanks again for your helps in my last thread. Now, I have some more problems. :( 50 Errors for this program. Certainly, a basic problem within the structure of class "Block". This assignment is all about "Class and objects". We can use functions, but no arrays. [code=cplusplus] #include …

Member Avatar for monkey_king
0
221
Member Avatar for gluttonous

[code=csharp] public struct MY_TYPE1 { public int A; public int B; } public class MY_TYPE2 { public int X; public int Y; public MY_TYPE1[] array2 = new MY_TYPE1[80]; } MY_TYPE2[] array1= new MY_TYPE2[800]; public void MtMethod() { [B] array1[0].array2[0].A=0;[/B] } [/code] When i try to use this code ,a null …

Member Avatar for gluttonous
0
104
Member Avatar for Alibeg

i have problem passing double pointer to my funciton first i declare: [icode]int m, n;[/icode] i read m and n from user just fine (i've checked that) then i declere: [icode]int farm[m][n];[/icode] and i have a function... [icode]void harvest(int **farm,...);[/icode] and when i call it with: [icode]harvest (farm,...);[/icode] it says …

Member Avatar for Narue
0
226
Member Avatar for serkan sendur

guys i have come to conclusion that basically pocket internet explorer for windows mobile 5.0 and pocket pc 2003 basically dont support javascript. It is better to do everything based on simplest html tags.

0
64
Member Avatar for serkan sendur
0
61
Member Avatar for PhiberOptik

Hi Guys! I am trying to get a scroll bar to go to the lowest position possible. I am using a chat program and it bothers me that I have to scroll down to see new messages! I googled around and found lots of answers for flash, and other languages …

Member Avatar for PhiberOptik
0
138
Member Avatar for hwa

Here is my code: [CODE] override protected void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); } private void InitializeComponent() { this.cmdUpload.Click += new System.EventHandler(this.cmdUpload_Click); this.Load += new System.EventHandler(this.Page_Load); } private string strConn; OdbcConnection cnn; private void cmdUpload_Click(object sender, System.EventArgs e) { OpenDatabase(); if ((File1.PostedFile != null) && (File1.PostedFile.ContentLength > 0)) { // …

Member Avatar for hwa
0
159
Member Avatar for GDICommander

Hi, everyone! At work, I'm having problems to run a XPath using the selectNodeList() method from Xalan. The XPath I want to execute is: //pam:message//prism:coverDate The error message I have is: The prefix 'pam' is not declared. expression = '//pam:message//prism:startingPage' Remaining tokens are: ('/' '/'). I have searched on the …

Member Avatar for GDICommander
0
125
Member Avatar for cljlxwater

OleDbConnection thisConnection = new OleDbConnection( @"Provider = Microsoft.Jet.OLEDB.4.0;Data Source=e:\DataMoney.mdb"); OleDbDataAdapter thisAdapter = new OleDbDataAdapter( "SELECT * FROM SchoolMoney", thisConnection); DataSet thisDataSet = new DataSet(); thisAdapter.Fill(thisDataSet, "SchoolMoney"); OleDbCommandBuilder thisBuilder = new OleDbCommandBuilder(thisAdapter); thisBuilder.QuotePrefix = "["; thisBuilder.QuoteSuffix = "]"; //set up keys object for defining primary key DataColumn[] keys = new DataColumn[1]; …

Member Avatar for cljlxwater
0
74
Member Avatar for kevin wood

i have built a page which loads content into a div tag from a php page using javascript. the problem i am having is that the title for eachg page is not inside the div so i keep being left with the same title on each page. i have tried …

Member Avatar for kevin wood
0
156
Member Avatar for MJ Pieterse

Hi there, i'm new to this community, but need URGENT help with two questions. i'm doing a subject on computer science, and regretfully my book is to know help in assisting me to answer the following two questions...if any one can help, it would be greatly appreciated QUESTION 1 write …

Member Avatar for MJ Pieterse
0
153
Member Avatar for asifjavaid

Hi, I have a file of approximately 4.19GB. I want to get the totall size of file using code in VC++, Here is my code [code] FILE *fptrSampleVideo = fopen(filename,"rb+"); if(fptrSampleVideo) { fseek(fptrSampleVideo,0,SEEK_END); uncompressedVideoSize = ftell(fptrSampleVideo); } [/code] If the file is of small size, ftell() return position correctly and …

Member Avatar for Ancient Dragon
0
328
Member Avatar for Suhani123

Please can anyone tell me how to calculate time complexity of following algorithm in terms of big theta l=0 for i=1 to n do for j=1 to (n*n) do for k=1 to (n*n*n) do l=l+1 thanks in advance

Member Avatar for kaleesh.warrior
0
91
Member Avatar for bharatshivram

hi, i want the name of the image selected by a user when uploading an image to be changed to his username. wrote this code but the image stored gets corrupt every time.. [code] protected void Button1_Click(object sender, EventArgs e) { String imagefolder="images"; String path; String savepath; if (FileUpload1.HasFile) { …

Member Avatar for P.K.Chaudhary
0
269
Member Avatar for lehe

Hi, I am using copy_n from GNU C++ Library under Ubuntu 8.10. My code is like this: [code] #include <ext/algorithm> using namespace std; void myfun(char * flags ) { char * flags_new = new char[3]; copy_n(flags, 3, flags_new);// both copy_n and copy would give not in this scope error. delete …

Member Avatar for John A
0
237
Member Avatar for emiller7

This is not a complete program, I have comments to omit the incomplete portions. After "Player One" enters a row (see lines 54-5), the program ends. It outputs the "Enter a column" and the board and ends. I don't see why. Any help would be greatly appreciated! (Output after runtime …

Member Avatar for emiller7
0
83
Member Avatar for jackiejoe

Hi, learning swing at the moment and was following a tutorial off the sun website, made mine with eclipse instead of netbeans. but all I get when I try to run it is the following in the Console window: gap= 4 gap= 0 Not sure what is going on here. …

Member Avatar for BestJewSinceJC
0
297
Member Avatar for bobrien314

I have this assignment to write my own malloc program and I am having some trouble. I am using a doubly linked list to manage free space and used space, and using next fit to allocate the memory. the problem that i am writing about is when i return the …

Member Avatar for nucleon
0
107
Member Avatar for BestJewSinceJC

I'm not sure what forum this fits into, if any, but the program itself is going to be written in Java (not that it matters much). My question is, what is the easiest software to use that I can create a drawing of a GUI with? The GUI I want …

Member Avatar for BestJewSinceJC
0
87
Member Avatar for JAGgededgeOB172

Hi all, I'm just asking for help for my linked list sort function, I'm not including my entire program, as I'm sure my problem lies in my sort. I need to sort the linked list by rearranging the pointers, I was fairly sure I got the function correct. When I …

Member Avatar for JAGgededgeOB172
0
104
Member Avatar for serkan sendur

i want to add a control to a windows form using a method in some class file, then i want to access that control to register to its events. it must be done with one line of code, i know it from asp.net but i dont know how to do …

Member Avatar for serkan sendur
0
112
Member Avatar for konczuras

Hello! I'm trying to create some files in the folder where my exe is located. This works just fine in VS 2008 C# express, but when I publish the file, (e.g.: D:\Program), it refers to quite an other place (somewhere in my documents and settings' applications folder) I've tried several …

Member Avatar for konczuras
0
175
Member Avatar for Gribouillis

Consider the following script [code=python] #!/usr/bin/env python # foo.py import sys print sys.argv [/code] When I run this in a terminal with arguments, here is the output [code] $ ./foo.py -h hello -m "this is a string" ['./foo.py', '-h', 'hello', '-m', 'this is a string'] [/code] My question is: is …

Member Avatar for Gribouillis
0
168
Member Avatar for fx7202

greetings everyone, i seem to be having an issue with a function that has a reference n a value to do a loop. the nature of the prog, is to roll a dice (n) times n then count the number of time srand rolls an even num. for the most …

Member Avatar for fx7202
0
119
Member Avatar for emiller7

Compiler errors: (In main) Line 9:cannot convert char (*)[3] to char* for argument 1 to void showboard(char*, int, int) (in showBoard) Lines 16, 17, 21, 22, 26, 27:invalid types char[int] for array subscript I don't understand these errors. I am trying to make a tic tac toe game, I have …

Member Avatar for emiller7
0
3K
Member Avatar for bharatshivram

hi i am using asp.net (VS 2005), the password recovery control gives me the foll error.. The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. b4sm1464356tic.36 i have a gmail account, the details of which …

Member Avatar for bharatshivram
0
115
Member Avatar for sid78669

For the last 3 days I have been trying to compile m assingment on visual studio 2008. Its giving me error: [QUOTE]Error 2 error C2143: syntax error : missing ';' before 'using' screen.cpp 27 Assignment_2[/QUOTE] This is the same error its giving me in my main: [QUOTE]Error 1 error C2143: …

Member Avatar for sid78669
0
228
Member Avatar for abu taher

I made a datareport simple. just connect. but I want to make it with condition. I have 2 dtpicker for date. I want 1 day report or weekly or monthly report by dtpicker. example I want 03/11/08 report or 01/11/08 to 03/11/08 report. But I dont know how make it. …

Member Avatar for abu taher
0
812
Member Avatar for karenmaye

Does anyone here have a wxPython code that converts a folder of images to a .wmv file just by clicking a button? What I did in my program was I load an Image-to-Video Converter Software by clicking a button but I feel that it would be better if I can …

Member Avatar for sneekula
0
2K
Member Avatar for serkan sendur

Having a big project and having to compile it in order to run it each time, takes long time. I want to run it without build stage if possible(provided that i didnt make any change to source codes). Any ideas? Thanks.

Member Avatar for dickersonka
0
146
Member Avatar for get2tk

hi,pls wat does this symbol mean(%)?i know it means remainder,but can not seem to understand in what context . for example if you say hours = hours%24; minutes = mins%60;.................

Member Avatar for masijade
0
80
Member Avatar for SSagar

Hi, How to get the value from a hashtable irrespective of its case... plz reply ASAP. Thanks in advance, Shilpa

Member Avatar for masijade
0
99
Member Avatar for PCli

I tried a code like this [CODE] #include <stdio.h> int main() { enum a { b, c, d, e,}f; printf("The stack top is near %p\n", &(f = e) ); return f; }[/CODE] and got message : error: lvalue required as unary ‘&’ operand I use gcc4.3.2. and I had tried …

Member Avatar for PCli
0
110
Member Avatar for tanu.rajgor
Member Avatar for alc6379
0
270
Member Avatar for mastermosley
Member Avatar for rman10

Hello! I am a newbie to scripting and I'm trying to start an application via a bash script after checking to make sure that two condititions do (or do not) exist first. I've attempted to write down what I'd like to do and was hoping someone could point me in …

Member Avatar for eggi
0
168
Member Avatar for arvin2006

what's wrong with the code, it doesn's display the data based on the SQL query: Private Sub cmdSearch_Click() On Error GoTo Notfound squery = "": squery = "Select * from tblStation where Station like " & txtStation.Text & "" Call ExecuteCommand With Me .txtStation = rs!Station .cboCluster = rs!Cluster .txtArea …

Member Avatar for arvin2006
0
146
Member Avatar for guest11

hi all, I have one problem with resizing forms. I am developing our application in vb and i gave code for resizing forms in resize event of form. First i save the sizes of all controls in forms in form load event and then in resize event i resizes all …

Member Avatar for guest11
0
161
Member Avatar for arvin2006

Where should I get the declaration ADODB.Stream Object? as far as i know, ADODB library has only 4 objects: Command, Connection, Recordset & Parameter. I need this object for the Image DB. thanks

Member Avatar for arvin2006
0
1K
Member Avatar for chris5126

Hi I have a command that produces the following: [code] /usr/ucb/ps -auxxx|awk '{print $3,$4,$2,$1,$11}'|grep -v 0.0 %CPU %MEM PID USER COMMAND 0.2 5.217405286920 1910 noaccess 0.1 0.1 180 root 0:43 0.1 0.1 686 root 0:41 0.1 0.1 26198 chris /usr/lib/ssh/sshd 0.1 0.1 26767 root /usr/ucb/ps 0.1 0.1 26215 root bash …

Member Avatar for Fest3er
0
2K
Member Avatar for khr2003

hi I have designed a php script an was wondering about a way that I do not allow the customer who buys to install it on more than one domain. I am concerned about the logic of it more than the scripting, but if there is a script available to …

Member Avatar for almostbob
0
169
Member Avatar for nschessnerd

how do i find methods in a .exe so i can create a dll injection that uses those methods?

Member Avatar for nschessnerd
0
81

The End.