199,114 Archived Topics
Remove Filter ![]() | |
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] … | |
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; … | |
can anybody tell me how to define multi demensional array in ruby on rails. thanx buddies for previous replies and for this in advance. | |
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 … | |
program to create two threads ,by using them sort two files using merge sort by using one more thread merge them | |
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"? … | |
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() … | |
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 | |
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 … | |
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"; } … | |
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 … | |
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. | |
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. | |
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 … | |
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 % … | |
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 … | |
{ 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 … | |
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 … | |
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 … | |
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 | |
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 … | |
hi, i am very new to pointer concepts.how to declare the pointer and how to use it | |
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, … | |
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. … | |
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. | |
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 … | |
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] | |
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 … | |
How to initialise rs232 serial port and send a byte in assembler language? | |
![]() | 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. … |
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 … | |
[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] | |
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, … | |
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 … | |
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 … | |
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? | |
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 … | |
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 .. | |
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 = … | |
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, … | |
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: | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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!! | |
hey guys i need some help on rss integration in php code anyone hav an idea how to do that | |
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 … | |
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... ![]() |
The End.