64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for MattJones

Hey Guys, I'm working on a C++ program for school. Basically the Program inputs a file of points and outputs an svg file that contains the Graph with the least number of edges. We need to implement this with the Kruskal and Prim algorithm, and the algorithm needs to be …

Member Avatar for Fbody
0
205
Member Avatar for tsp003

Hi, I think I need a fresh pair of eyes on one of my scripts. I've adapted the following code for my own purposes and it almost works perfectly. When it gets to the last table (line 168: add record to jobs table) it adds the record twice and I …

Member Avatar for tsp003
0
204
Member Avatar for Pravinrasal

want to print Jframe like our word document. I have one jframe on jframe i have Jpanel ond on that panel i have j label . In jlabel i written a letter i want to print that letter so how can I print that letter. thank you

Member Avatar for JamesCherrill
0
276
Member Avatar for bibiki

hey there, I am trying to build a small around soccer/football matches. So, I have built a class that models a Match (Match.java). It only contains field variables like hostid, guestid, matchid, result, and such, and setter and getter methods. When I retrieve matches from my sqlite database, I build …

Member Avatar for bibiki
0
673
Member Avatar for Ravic85

Hello everyone! I've made the mistake of not asking my teacher for help when I had the time. Now I'm stuck and lost. I didn't do this because I felt I should be able to figure this out myself since this is my major. So, I'm giving up and needing …

Member Avatar for Eagletalon
1
1K
Member Avatar for kccute

Hi guys ! I have big problem in my project i cant display the data of my database (.mdb) to my Data report i need some expert help to this. Im new to this im such a loooooser... plss help me Thanks in advance..

Member Avatar for abu taher
0
182
Member Avatar for Buppy

Hi, A quick question - i have a string containing text like this: [CODE] \\u003cspan class=\\\"someClass\\\">Some text\\u003c\\\/span> [/CODE] How do i get that "Some text" value into an array? I tried [CODE] preg_match_all("/\\\\u003cspan class=\\\\\\\"someClass\\\\\\\">(.*?)\\\\u003c\\\\\\/span>/",$str,$res); [/CODE] Returns nothing. I think there's something wrong with the regex pattern. Maybe anyone can correct …

Member Avatar for pritaeas
0
146
Member Avatar for suioius

I got a homework, its due by monday. I have read textbook a lot but i still dont know what to do next steps. Here is problem. The program should prompt the user for and accept two inputs: 1. The total price (including any applicable tax, etc.) for whatever was …

Member Avatar for CoolPrizes
0
156
Member Avatar for Troebadoer

I am pretty new to C#. I am a Borland c++ developer and is used to "newing" and "deleting" objects programmatically. I understand that with C# the garbage collector is responsible for the deleting of objects. It seems though that I have a memory leak. I am developing a SQLServerDBInterface …

Member Avatar for Troebadoer
0
229
Member Avatar for Ruchi224

Hello.. I am new to vb.net. Need to know how can I retrieve the value from compname field of my table, to the textbox7 in form i made. While the user enters data in the textbox, i need to compare the entered textbox value, if it exists or not, in …

Member Avatar for kvprajapati
0
147
Member Avatar for rotten69

hey everyone, I'm just having a problem debugging this line and I don't see anything wrong with it. I tried using SelectValue and other ways but nothing seems to be working. The error message I get is that Exception Details: System.FormatException: Input string was not in a correct format. [code] …

Member Avatar for kvprajapati
0
106
Member Avatar for khushhappy

Problem:- I want to show only those Documents which are before the deadline of the page. when deadline equals or less than the currentdate then show else move to archive or send to archive file. How to write a code for this or a query ? as for understanding , …

Member Avatar for khushhappy
0
109
Member Avatar for Kamal_Java

Dear friends , I am new to java . I created an JFrame(Calculator) application in Netbeans.Now i want to run that file from console(putty) since i gonna use that .java class in some other program through which i want invoke this . How do i do this . When i …

Member Avatar for peter_budo
0
256
Member Avatar for rraviraj

hi everyone i m a begginer to iphone apps development ...i m ryt now studying the topics related to phonegap...and my problem is with creating database can anybody tel me how to create databaase for iphone using phonegap..

Member Avatar for rraviraj
0
89
Member Avatar for tapandesai007

I have one access database and one windows form. I have some text field and one picture box. I want to Store some data and image into my database, i have written following code to do the task but it says "Syntax error in Insert into statement". I am pasting …

Member Avatar for kvprajapati
0
183
Member Avatar for crownedzero

OK, so I want to create a function getStrRegion(commented out at the bottom) to pass a str value N, S, E, W, C back to the main function so I can then drop it and regionSelect back into getNumAccidents. I'm not exactly sure how to pass a string of characters …

Member Avatar for mrnutty
0
111
Member Avatar for jet101

guys, good day! I just want to ask how to reload/refresh a JComboBox. I have a cardlayout with 3 panels, each panel has its own combobox. what I want to do is to reload the combobox to its original state each time I swap the cardlayout. updateUI(); repaint(); revalidate(); I …

Member Avatar for jet101
0
738
Member Avatar for agent154

Trying for the life of me to figure this out, but I can't seem to make sense of it. I found some code that demonstrates how keyboard events are handled, but it doesn't work when I have a textbox on my form. When the textbox has focus, the event does …

Member Avatar for agent154
0
226
Member Avatar for agent154

Maybe I should be doing this differently... but in case I have the right idea, how do I go about doing it? I have the following code: [code=csharp] void eventKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Control && e.KeyCode == Keys.O) this.eventOpenFile(); } private void eventOpenFile(object sender, EventArgs e) …

Member Avatar for agent154
0
129
Member Avatar for hueikar

Hi. I am using visual studio with visual basic. I have create a combo box which data is from oracle. I want to know how to check the value in combo box is choose before i proceed to save the record? Thank you.

Member Avatar for hueikar
0
134
Member Avatar for SagarSe7en

Hello Guys! Posting this thread based on the topic of NumberFormatException null... This is how it goes. Im calling records from the db into a JSP. [CODE]String FirstName = Results.getString("FirstName"); String MiddleName = Results.getString("MiddleName"); String LastName = Results.getString("LastName"); int BorrowerID = Integer.parseInt(Results.getString("BorrowerID"));[/CODE] When i try to call it in the …

0
67
Member Avatar for Dexxta27

I am just learning Java and am trying to use variables from objects that I passed into another method. Can someone help me here [CODE] package data; public class Data { private int day, month, year; public Data(int day, int month, int year) { this.day = day; this.month = month; …

Member Avatar for Dexxta27
0
174
Member Avatar for narekm

Hello there . Please could you tell me what IDEs are considered to be top IDEs for web development mainly for PHP ? Thanks in advance!!!

Member Avatar for diafol
0
165
Member Avatar for laguardian

Hey guys! I've created a simple program that given the current day and how many days from the current day, it will determine if it's a Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, where 1 Sun, 2 -Mon, 3-Tues, 4 -Wed, 5 -Thurs, 6 -Fri, 7-Sat My problem is that …

Member Avatar for Majestics
0
376
Member Avatar for ghostile

Hey just a quick question with list <Object*> object; when i put an object in the container i use object.push_front(new thing(param1,param2,param3,param4,param5)); because i have used new how do i go about deleting this certain object in the list i figured somthing like this [CODE] while(p != object.end()) { if((*p)->exists(param)) { …

Member Avatar for dospy
0
231
Member Avatar for SunnySideUp

Hi, I have a couple of questions regarding Mobile Development, are all mobile apps developed using xcode and objective C ? I take it these are zipped up and offered as a download on an app store so to speak at a small cost ? Is it possible to make …

Member Avatar for peter_budo
0
142
Member Avatar for RenanLazarotto

Hello guys! I need another help now. My last topic was about editing a image, which I already get working. Now I need a few things: [LIST=1] [*]Open a folder, add every image that is inside it to a listbox (filter all the other files). [*]This one is a bit …

Member Avatar for RenanLazarotto
0
215
Member Avatar for Rizi004

Hi every one my question is that i want to validate the form when any one wants to login or sign Up i want to check that the email address is correct or not means that email address include '@' char or not if not an error message should be …

Member Avatar for Rizi004
0
390
Member Avatar for Rupindersingh

The following program is supposed to sort eight strings in alphabetical order, but its not functioning properly. Can anyone please debug this [CODE]void main() { char *p[8], *s; int i,j,t; clrscr(); printf("Enter the strings:\n"); for(i=0;i<8;i++) gets(p[i]); for(i=0;i<8;i++) { for(j=i+1;j<8;j++) { t=strcmp(p[i],p[j]); if(t>0) { s=p[i]; p[i]=p[j]; p[j]=s; } } } printf("\nSorted …

Member Avatar for Rupindersingh
0
115
Member Avatar for anand01

hi, I need to draw bar graph in jsp. give me some suggestion for this. which one will be best whether drawing in java script in or Jfree chart . Thanks in advance

Member Avatar for anand01
0
103
Member Avatar for rockout15

i am a newbie so bare with me.. can anybody help me solve this prob. input string was not in a correct format this is my code... i can figure out what wrong with this .. [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using …

Member Avatar for Mitja Bonca
0
345
Member Avatar for pcolas

I am having problems getting this program to work. It will not compile due to errors for dollarAmount and Breakdown. Could someone please help [CODE]namespace test { class Converter { //classs variable private int currency; public void converter(int currency, int[] breakdown, int[] denom) { int diff = currency; int x …

Member Avatar for pcolas
0
2K
Member Avatar for raaif

I have a listbox with data as follows; [ICODE] 78550Item10 78550Item6 78550Item4 78550Item5 78550Item3 78550Item9 78550Item2 78550Item1 78550Item8 78550Item7 [/ICODE] How am I to sort the items in ascending order based on the digits at the end of the string so after sorting it is like; [ICODE] 78550Item1 78550Item2 78550Item3 …

Member Avatar for raaif
0
1K
Member Avatar for gahhon

i plan to display all of the odd number, and sum all of the odd number. please check with my code, there is something wrong...:) [ICODE]import java.util.Scanner; public class testing { public static void main(String[] args) { int sum = 0; Scanner scan = new Scanner(System.in); System.out.printf("Enter minimum number: "); …

Member Avatar for gahhon
0
186
Member Avatar for csharplearner

Hi all, I am new to C# and i am learning it from home.. so my doubts may seem silly to some of you:( . I am posting here to find some help fr the errors i get.. I am practising namespaces and i keep getting this error when i …

Member Avatar for sailaja reddy
0
852
Member Avatar for suslady

import java.util.Scanner; class Calculator{ public static void main (String [] args) { Scanner suslady = new Scanner(System.in); int fnum, snum, remander, answer; char operation; System.out.print ("Enter 1st # "); fnum = suslady.nextInt(); operation = suslady.nextChar(); System.out.print ("Enter 2nd # "); snum = suslady.nextInt(); if(operation == '+') { answer = fnum …

Member Avatar for suslady
0
287
Member Avatar for AirWave

Hi,everyone. The problem is when I input "m" or "p" or other single input, it gives "ArgumentOutOfRangeException" in the line "int i = Int32.Parse(command.Substring(1, 1));". "if(command.Substring(0, 1) == "r" && i<= numCols)" these kind of condition use when the input like "r1,r2,r3...", then the following method takes number part as …

Member Avatar for kplcjl
0
171
Member Avatar for RenanLazarotto

Hello guys! I'm having such a trouble with editing a image. This is my code: [CODE=C#]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; using System.Drawing.Imaging; namespace Removedor_de_Banners { public partial class Form1 : Form { string caminho = null; int largura = 0; int …

Member Avatar for RenanLazarotto
0
122
Member Avatar for ilovejava

i have to write a program that displays the value of pi for values for i = 10000,20000.....,and 100000 i have to use the following series pi = 4(1-(1/3)+(1/5)-(1/7)+(1/9)-(1/11_+...+(1/(2i +1))-(1/(2i +1)) any ideas i have to do a program with looping i cant use arrays can someone give me a …

Member Avatar for NormR1
0
1K
Member Avatar for atalkingfish

I have a page on my testing site where users can post news. The posting page has a title, link, and body. The link can be left optional. I wanted the page to turn out that if a link was provided, it would make an <a> tag around the title, …

Member Avatar for atalkingfish
0
125
Member Avatar for amear

i have a smile function i want a simple add on it i want to set the limit for replace codes with smiles function smiles($shout){ //This function searches the shout for the smilies and replaces it with the image code. $FileName="lists/smiles.php"; $list = file ($FileName); foreach ($list as $value) { …

Member Avatar for diafol
0
258
Member Avatar for juniorsilver

Hey guys I'ld really appreciate if u can help me with this. I'm building an application that has an access database for storing codes for voters. my problem is that after i update my database with the usual vb codes, i'll have to exit the application before the datagrid view …

Member Avatar for juniorsilver
0
2K
Member Avatar for Cupidvogel

Hi, I installed MySQL from the MySQL site. The setup procedure required me to set an username and password, which I set as X and Y respectively (say). Then when I opened the mySQL command line client, it asked for password, and after providing Y, I was allowed in. Once …

Member Avatar for cereal
0
2K
Member Avatar for thetraeller94

I want my to create an explorer like application. What control should i use to show the contents of a directory. I tried listview and listbox. Unfortunately i was unable to add items in a listview using the function getdirectories("D:\") I managed to do so with listbox control. But how …

Member Avatar for thetraeller94
0
243
Member Avatar for sohiabmaroof

hi all i m facing problem populating jtable with the data of database !m using arraylist to populate jtable .but the problem is that m unable to add databse data into jtables.i m only getting the last row elements of databse. i should be getting this data in the jtables …

Member Avatar for sohiabmaroof
0
192
Member Avatar for Jazerix

Hey there I'm currently going through a guide made by wrox, getting started with a asp.net Anyways, ive stumbled across a problem :( In the tutorial it tell me to access "Profile.Preferences.Theme" however in my Webform, there is no such option This is my current "Web.config" file [CODE] <configuration> <system.web> …

Member Avatar for Jazerix
0
209
Member Avatar for kaosjon

Hi, i am just adding the last component to my registration page, but i am having a little trouble with it. Basically my website includes a referal based system, wherebye when the user signs up they can add a referal that benefits the referal later on. The code i am …

Member Avatar for kaosjon
0
122
Member Avatar for gotboots

Hi all, I have this code that seems to work fine for the order but cant get it to pass the invoice side of things. the trouble im having is when i do the order its fine, but when i do an invoice it sends me back to the order …

Member Avatar for gotboots
0
168
Member Avatar for bipies

Is there any way to execute a wordpress plugin's call tag [CODE][pluginname=parameters] [/CODE] from custom fields? Actually I'm trying with a function and then calling it from the template: [CODE]<?php if ( function_exists('get_custom_field_value') ){ get_custom_field_value('my custom field', true); } ?>[/CODE] but my result is the plugin call tag [CODE][pluginname=parameters][/CODE] . …

Member Avatar for bipies
0
179
Member Avatar for LRNPHP

Hi There, I would like to know if it's possible to use or what I could use to get the required results. The values [code] +2711 081 076 086 080 9011 6547082 9013 9039 9086 9041 +27084 substring(table,length(tbl_code),length(tbl_code))=trim(tbl_code) [/code] I have different values lengths in my MySQL table that's not …

Member Avatar for twiss
0
123

The End.