199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mzd12111

hi Guys this is my problem : a) what should i have to show to Proove that a sort algorithm work well b)what is the order of this algorithm : [code=c] void mySort(int[]A , int n){ int t,i; for (i=1 ; i<=n; i++){ while(A[i] != i){ t = A[i]; A[i] …

Member Avatar for mzd12111
0
125
Member Avatar for mr.sweetchuck

I'm writing a Java ME app that will access servlets on a tomcat server, (version 5.5) and I'm having a problem. In my client I'm trying to use a HTTP connection to the servlet, like so: [code] if (command == select && currentForm == login) { HttpConnection connection = null; …

0
86
Member Avatar for amithasija

can anybody tell me how to define multi demensional array in ruby on rails. thanx buddies for previous replies and for this in advance.

Member Avatar for pty
0
167
Member Avatar for ankit_the_hawk

I am having a problem in sorting by name. for eg: if given two names Sameer and Sean, I want to print Sameer and not Sean. It needs to check character by character. I have to extend this to a greater no. of names but I need to get the …

Member Avatar for lakshmi.1987
0
264
Member Avatar for rajeshreddy

program to create two threads ,by using them sort two files using merge sort by using one more thread merge them

Member Avatar for Salem
0
69
Member Avatar for winbatch

I'm new to perl (and actually not even really trying to develop this skill - I inherited some code and am trying to enhance it). Basically, I want to get the text between parts of a text string. How do I get the parsed variable to contain "WHATEVER IT IS"? …

Member Avatar for winbatch
0
148
Member Avatar for Suplexx

I'm somewhat new to Python and want to clear a few things up regarding running scripts. Alright, so here's what I want to do: I want to run a script inside of a script, and then have the first "parent" script continue running normally. I have tried using both execfile() …

Member Avatar for vegaseat
0
132
Member Avatar for Smooth_411_2000

How Do I create a login file and use VB 6.0 to open it. I need to code it differnetly so that the cd when burned login file won't be recognized. Can someone help me out thanks

Member Avatar for Comatose
0
85
Member Avatar for Logi.

Hi, Im having trouble with the piece of code below, i want to have the image change every time you press the button. This code is from a larger project but this is the bit that i cant get to work. Any ideas? [code=python]import Tkinter import random import Image, ImageTk …

Member Avatar for vegaseat
0
1K
Member Avatar for adaykin

Hey, I am trying to get a sound to play when the user moves the mouse over on of my links. I don't know javascript, I just copied this code from a book, so it's probably something simple. Here is my code: [CODE]<script language="JavaScript" type="text/javascript"> function playSound() { src="misc020.wav"; } …

Member Avatar for hbk619
0
461
Member Avatar for nottoshabi

It works. I'm having a problem trying to display the greater number to the output. For example what ever number is greater the first or the second it still displays the first number. Couse that is what is coded in the cout. But I dont know what to put in …

Member Avatar for nottoshabi
0
116
Member Avatar for Marks256

How would one go about generating a set of tones (frequencys) on the sound card? What i mean by this is, how would a person generate tones at the same time? (I.E. 62hz, 100hz, 432hz, and 1000hz at the SAME time?) Thanks.

Member Avatar for Marks256
0
85
Member Avatar for Raven11

Hi, I have been looking all over google for a freaking tutorial on code caving. The problem however, 1,000 results shown are crap (I'm sure everyone's shared the same experience). Anyone know of a published tutorial on the concept? Thanks.

Member Avatar for jbennet
0
178
Member Avatar for n.aggel

i have the following problem:: i have ofstream object (i call it fout) belonging to a class{it a field of that class}, where should i initialize it... i write the following test-code but it gives me strange compile errors{in visual studio05} FoutTest.h [code=c] #pragma once #include <fstream> #include <string> class …

Member Avatar for n.aggel
0
191
Member Avatar for livingsword

i got this prime no. code for analysis. and i hav not been able to understand it completely. [code] #include<iostream.h> #include<conio.h> void main() { int x, y, c = 0; clrscr(); cout<<"\nPrime Numbers upto 100 :\n "; for( x = 2; x < 100; x++ ) { if( x % …

Member Avatar for livingsword
0
413
Member Avatar for covertx

Hi all, you may have read my post regarding bars and values and stuff, well I've got that bit figured out now but as my programme is expanding, so is the number of records being parsed into it! I'm working out a percentage of 2 groups of people: Number of …

Member Avatar for covertx
0
83
Member Avatar for s.j.macleod

{ srand((unsigned)time(0)); int random_integer; int lowest=-10, highest=10; int range=(highest-lowest)+1; for(int index=0; index<8; index++){ random_integer = lowest+int(range*rand()/(RAND_MAX + 1.0)); cout << random_integer << endl; } Hi there, I'm just getting back into c++ after a 2 year break. I'm just wondering how I go about using the numbers generated here later …

Member Avatar for WaltP
0
89
Member Avatar for shivam_ng

I have the following file as the input APPLE 0 118 1 110 1 125 1 135 2 110 3 107 3 115 3 126 ORANGE 0 112 1 119 2 109 2 119 3 112 4 109 4 128 MANGO 0 136 1 143 2 143 3 143 4 …

Member Avatar for Ancient Dragon
0
120
Member Avatar for arfmal

Can somebody show me how to search and count for the string. If i have a set of data,i.e. "0012", "0034", "0055"' "0099" "0013", "0032", "0012","0099" let's say i chose the 1st string(at the 1st line),"0012", and based on this string, i would like to [B][U]search and count[/U][/B] that string …

Member Avatar for WaltP
0
116
Member Avatar for musicmancanora4

Hi just wondering how i can convert ascii to binary then into hex then print it to the screen. The user will input 5 chars then do the conversion and print

Member Avatar for Lerner
0
139
Member Avatar for VanPetrol

Hi, After letting it go a few months ago, I'm back to learning PHP. At the moment I use it on WindowsXP with Apache and MySql. I dont want to reinstall my computer but want to go the whole LAMP way by using Linux. So got myself a cheapish laptop …

Member Avatar for DimaYasny
0
105
Member Avatar for erode

hi, i am very new to pointer concepts.how to declare the pointer and how to use it

Member Avatar for erode
0
94
Member Avatar for Valadair

Title should read "search a string for ',' " Afternoon folks. I visit this site a bit, especially when searching google for help on a particular problem. This is my first post, so let me get right to the point. I won't go into the gory details of the program, …

Member Avatar for Valadair
0
109
Member Avatar for spankyg

Can anyone help me with this code? Most of it was written by me for homework. The switch portion was written by my instructor, and it is just pain confusing to me! I beleive I can write a TTT program from scratch (Won't be accepted) easier than cobbling this together. …

Member Avatar for John A
0
145
Member Avatar for boujibabe

I need a function that will populate a multidimensional array with a fixed amount of elements. So that only some of the locations contain a distinguishing number for identification.

Member Avatar for Lazaro Claiborn
0
275
Member Avatar for dmm2020

I hit a stumbling block. I am working on a ancestral research type database and I want to link different records together. Here is my scenario so far: datPrimaryRS is an adoc that is pointing to the Person table. datNameSourceRS is also pointing to the Person Table. This is used …

Member Avatar for overrideme
0
305
Member Avatar for Brent.tc

My javascript does not work in any browser except windows IE... WHY Please just give me an example of some javascript that works in mozilla Here is example of my source... [code] <script> var x = 400; alert(x); alert("This works in IE, but not Mozilla, why!!!!!!!!??????????"); </script> [/code]

Member Avatar for Brent.tc
0
121
Member Avatar for sam1

hi, I am creating a contact us page with php and html. everything works except for the actual receiving of the email. I am using php and apache on localhost but i am connected to internet. What i am trying to ask is: is it possible to send email using …

Member Avatar for sn4rf3r
0
158
Member Avatar for brale
Member Avatar for harry5341
0
71
Member Avatar for sakura_fujin

need help! what's wrong with my code? it compiles but outputs nothing. it requires the user to create a "word.txt" text file for it to start counting the frequency of occurrence of words. i'm a newbie here in daniweb and a novice in C++ programming. i really appreciate any help. …

Member Avatar for Lerner
0
221
Member Avatar for covertx

Hey all, I've recently started programming in BF as my signature might give away... I just want to know if any of you have ever used it, and if you've ever been able to make something more than just a trivial ASCII based programme! Here's an example of a BF …

Member Avatar for linux
0
125
Member Avatar for Tales

[I]I need to do something like Play MIDI voice (in the C++ code Snippets page 5), actually, that's exactly what I need, but I would like to make it work in Visual C++ 2005... can someone help me with the configuration steps to make the project work? TYVM [/I]

Member Avatar for Tales
0
160
Member Avatar for aloishis89

I am very new to python and am learning it just for fun. I am attempting to use it for a small application that shuffles a string list. I need to get a list of about 50 last names in a random order. I tried doing [code] items = [thing1, …

Member Avatar for aloishis89
0
162
Member Avatar for bhuvan83

hi every1 i m using jsp in jbuilder9 to create a website i have 2 drop down button a1 and b1 when i select a option in a1 the values of b1 comes if i change the value of a1 then the value of b1 also changes. then i have …

Member Avatar for bhuvan83
0
156
Member Avatar for SHWOO

IF I have seven objects of playerType player, player1, player2, player3...etc and I want to search to see if there is a certain player in these objects, how would I do that. I know my code isnt complete and is quite off but if someone could take my blindfold off …

Member Avatar for WaltP
0
176
Member Avatar for Mr.UNOwen

I'm currently creating a program with some buttons and other stuff and I was wondering how do I create a background image with jframe? I don't see any set method for it. Is the there a way to do it?

Member Avatar for vinod_javas
0
141
Member Avatar for gmunky

I'm working on a program that opens an html text file using a JEditorPane. I can read in the html file but i can't get the hyperlinks to work. I want it so that when the user clicks on a hyperlink word, it will open a different html file in …

Member Avatar for Phaelax
0
151
Member Avatar for stixoffire

I noticed on this forum and on the web when I go over a link or a double green underline link an info window is presented. How can this be achieved - any code samples would be appreciated ..

Member Avatar for stixoffire
0
88
Member Avatar for pyguy25

This is a modified program from the word count program that I posted about. I am trying to calculate the average word length in a sentence. Here is my code so far: [code] def main(): print "This program will calculate the average word length in a sentence" print s = …

Member Avatar for ghostdog74
0
12K
Member Avatar for Sacky

I was having some compile errors with my code, along the lines of this: [CODE]Error 1 error LNK2001: unresolved external symbol "class _CD3D * __cdecl GetD3DClass(void)" (?GetD3DClass@@YAPAV_CD3D@@XZ) DLLBot.obj[/CODE] After some reasearch i found that the problem was directly due to this line: [CODE]class _CD3D { public: void __stdcall CustomSetTransform(D3DTRANSFORMSTATETYPE State, …

Member Avatar for Sacky
0
90
Member Avatar for kramero

Hi, I forgot my Ms. Access Database password. :eek: Is there a way that I can recover it..? For your information, I split the database into two files, the front end and the back end. Now, I can't open the back end, although the front end still works. Help.... :confused:

Member Avatar for jbennet
0
216
Member Avatar for zizi

hi, could someone plz tell me why do I get this messege when I'm connected to the intenet. "Message from SySTEM to ALERT microsft windows has encountered an internal Error your windows registry is corrupted we recommend a complete sysytem scan" what kind of virus is this and what should …

Member Avatar for esber
0
215
Member Avatar for fulyaoner

Hi to everyone... I am to write a code about finding the least coins number to make up an amount that is given by user. It is a trivial question for a programmer and I did code well. In Canada, there are 2 more currencies, Loonie = 1$ and Twonie …

Member Avatar for fulyaoner
0
407
Member Avatar for vjw757

i have just aquired a site [URL="http://upithere.com"]http://upithere.com[/URL] .... im looking to give it a face lift. what i want todo is at least make boxes on the left and right sides for ads. here is how hosted images look...[URL="http://www.upithere.com/view/9607.html"]http://www.upithere.com/view/9607.html[/URL] i think it would look nice to have some ads on …

Member Avatar for stymiee
0
95
Member Avatar for Falconkicker

First off please excuse me if i do not approach this correctly. This is the first time I have used this site for any help. I am working on my midterm project due no later than sunday at midnight and i am stuck along with other students at the same …

Member Avatar for WaltP
0
274
Member Avatar for nottoshabi

Ok guys I need some help with this code. I'm suposed to run this problem with it: [LIST] [*] Rewrite the program to include a static data member named numemps. This variable, which should be an integer, shoud act as a counter that is initialized to zero, and is incremented …

Member Avatar for WaltP
0
162
Member Avatar for Luckychap

hi, please any one tell me what is function overloading and overriding. and next one is on O.S. one more que. what is the difference between process and thread thanks!!

Member Avatar for ~s.o.s~
0
145
Member Avatar for w_3rabi

hey guys i need some help on rss integration in php code anyone hav an idea how to do that

Member Avatar for stymiee
0
91
Member Avatar for kissiwat

Hi I've kinda hit an inspiration drought... Can anyone confirm that it is possible to return the value of several records within a linked list, add all the different values from each record, pass them as some sort of combined parameter into another file or record and be printed from …

Member Avatar for kissiwat
0
92
Member Avatar for lotsofsloths

OK, I have ben programming for about 6 monthes but never done real graphics!! I was wondering, how i could implement graphics into a program?? If this helps any i am using Visual C++ 2005 Express Edition...

Member Avatar for iamthwee
0
106

The End.