64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ahspats

so my program has to read data from text file and pass it to the function. text file contains integer and string in every line. it looks like this: 23456 john 96512 martin 56985 wendy i've written it in C using this code: while (fscanf(filestream, "%d%s", &key, &value) == 2){ …

Member Avatar for csurfer
0
163
Member Avatar for max.yevs

Ok, so this is kind of a complicated question... but... Ok so I have a python script, you enter some numbers it gives you some numbers back that sort of thing. But of course right now it just looks like a black window with text. kind of like [URL="http://blog.benhall.me.uk/images/InstallingWindows2008EnterpriseCoreServe_F3A1/6Cmd.jpg"]this.[/URL] But …

Member Avatar for vegaseat
0
150
Member Avatar for DevC++4.9.9.2

Hello, I am trying to create a program to stress test a website, I am using a counter on the page to see how many "clicks" have been made to this website. Currently i am using HttpWebRequest to make a connection to the site and then end it. However this …

Member Avatar for DevC++4.9.9.2
0
246
Member Avatar for sivak
Member Avatar for sknake
0
133
Member Avatar for kkemerait

I have reduced the problem to the smallest code required to reproduce it. It consists of a menu using an unsorted list <ul> in my MasterPage.master file with some css in the stylesheet.css (there are images referenced in the code, but not required to see the problem). Here is what …

Member Avatar for sknake
0
87
Member Avatar for BestJewSinceJC

In one View, I have text boxes and buttons. In the other View, I have a Pie Graph that I created using JFreeChart. When the button is clicked, I want the Pie Graph to be refreshed, displaying the new percentages (based on what the user entered in the text boxes). …

0
58
Member Avatar for morb

Hi everyone! I'm writing trojan/virus for educational purposes only. That is my final practical work. The problem is that i need to fire up a .vbs file from disk.To do that i need path. How to find path and save it to string variable. Even bigger problem is how to …

Member Avatar for morb
0
101
Member Avatar for gretty

Hi I am making a rock, paper scissors game for fun & for practice. My problem is; I am trying to create a string by adding 2 character variables together. How do I do this? Do I use the insert function? Or something I think is called crstrt or something …

Member Avatar for jephthah
0
703
Member Avatar for serkan sendur

i couldnt manage to change system.windows.forms.listbox item color, do you know how to do that? thanks.

Member Avatar for serkan sendur
0
2K
Member Avatar for clisen

Hey everyone, I'm relatively new to C++, cant seem to find a solution to my problem. I'm trying to randomly generate an array of class objects. I'm using rand() to generate a number 1-3, for the number of objects to generate. For some reason when I use: [code] int c_gen …

Member Avatar for clisen
0
185
Member Avatar for cmhampton

I recently updated our servers to CF 8.0.1 and now none of my AJAX code works. I checked the XHR response in Firebug and instead of returning the requested data, it returns the HTML code for my site's home page. All of this was working before the update and I …

Member Avatar for cmhampton
0
103
Member Avatar for ramesh_natesan

Using vbscript I want to create a runtime html login page on the fly. The html page should have username/pasword form and I will use this username/password to connect to a sql database. Is there a way to create this runtimehtml page using vbscript and them collect the username/password from …

Member Avatar for raman242001
0
355
Member Avatar for tintincute

Hi I'm designing a code where one can guess the Magic Number. In my code I have this part here where I declared the randomNumber after the class Form1. (the green mark below). Can somebody tell me what's the name of this part here? Is it static variable? And what …

Member Avatar for kvprajapati
0
79
Member Avatar for websurfer

Hi all: I have this slight problem, where I have a list of months with amounts that need to be updated, but I always need to enter "0.0" in order for my field to be updated properly; but if I just enter "0" it doesnt take it and remains empty... …

Member Avatar for Atli
0
269
Member Avatar for elanorejoseph

any one please help me, i want to know how to swap two variables say, a and b with out using a third vaiable

Member Avatar for elanorejoseph
0
102
Member Avatar for rabbitwat2

Hello Everybody, I am working on a project and i want to compose one main string out of several substrings in C. for example: I have 3 variables: Float Vx=1,66 Float Vy=1.55 Float Vz=2.3 My first step is to convert them to character arrays usin snprintf. Then i want to …

Member Avatar for rabbitwat2
0
158
Member Avatar for furqan219

Hi, How I can Export PHP Result which shown in table to excel using a Export Button on the Same Page. [B][COLOR="Green"]:) [/COLOR][/B]

Member Avatar for chrishea
0
559
Member Avatar for kingarthur

Hi over there, is it possible to execute several SQL Statements with one(!) command? For example something like that: [code] Statement s = con.createStatement(); sql= "CREATE DATABASE MeineDb+ SHOW databases+ USE MeineDb+ CREATE TABLE MeineTestTabelle ( i INT, c CHAR(3), s VARCHAR(8), dt DATE )+ CREATE TABLE MeineAdressen ( Name …

Member Avatar for kingarthur
0
136
Member Avatar for lloydsbackyard

[code=java]import java.io.*; public class bonus{ public static InputStreamReader reader=new InputStreamReader(System.in); public static BufferedReader input=new BufferedReader(reader); public static void main(String[] args) throws Exception{ double salary,bonus; System.out.println("Enter Employee's Monthly Salary: "); salary=Double.parseDouble(input.readLine()); if(salary>=6000){ System.out.println("The bonus is 6000"); } else { bonus=salary*.5; System.out.println("The bonus is "+bonus); } } } } // It only …

Member Avatar for masijade
0
141
Member Avatar for lazlo2000

I am using vb 6.0 I am fairly new to VB, my question is: On my main form I have a command button that has 40 procedures and it loops through them about 1,000 times and then exits. Nothing is passed and all of the variables are private. I have …

Member Avatar for vb5prgrmr
0
91
Member Avatar for max.yevs

this is another pretty simple question, but i've been trying to do it, and cant get it basically what i need is pretty simple, its like say you have a list of 5 numbers. now you need to print out all the lists of possible 3 numbers from those 5 …

Member Avatar for max.yevs
0
91
Member Avatar for Web_Sailor

Hi Ezzaral... As per my last problem which is solved. So as I told you that I want to add GradiantPaint. This is the code that I came up with. This code is compling but giving me some runtime errors:. Please find the error report below- [CODE] import java.awt.BorderLayout; import …

Member Avatar for Web_Sailor
0
290
Member Avatar for localp

[code] try { //1.Load the database Driver class Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //2.Make a connection to the database Connection conn = DriverManager.getConnection( "jdbc:odbc:MyDataSource"); Statement stmt = conn.createStatement(); String x = jTextField1.getText().toString(); [COLOR="Red"] String sqll ="UPDATE Patient_Comp SET taken='Taken'WHERE ID="+x ; ResultSet rs = stmt.[COLOR="Green"]executeQuery[/COLOR](sqll);[/COLOR] [/code] This is what i wrote to update a …

Member Avatar for ~s.o.s~
0
261
Member Avatar for lithodora

[URL="http://www.daniweb.com/forums/thread46880.html"]Old Thread on the same topic[/URL] I have tried all kinds of things to resolve the issue. My code even works on another server, but I can not use that one. There is NO whitespace. [code]<? // login.php - login form ?> <script type="text/javascript"> function Usernamevalid(which){ var test = validateusername(which); …

Member Avatar for lithodora
0
148
Member Avatar for max.yevs

im sorry this is kind of a silly question i know, but does anyone know any succesful ways to change a .py into a .exe? like so that someone without python installed on their computer can run it? i've seen this topic in a couple places but everything i've tried …

Member Avatar for max.yevs
0
175
Member Avatar for cmaclennan

Hey guys, Hoping someone can help me out here, I have a query thats pulling essentially an order record from multiple tables, it pulls all of the customer details etc as it should however when the order contains more than 1 part for example instead of just returning 1 set …

0
87
Member Avatar for snyp

hi, i am not really that good at c++. i have created an application which dynamically loads dll's as types of 'plugin' the problem i am trying to overcome is linking back to code in the application from the dll. i am currently within the scope of a function of …

Member Avatar for Ancient Dragon
0
283
Member Avatar for JaksLax

Here is my code: [CODE] #include "Poly.h" int main(){ Poly p; int degree = p.degree(); cout << degree << endl; int coefficient = p.coefficient(5); return 0; } [/CODE] [CODE] #include<iostream> using namespace std; class Poly{ public: Poly(); //constructor int degree(); //Returns the degree of the polynomial int coefficient(int); //Returns the …

Member Avatar for Stinomus
0
117
Member Avatar for stewie griffin

hi, im working on java on some client server project... in the project the client and the server can send files, but im failng to do so, the resiver get only part of the file... here is my code sender: [code] public void uploadByteFile(String fileNameToGet, File fileDst) { try { …

Member Avatar for stewie griffin
0
157
Member Avatar for Merlin33069

so im really getting into the ajax crowd, though i dont strictly use ajax (no xml) i like the functionality of calling server side scripts for dynamic php functions... anyway i have a few images in this form ive made that i would like to be placed correctly let me …

Member Avatar for Merlin33069
0
127
Member Avatar for freelancelote

Hi, I'm having trouble with the following simple test program to extract 10 random numbers from 0 to 5. [CODE=java] import java.util.*; public class TestRandom { public static void main(String[] args) { Random rand = new Random(); for (int i = 0; i < 10; i++) { int j = …

Member Avatar for freelancelote
0
6K
Member Avatar for alexdoc9999

Hello all. I am new to this discussion forum and would greatly appreciate anyone's help on this one. This is a great site!! Thank you all for being here. Here's my problem: I'm working on an application that has a JPanel that is a grid layout with three columns of …

Member Avatar for alexdoc9999
0
117
Member Avatar for designingamy

I really need someone to point me in the right direction. I am building a page where a person can choose what border they want to go around their business information. Once they choose it, the image goes in the database, as well as their info. I'm okay on figuring …

Member Avatar for Atli
0
96
Member Avatar for sonia sardana

Hey frnds, I m comparing two images in VB.Net..I get the code in C# & dat code is working 100 % Correctly..Now want to convert dat code to vb.net..& i need help in just converting two lines- C# EXAMPLE [code] private void Form1_Load(object sender, EventArgs e) { Bitmap img1= new …

Member Avatar for sonia sardana
0
253
Member Avatar for aceswildab1

I'm trying to open a command prompt through the program and then run bcp. Here is the code. System.Diagnostics .Process proc = new System.Diagnostics.Process (); proc.StartInfo.FileName = "bcp"; proc.StartInfo.Arguments = @"select * from dbname" queryout C:\filename.csv -S servername\instance -U sa -P password –N; proc.Start (); On the queryout I get …

Member Avatar for sknake
0
2K
Member Avatar for Isy

I have created a mobile game in netbeans and need to connect to web sevice through Java ME web service client, I get the proxy setting error which does not allow me to connect. Has anyone come-up with this problem?

Member Avatar for Isy
0
78
Member Avatar for SoulMazer

So, I always thought that it was possible to return dictionaries in Python. I was wanting to do this because I would prefer not to use globals. However, I am having trouble with returning my dictionary. Code: [code=python] #!/usr/bin/python # 6/9/09 def loadWords(): pathstart = "/home/foo/Documents/PyScripts/Vocab/Lists/" print "What is the …

Member Avatar for jlm699
0
104
Member Avatar for njparton

I've been tearing my hair out for 2 days over this, hopefully someone here can help me. I'm trying to scrape the price data off the following webpage: [URL="http://www.morningstar.co.uk/UK/snapshot/snapshot.aspx?lang=en-GB&id=F0GBR04S4X"]http://www.morningstar.co.uk/UK/snapshot/snapshot.aspx?lang=en-GB&id=F0GBR04S4X[/URL] The value I want currently stands at 6.19 (i.e. the NAV value on the right hand side). I currently have a …

Member Avatar for njparton
0
202
Member Avatar for Xessa

Hello. I have a web page and i want user to be able to select multiple options. The problem is that when i write [code] <select name="aha"> <option value="hhh">HHH</option> <option value="kkk">KKK</option> <option value="ppp">PPP</option> [/code] There is no problem in my JSP page. But later when i try to write [code] …

Member Avatar for jodin
0
210
Member Avatar for serkan sendur

this is not a question, but a code snippet. i attach the project as well. Form1.cs : [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; namespace copyAllWaveFiles { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void …

Member Avatar for serkan sendur
0
102
Member Avatar for serkan sendur

this is not a question, but an application to find common lines among text files, as long as you click "read new text file" button, it compares it to the listview and removes the uncommon items from the listview. I find this application very useful, hope you will like it …

Member Avatar for serkan sendur
0
267
Member Avatar for serkan sendur

hi, i need to search the text file for lines repeatedly. so i want to read the text file into memory and iterate through lines. i am able to iterate as follows but, for the next search i need to iterate from the beginning which will require data transfer between …

Member Avatar for Mortu
0
176
Member Avatar for Xessa

I want to create a listbox in a jsp page. I want people to be able to choose multiple options... Also i want if one option is selected, people should not select another option. EXAMPLE If b is selected people can select a and c. But if a is selected …

Member Avatar for essential
0
127
Member Avatar for daniel_ahuk

Hi all.. I'am newbie in java programming.. I need help to compare two images in java... Plss help me.. Thx for your appreciates.. ^^

Member Avatar for BinodSuman
0
201
Member Avatar for sravan953

Can somebody tell me the code for: a-(a^3(power of 3)/a)+a^5/a-a^7/7........n The code has to contain only for, if, while and other basic statements....please help me!

Member Avatar for javaAddict
0
86
Member Avatar for lexusdominus

Hey. I have to say this is the first time ive been totally stumped by c++. I cant exit this loop. this code is from a function that takes a string filename, an int mode, and a char print. It takes a textfile looking like this: somesite.netinfoaboutsomesite someothersite.orgdataonsomeothersite yetanotherrandomsite.edurandomchars and …

Member Avatar for lexusdominus
0
142
Member Avatar for gnobber

Hi, im just beginning c++ and been reading regarding cin and cout. After reading the chapter, I just got curious what acually a stream is. It is said in some as a series of characters. In a site: "A stream is an abstraction that represents a device on which input …

Member Avatar for sai sushma
0
154
Member Avatar for scru

Hi, I suck at math. I've been working a 2d (yes 2d) library lately at it's been making my head spin. The terminology, the equations, all of it. What I want to do is get good at math, or at least stop sucking. Does anybody know a good book a …

Member Avatar for certifmix123
0
257
Member Avatar for rouse

I was looking at the JQuery for absolute beginner instructional video where I was shown how to add and remove an item for an unordered list. The demo assumed that you had one unordered list on a page. I tried to create a demo where there are two unordered list …

Member Avatar for chridam
0
150
Member Avatar for furqan219

The End.