64,152 Solved Topics
Remove Filter ![]() | |
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){ … | |
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 … | |
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 … | |
what is mean by delaysigning in assembly..when we use it in c# .net | |
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 … | |
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). … | |
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 … | |
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 … | |
i couldnt manage to change system.windows.forms.listbox item color, do you know how to do that? thanks. | |
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 … | |
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 … | |
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 … | |
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 … | |
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... … | |
any one please help me, i want to know how to swap two variables say, a and b with out using a third vaiable | |
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 … | |
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] | |
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 … | |
[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 … | |
![]() | 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 … |
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 … | |
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 … | |
[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 … | |
[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); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 { … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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] … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hi all.. I'am newbie in java programming.. I need help to compare two images in java... Plss help me.. Thx for your appreciates.. ^^ | |
![]() | 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! |
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 … | |
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 … | |
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 … | |
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 … | |
The End.