199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JackDurden

IF i have this function... [CODE] node* get_lowest(node* root) { node* min = root->child[0]; for(int i = 0; i<root->child.size();i++) { if(min > root->child[i]) min = root->child[i]; } cout<<"Here it is:"<<min->data<<endl; return min; } [/CODE] how do I get it to return the smallest indexed pointer? for example if root->child[0] and …

Member Avatar for VernonDozier
0
255
Member Avatar for mrcniceguy

i have just started learning C++,this is my first programming language. but i was solving some question in array,but this one was a problem to me. here it goes. create array,in that array find sub arrays(subset), in which there is a maximun number in increasing order. for example array below …

Member Avatar for mrcniceguy
0
113
Member Avatar for David Mac

Hi All, This is my first post here... I'm developing an asp.net app and one of the requirements is to send an email to customers with quotation details. In the past (VB6 app) I've done this by creating a Word doc from a template and emailing it as an attachment. …

Member Avatar for sknake
0
93
Member Avatar for coolbuddy059

I've written a code for JButton handeling.The code is= [code=java] import javax.swing.*; import java.awt.*; import java.util.Calendar; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; // Example using defaultButton and JRootPane.setDefaultButton() public class DefaultButtonExample { public static void main(String[] args) { // Create some buttons JButton ok = new JButton("OK"); JButton cancel = new JButton("Cancel"); …

Member Avatar for Ezzaral
0
293
Member Avatar for gagan22

Hi all, Actually i want to two link in my page using ajax. Let me explain the problem: Like my site have three page in which about me, contact me and personal info are three page . All these three page are connected with database and fetching some information from …

Member Avatar for yilmazhuseyin
0
126
Member Avatar for abhishekmadaan

Hi, I am making a program in which i need to append the file from the beginning. so i am opening the file like this wFile.open("sat.txt",ios::ate| ios::out | ios::in); moving the pointer to the beginning wFile.seekp(0,ios_base::beg); but when i try add data it is overwriting the data. Is there any …

Member Avatar for ArkM
0
98
Member Avatar for MervinKoops

Hello I'm new here my name is Mervin, I'm creating a 3D online game in C# (everything is going well so far don't need to discuss it ;) ) And I am building a TCP server for it in C# (Visual C#.NET) The server needs to be able to handle …

Member Avatar for MervinKoops
0
116
Member Avatar for tulipputih

Hi, Anyone can help me?..must be easy for most of you. instead of just displaying data from the database in a table, i want to make it varies..some in textbox, some in text area. this is my code: [code=php]<?php $query= mysql_query(" SELECT * FROM office WHERE officeID='" . $_GET['officeID'] . …

Member Avatar for Atli
0
154
Member Avatar for Xessa

I have 3 textboxes names myTextBox1 myTextBox2 myTextBox3 onblur i want to check if the value of the checkbox is true. I have a function in my js file. [code] function isNumeric(myString) {.......} [/code] In my JSP file i write; [code] onblur="isNumeric(X)" [/code] I wrote everything and it does not …

Member Avatar for itsjareds
0
100
Member Avatar for sivak

i have two assembly version old version is 1.0.0.1 new version 1.0.0.2 if i want to use old version what should i do? if i want to use new version what should i do? in which field i have to mention in assembly info file ?

Member Avatar for sivak
0
69
Member Avatar for sivak
Member Avatar for sivak
0
53
Member Avatar for jbisono

Hi, everyone this is my issue I have to read a binary record from the database and concatenate another string to it, the thing is that is just working one way, I ll put some code to explain better. [ICODE] buffer = rdGetBinary.GetInt32(3);//this is the length of the actual row …

Member Avatar for jbisono
0
118
Member Avatar for adamramadhan

can sombody give me a great example to make a connection php - mysql ( oop - best practice ) ? [ICODE]<?php /* Database Connection */ class db { private $db['host']='localhost'; private $db['user']='root'; private $db['pass']=''; private $db['name']='build'; public function connect($db['host'],$db['user'],$db['pass']) { $db['connect'] = mysql_connect($db['host'],$db['user'],$db['pass']); if (!$db['connect']) { printf("Cannot connect to …

Member Avatar for adamramadhan
0
136
Member Avatar for MasterGoGo

Hi guys, I have a problem. Im trying to read from a file which contains one, two, three, four. The output I get is one two three four But I want to make it read every other line. one three etc. How would I go about that? [CODE] import java.util.Scanner; …

Member Avatar for Ezzaral
0
110
Member Avatar for infinitelygreen

Hello! I recently started learning Python, and I'm trying to install the package GASP ([url]http://pypi.python.org/pypi/gasp/0.4.5[/url]) in order to be able to code some graphics. However, the file is of type EGG. I found that I need to install EasyInstall in order to be able to install EGG files. (The download …

Member Avatar for infinitelygreen
0
96
Member Avatar for zido85

i have this code, im using jquery which im not very familiar and i need help please:D [code] <html> <head> <title>Select and drag?</title> <style type='text/css'> body,html { color:#333; font-family:Calibri; font-size:11px; } .panel {float:left;width:200px;margin:20px;} ul { list-style-type:none; border:1px solid #999; background:#ccc; padding:20px; min-height:150px; width:100px; } li { display:block; border:1px solid #999; …

Member Avatar for Josh Connerty
0
2K
Member Avatar for Lukezzz

I have made a form that contains about 60 buttoncontrols, 7 panels and 10 textboxes. What happens when I drag around this Form etc.. is that the controls flickers very much. How is it possible to reduce this flickering. Thank you...

Member Avatar for Lukezzz
0
80
Member Avatar for jamello

hello smartheads! I am currently investigating the extent of adoption of mono by the different flavours of linux OS. I am aware that opensuse and ubuntu are favourably disposed to mono but what I cannot ascertain is wheher RedHat linux has adopted/implemented mono. I keep getting conflicting reports:confused: . I …

Member Avatar for jamello
0
350
Member Avatar for leegeorg07

Hi, I have this code: [code=python] def yn(input): if input.lower == 'y': return True else: return False def limestone(): I = raw_input("are there shelly fragments? (y/n)") if yn(I): print "Shelly limestone" else: print "chalk" def crystals(): I = raw_input("Are the crystals big?(y/n)") if yn(I): big_crystals() else: print "Basalt" def big_crystals(): …

Member Avatar for leegeorg07
0
72
Member Avatar for poeticinsanity

I'm having a simple problem. I'm using this class to do some stuff with another module. Now, for some reason the self.database and other variables are not able to be accessed by the other methods. I thought _init_ was suppose to work as a constructor, thus the other methods should …

Member Avatar for poeticinsanity
0
90
Member Avatar for mastr924
Member Avatar for Gary888

Hello, This is a JavaScript/PHP question so I will go ahead and post it here. I would like to know if it is possible to access (in a PHP class) a value/variable that has been returned by a JavaScript function. The function is in external .js class. Here what I …

Member Avatar for Gary888
0
2K
Member Avatar for danielgee

Hi, Is there a simple control I can use with ASP.NET to display an unbound list with multiple columns (like the ListView control in VB6.) It seems that you can use the GridView. but it seems really complicated to populate (with unbound data.) Can you use the ListBox to do …

Member Avatar for danielgee
0
156
Member Avatar for moiseszaragoza

I have a SQL Query build as a string but i cant seem to pass it into to the <cfquery> But it does not work any one can help me? [ICODE] <cfif ISDEFINED ('member')> <CFSET SQL = "SELECT * FROM precontract "> <CFSET SQL_Coubr = 0 > <cfif form.member neq …

Member Avatar for gdmprog1
0
191
Member Avatar for chaines51

I've always been curious: in VS, and most other IDEs, you are allowed to do something like this: [code=c++] //in file class.h class blah { //prototypes, members, blah, blah blah } //in file class.cpp #include "class.h" //method definitions... etc. //in file main.cpp #include "class.h" int main { //do stuff with …

Member Avatar for VernonDozier
0
118
Member Avatar for sivak

can any one explain when and how we can use https and ssL IN c# .net..what is the use for it?

Member Avatar for sknake
0
166
Member Avatar for sivak

can anyone send me the llink for garpage collector working principle..when we use fimalize and when we use dispose method in c# .net plz

Member Avatar for thewebhostingdi
0
88
Member Avatar for lonestar23

I am trying to parse a XML document but can not seem to parse both Childnodes and Attributes in the same Foreach statement. ===================== PHP CODE ===================== [CODE] <?PHP $webResults = $response->getElementsByTagName($prnt0); if ($webResults->length<>0) { foreach($webResults as $value){ $title = $value->childNodes->item($child1)->nodeValue; } } ?> [/CODE] Need the title childnode and …

Member Avatar for ShawnCplus
0
2K
Member Avatar for tomtetlaw

How do I search a string for anything? What I mean is, I need to say: [code=python] if line == 'playername = (any name)': temp = line.strip().replace('playername=', '') return temp [/code] Any ideas?

Member Avatar for jlm699
0
109
Member Avatar for sivak

how can i access multiple databases in dataaccess layer to c# .net applications?

Member Avatar for thewebhostingdi
0
239
Member Avatar for schnaiper

Hi I work on a anti-virus programm. The anti-virus program should start when you boot the computer. So I thought it is good to use a HKey to start it always. How can I make such a HKey which starts my program? thx

Member Avatar for schnaiper
0
72
Member Avatar for thacravedawg

I have a multiline textbox on my form. It is filled on load with content from a database. The user then manipulates this data, and it needs to be updated on the database. I have everything working except for getting the changed value of the textbox. In the on_click event …

Member Avatar for thewebhostingdi
0
203
Member Avatar for furqan219

hi this is a form.php [CODE=html]<html><body><font face=Arial size=2> <form method="post" action="contact.php"> <table bgcolor=#ffffcc align=center> <tr><td colspan=2><strong>Contact us using this form:</strong></td></tr> <tr><td>Department:</td><td><select name="sendto"> <option value="info@mycompany.com">General</option> <option value="support@mycompany.com">Support</option> <option value="sales@mycompany.com">Sales</option> </select></td></tr> <tr><td><font color=red>*</font> Name:</td><td><input size=25 name="Name"></td></tr> <tr><td><font color=red>*</font> Email:</td><td><input size=25 name="Email"></td></tr> <tr><td>Company:</td><td><input size=25 name="Company"></td></tr> <tr><td>Phone:</td><td><input size=25 name="Phone"></td></tr> <tr><td>Subscribe to<br> mailing list:</td><td><input type="radio" …

Member Avatar for Atli
0
206
Member Avatar for nonon

Hello guys! I just started learning c#.net. I able to make a simple report using crystal report. Now, my problem is I can't include data which comes from the textfields in the forms of my application. ex. I have value "alpe" in my textbox. and I want to include this …

Member Avatar for pupilstuff
0
132
Member Avatar for SID.SIL

Hi, guys I am here again. How are you? As always, I have a dificult problem.Now I have two radionlistbuttons and when I click in the first i need to put a value in a textbox and when i click in the order i need to put another value in …

Member Avatar for thewebhostingdi
0
150
Member Avatar for blindkilla

Well im trying to get my form to post data to a php file and get back the result. For some reason its not calling mail.php, but instead it just puts all the post data in the current url like [code]somesite.com/index.php?id=value&id=value..etc[/code] instead of [code]somesite.com/[B]mail.php[/B]?id=value&id=value..etc[/code] here is the ajax code [code=javascript] …

Member Avatar for Airshow
0
333
Member Avatar for yun
Member Avatar for pupilstuff

i just want to compare two dates both are in two text boxes in formate of dd/mm/yyyy how can i do this

Member Avatar for thewebhostingdi
0
119
Member Avatar for N3oblaster

Hi, Im new to C# and need help with my program that im writing i need to let it read an XML in the first window and when i press add program a second window opens (both windows i have) i want it to write the XML so something like …

Member Avatar for N3oblaster
0
236
Member Avatar for lagyossarian

I have a SQLDataSource that has an XML string as its data value. I want to blast out the raw XML to the webpage. How do I do that? Thanks in advance for any help or assistance.

Member Avatar for thewebhostingdi
0
53
Member Avatar for CTBC

I have a form where there are 2 buttons, one which randomly adds buttons onto the form, and one that resets the form to default. When the form is opened there are two buttons, but after clicking the random button, there are many buttons. For the reset button, I currently …

Member Avatar for sknake
0
166
Member Avatar for tulipputih

Hi all.. really need a help. this is looks easy peasy but I can't solve it :( I want to make a link from lesson ID to a details of the selected lesson ID. [icode]<td> "<a href='details.php?lessonID=". $lessonID ."'> </a>" </td>[/icode] when I run the coding the following error appear …

Member Avatar for navi17
0
243
Member Avatar for StNick

Hi all, I have a web app that is used in a number of countries, including ones such as Brazil, where the comma is used as a decimal separator. This is causing problems with my SQL queries, as it is trying to update a number field with "0,013" when it …

Member Avatar for StNick
0
107
Member Avatar for nabeelanwer

import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import java.awt.*; import java.sql.*; import java.util.*; import java.util.Date; import java.lang.*; import javax.swing.JApplet; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.renderer.category.LineAndShapeRenderer; import org.jfree.data.category.CategoryDataset; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.ui.ApplicationFrame; import org.jfree.ui.RefineryUtilities; //import org.jfree.chart.demo.Time; /** * A simple demonstration application showing how …

Member Avatar for peter_budo
0
325
Member Avatar for Mijchael

) Hi Guys, I am working now in a project that is placed into my docs\visual studio proj, that need to use . h files, placesd in c:\prog files\windows sdk and c:\prog files\OpenCv. Into these directories have another subdirectories with these .h that into them are included others .h files …

Member Avatar for Ancient Dragon
0
100
Member Avatar for servis

is it possible to use the xmlHTTP.responseText in any other java function, after execuation of stateChanged() function??? example in ajax... [ICODE] function stateChanged(){ if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { var result = xmlHttp.responseText if (result.length=="0"){ var task = "do"; //i want to use "task" in other js function return task; } …

Member Avatar for essential
0
445
Member Avatar for sivak

what is mean by static constructor ? explain me with understanding example?

Member Avatar for kvprajapati
0
82
Member Avatar for coolbuddy059

Can you help me with source code to get the date 1 jan 2009 in the format 01 01 09. Actually I've to form a verification id for issuing gatepass which uses last two digit of the year,then net two digit consist of month and next three digit consist of …

Member Avatar for javaAddict
0
112
Member Avatar for elanorejoseph

i always get some problem when i try to create a edit link and corresponding page. now the value to be edited are not shown in the edit form, and i do want to return to the same page where i have selected value to editted .can any one help …

Member Avatar for Atli
0
120
Member Avatar for mundetas

i have put my application on a pc with just .net framework 2.0 on. I get a crystal report engine error as noted below: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.IO.FileNotFoundException: Could not load …

Member Avatar for kvprajapati
0
150

The End.