64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for butler273

This function of this find the median of three values inside an array. I was wondering if there's a more elegant solution to finding the median value between 3 values. [CODE] int mid =((p+r)/ 2); if(V[p]<V[r]){ if(V[p]<V[mid]){ if(V[mid]<V[r]) swapfunc(V[mid],V[r]); } else swapfunc(V[p],V[r]); } else{ if(V[r]<V[mid]){ if(V[p]<V[mid]) swapfunc(V[p],V[r]); else swapfunc(V[mid],V[r]); } …

Member Avatar for butler273
0
258
Member Avatar for CRuveiro

Where can I find a free software to display error message using a callout similar to the Ajax ValidatorCallout.

Member Avatar for CRuveiro
0
80
Member Avatar for nickg21

Hey everyone, I know that there are hundreds of articles online about this same error, but I have been going at this for almost 2 days and it's time I just started a thread of my own. In my application, I have a textbox that has a CalendarExtender hooked up …

Member Avatar for mikev2
0
341
Member Avatar for Sevyt

Probably a simple answer to a stupid question. But i cannot figure it out myself. I am using [CODE]Date.Now().ToString("D")[/CODE] on a label. Now i was wondering how you could use a similar string. But to add 1,2,3 ect... to that. So that i can have a label for each day …

0
97
Member Avatar for NinjaTwinkie13

So I've currently been studying C++ independently for a couple weeks with the help of good old books. One of the exercises was to make a "games library" where you can see your list of games, add a title, or delete it (has nothing to do with games). The catch …

Member Avatar for NinjaTwinkie13
0
156
Member Avatar for Traps

I'm making a website and of course want to incorporate memberships and logins, etc and while I understand the theoretical application of salting and hashing a user-inputted password to save the encrypted pass in my database, I'm not sure on the approach... What I would do is get the hashCode …

Member Avatar for Traps
0
105
Member Avatar for luislupe

I programmed some functions that use a dynamic array of [CODE=c] double ** array [/CODE]. But know, I want to test the results with a small array of 5 x 5 elements and use this array in the functions I coded. My problem is that I can find no way …

Member Avatar for luislupe
0
250
Member Avatar for TreeBranches

My program begins by opening a dictionary file, the first line of which contains the number of words in the dictionary. If I print the words immediately after scanning them into the arrays, they appear fine, but if I later examine a previous entry, I can see it has been …

Member Avatar for TreeBranches
0
219
Member Avatar for ringo_tech

hi there, i have this server code that send the received message from one client to all the other clients, including the one how send the message [CODE]public class Chat extends Thread{ static LinkedList<PrintStream> sll; Socket cs; PrintStream ps; public Chat(Socket cs){ this.cs=cs; try{ ps=new PrintStream(cs.getOutputStream()); sll.add(ps); this.start(); } catch …

Member Avatar for NormR1
0
163
Member Avatar for radu_brasov

When the code below is executed if sometimes it performs a "TAB" sometimes does nothing and sometimes gets my PC hung so I have to do CTR-ALT-DEL & Cancel which moves the execution of the program to the next line ("End IF"). Any idea what is missing to make it …

Member Avatar for radu_brasov
0
611
Member Avatar for pritesh2010

hi everyone, In my project i'm working on Fileupload control.when i browse a file with IE7 it gives me a full path path of file but when i'm trying in Firefox and Chrome it does not give me a file path. some says save it to your server or a …

Member Avatar for dickersonka
0
661
Member Avatar for thiemebr

Hi, I'm new in asp and c# and I've being looking everywhere on how to dynamically create multiple html tables based on a user input: e.g.: user enter 3 in a text box and right below 3 tables are created with other text boxes for more user input. Thanks

Member Avatar for thiemebr
0
175
Member Avatar for SpokaneDude

I have seen this calendar (html5advent.com) whose design I would like to use in an iPad app. There is no problem generating the calendar; the questions are: [LIST] [*]how do I capture a tap on one of the "days"? [*]what would be the best way to actually "create" the boxes? …

0
82
Member Avatar for SpokaneDude

This is my code: [CODE]//++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - (void)viewDidLoad { [super viewDidLoad]; NSString *indexPath = [NSBundle pathForResource:@"iHelp" ofType:@"html" inDirectory:nil]; [webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:indexPath]]]; [/CODE] The app is crashing because 'nil' for directory name is invalid (DUH!). So for an imbedded html file, what should go there?

0
91
Member Avatar for end3r

Hi, I have a problem with some resource files (i.e. .txt) which I have created in the project under let's say com/myapp/resources. I have a class created: com.myapp.util.MyClass which reference a file.txt located in resources folder: [CODE] MyClass.class.getResourceAsStream("../resources/file.txt"); [/CODE] The project is created in eclipse. After I export the project …

Member Avatar for end3r
0
313
Member Avatar for cyberdaemon

good day. i have a problem with my login from. i have my table under SQL server 2008. which is tbl_user,with a field of userid,username,password and category i created a simple login form but that's fine and working as a simple login.. my problem is that i want to add …

Member Avatar for Begginnerdev
0
2K
Member Avatar for IcyFire

Im trying to write a program that will scan both characters and numbers from a user then put the number into an array or call another function based on the user input. For example the user will type 'Insert 3' and this will call the function to put 3 into …

Member Avatar for IcyFire
0
182
Member Avatar for CriticalError

Hi Guys. I got two combo boxes, one has numbers from 1-75 and the other one has all system fonts. I have a richtextbox as well. I basically want the user to be able to choose the font and font size from the combo box and then apply to the …

Member Avatar for Jx_Man
0
850
Member Avatar for feblioz

anyone know whats the code to make the header to stay in place like facebook does? the home, profile and setting navigation stays on top

Member Avatar for feblioz
0
91
Member Avatar for zachattack05

Greets again! I am working on a project and have some controls that I have created, and even some full namespaces that I think would be very useful to other projects I am working on and possibly future ones. I'm considering pulling the code for those namespaces/controls out of the …

Member Avatar for zachattack05
0
136
Member Avatar for dioz20

Hello. I need some help with summing up the total price each company owe to us. Basically it's looking like this currently: [url]http://i.imgur.com/7kkdt.png[/url] For English speakers, Företag = Company Datum = Date Artikel = Product Antal = Amount Pris = Price And then the last row Företag = Company Total …

Member Avatar for dioz20
0
110
Member Avatar for phorce

Hello I need some help, I'm trying to output something to a text file (.htm) which will then display the data that is being generated in the C# program.. Now the problem is, whenever I try to replace something, it doesn't work. Just replaces it with "System.Char[]" Here is the …

Member Avatar for thines01
0
128
Member Avatar for laalesh

Hi All, I want to pass few dynamic arguments to shell script. The number of arguments differ each time I call the script. I want to print the arguments using the for loop as below. But not working out. for (( i=1; i<=$#; i++ )) do echo $"($i)" done /bin/sh …

Member Avatar for laalesh
0
84
Member Avatar for blondie.simon

Hi I'm trying to display the version number of my application on the screen using the code below. [CODE]Version = My.Application.Info.Version.ToString[/CODE] When ever this line of code runs Version always ends up being 1.0.0.0 but my publish version number is 1.0.0.33 Is the My.Application.Info.Version not the same as the publish …

Member Avatar for Djoulz
0
8K
Member Avatar for zachattack05

So the question is, if I am instantiating a control for use on a form (or any object really) at what point is the object and it's properties/methods considered loaded into memory? The reason why I ask is because evidently when I instantiate my custom controls, but before adding them …

Member Avatar for zachattack05
0
125
Member Avatar for jcAmats

Hi. Can somebody help me? I am trying to create a program that reads random line from a file and displays them. My problem is, it keeps repeating the same line after a few tries. i have 8 total lines from my file... this is my code so far... [CODE]public …

Member Avatar for jcAmats
0
594
Member Avatar for poojavb

Hello Friends, I have one project in Java but the exe file cant show the system.out.println messages. I want to create a jar file in such a way that the error of file e.g. abc.java should be viewed when I click the jar file. is there any possible way....

Member Avatar for poojavb
0
147
Member Avatar for akasekaihime

can anyone help me how to create a search command....I am just new to php and I cant find any sites or tutorials to help me.... here is the story.. I want make a search box that will post all the scheduled trips with the corresponding destination, origin, date of …

Member Avatar for veedeoo
0
267
Member Avatar for Griff0527

I am getting an error during the build stating: "Illegal call of non-static member function" and I cannot figure out 1) what does this mean, or 2) how to resolve it. For detailed clarification, I will type out what the assignment was (I say was because the assignment was due …

Member Avatar for raptr_dflo
0
377
Member Avatar for pushpat

Hi Folks :), I need your help:?:, I am getting segmentation fault for "delete bptr_1" ( please refer program written below and line number 46 ). If i remove statements "delete dptr;" (@line 32) inside try{}, then the program executes otherwise it will give error. Could you please tell me …

Member Avatar for pushpat
0
145
Member Avatar for dwiniers

Hello there VB6 masters, I need you help guy for this compile error: End with without with. I got the syntax in line no.33 Thanks in advance! [CODE]Private Sub cmdSearch_Click() Dim sql As String With rsLibrary If Trim(Combo1.Text) <> "" Then If Combo1.Text = "All" Then txtTitle = "" txtDirector …

Member Avatar for dwiniers
0
724
Member Avatar for Sunciti
Member Avatar for Gribouillis
0
92
Member Avatar for poojavb

Hello friends.... I have to check the folder path in such a way that c:\Pooja\[COLOR="red"]dynamic_folder[/COLOR]\Output.txt From Pooja folder how will I be able to move to the text file since the dynamic folder can be anything and I want to move inside the dynamic folder... is there any way... i …

Member Avatar for poojavb
0
164
Member Avatar for phorce

Hello, I have two paragraphs on my page and I need to draw a line between them. Now, I currently store the positions of the two paragraphs inside a database and I have access to them, I just don't know what to do from here. Some people have suggested I …

Member Avatar for vsmash
0
141
Member Avatar for Valiantangel

Can anyone give me an example iniitialing a non zero value using arrays If u cant give an example pls dont respond.Thanks:)

Member Avatar for NormR1
0
84
Member Avatar for SoftwareGuy

Hello, I have two projects in this solution: ProjectA and ProjectB. ProjectA is the main start-up project, and has a reference to ProjectB. ProjectA has a file called MainForm.cs, which contains a textbox and the main UI. ProjectB has a class inside Shapes.cs, containing a particular structure we're using. Shapes.cs …

Member Avatar for kplcjl
0
241
Member Avatar for otengkwaku

hi guys i need some help with WinAPI i will like to learn. what it is about and it relation to c# \

Member Avatar for otengkwaku
0
133
Member Avatar for adarsh_wolf

Hi all, i am using vb 6.0 and oracle sql*plus ...........i need the code for ....when the car name is selected in the combo box it's corresponding purchase cost should be displayed in the text box..........and i have connected this to the database through ADODC connection pls help me ASAP …

Member Avatar for BitBlt
0
115
Member Avatar for comSysStudent

I'm trying to get my JPanel (JFrame?) to resize itself to fit randomly drawn shapes. I have a shape superclass and right now I'm working with my line subclass. Everything is working fine except I can't figure out how to make the shapes fit the size of the JPanel. Should …

Member Avatar for comSysStudent
0
7K
Member Avatar for triumphost

Is there anyway I can specialize JUST the Contains function of the class below? I tried for hours and cannot figure it out as I'm not too good at specialization but I learned templates recently. I want to do something like: [CODE] bool Contains(string ToFind) { //If typeof(T) == typeof(string) …

Member Avatar for mike_2000_17
0
617
Member Avatar for sammry

When People are trying to insert an sql inection, that time mysql errors displays the table name with the column names, how can I turn off this, My site is built in MVC framework, and this is how developers have queried the database, [CODE] $offset=0; if(isset( $_GET['offset'])) $offset=$_GET['offset']; $array_list=$DB->q("select *,users.user_list_id …

Member Avatar for sammry
0
2K
Member Avatar for while(!success)

Hey guys, learning about multi-dimensional arrays and am tracing a code that my teacher gave us, but I'm failing to see or conceptualize it. for instance: Why does the following code output 3? [CODE] int a[2][4][2] = {16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1}; cout << a[1][2][1] << endl; //output is 3 [/CODE] How are the …

Member Avatar for while(!success)
0
300
Member Avatar for millanskie

Hi, First Problem: I have a PHP script that export CSV with Japanese text, for example I download the CSV on the website then save to desktop of my computer and Open it on NOTEPAD... that works fine I could still see all the japanese text OK with no problem, …

Member Avatar for ruddyfrompt
0
15K
Member Avatar for mido22

i have this problem : Dynamic SQL generation for the DeleteCommand is not supported against a SelectCommand that does not return any key column information. ... the button used to delete record in my project is button6 at the end of the code my code : [CODE]Public Class Form1 Dim …

Member Avatar for Oxiegen
0
208
Member Avatar for Thermalnuke

Hey guys I got a problem, my program is suppose to take 10 numbers or grade scores and output the max, min and avg. score. My program writes out the max and the avg, although the avg dosent come out correctly because i am not getting a min for a …

Member Avatar for Thermalnuke
0
141
Member Avatar for thepanther

having abit of trouble with this code here is wot i want to do but dont seem to be working like that can someone help please.. thanks Promt the user to answer the 10 questions, record the answers and compare them to the correct answers. Once the user has answered …

Member Avatar for thepanther
0
157
Member Avatar for 4evrmrepylrning

Hi I have a file with duplicate records they look something like this: [ICODE]<record> <dateadd>012012</dateadd> <nid>R04607295</nid> <reflink></reflink> <FPI>YES</FPI><TPG>NO</TPG><FT>YES</FT> <num>631</num> <author>Anon</author> <title>ON THE WED</title> </record> <record> <dateadd>012012</dateadd> <idref>R04607297</idref> <reflink></reflink> <type>Article</type> <FPI>YES</FPI><TPG>NO</TPG><FT>YES</FT> <num>651</num> <author>Bent, E</author> <title>ENTRANCES AND EXITS</title> </record> <record> <dateadd>012012</dateadd> <nid>R04607295</nid> <reflink></reflink> <FPI>YES</FPI><TPG>NO</TPG><FT>YES</FT> <num>631</num> <author>Anon</author> <title>ON THE WED</title> </record> <record> <dateadd>012012</dateadd> …

Member Avatar for JeoSaurus
0
169
Member Avatar for vizz

How to create watermark using jquery and css? I want to print text on image using javascript in diagonal direction.

Member Avatar for stbuchok
0
148
Member Avatar for Danny159

Hey guys, I need some help with preg_replace() I have something like this.... {$gallery_20} And I want to use preg_replace to replace it with nothing.... however gallery_20 can be anything... but im not sure on the patten... Can anyone help please? I don't understand how to change all this.... $patterns …

Member Avatar for pritaeas
0
105
Member Avatar for CalNChibi784

Hello everyone. I'm a new member here but have an issue that I've searched and searched for and just cannot figure out how to resolve. Based off of the issues that I was able to correct, Daniweb seemed like the best place to ask. I'm making my first attempt to …

Member Avatar for CalNChibi784
0
254

The End.