199,114 Archived Topics
Remove Filter ![]() | |
Hi there, I am trying to get my head around the bubble sort but I don't seem to get it. Now I have a program written by somebody which performs a bubble sort and I am trying to understand it but no much success. Here is the code: [CODE]#include <iostream> … | |
A user is sending me a data value in a web browser -see below for example. I would like to get this value and use it downstream. I try using [COLOR="Red"]string val = Request.QueryString[X_ACCOUNTID][/COLOR] but it did not work. Any idea on how I can retrieve the value in my … | |
Hi everyone, I'd be grateful for some help please. My problem is this - I am trying to find a way to pass the content of a db search from one page to another page, if that's clear. Each file opens with [code] session_start(); [/code] This is the database search: … | |
Dear All, I am very new to programming and really appreciate if you can help. I am using XCode as editor My code is below: [CODE] int main (int argc, char * const argv[]) { char a[10][25]; char *ptr_a; ptr_a = (char *)a[10][25]; for (int index = 1; index < … | |
I've written the code already, and it compiles, but gets the following runtime exception: [COLOR="Red"]java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:595) at threads.ThreadStarter.run(ThreadStarter.java:52) at java.lang.Thread.run(Thread.java:619)[/COLOR] I've higlighted the line that throws the exception. I have no idea what's wrong, my knowledge in threads is sadly lacking. If anyone could help me out it would … | |
Hey, I am trying to use this program, it is supposed to ask one multiple choice question of the user and get the response. For some reason it will not work for me. I am using Ready to Program by HoltSoft. Please help me. [CODE]import java.awt.*; import java.applet.*; import java.io.*; … | |
I'm looking for a solution. I am developing a "user profile" php file which will render to the current user their profile information. The info rendered and seperated into different divs (styled with css) will be in the form of html/php. However, if no information exists in a specific field … | |
I'm working on an add-on system, which is till now going pretty good. no I need to assign an id to a menu item, but I don't know which are all in use (by other addons f.e.) so is there a way to either: -get a random integer that isn't … | |
I have been working on a form that reads records from a SQL database. I have the binding working in that it populates all of the fields with the correct data. But if I am viewing record 1 and record 2 changes while I'm looking at 1, then browse to … | |
ok, so i have an int[][] that i need to be printed out into a file. it needs to be printed line by line with each number seperated by a comma. how does this look? im not getting any output... [CODE]import java.io.*; import java.util.*; public class TestingII { public static … | |
Hi I've been trying to solve the following problem for a few days but everytime I get the error msg even when the entered value doesn't conflict with the statement. Plz I need an urgent help I have the following tables: [B]booking[/B] bookingId (PK) subjectId (FK) [B]Subject[/B] subjectId (PK) termId … | |
I tried making a Java desktop application to learn Java. So far, a mouse click event draws rectangles in the document and stores the rectangle in an array in ProjectApp.java. This isn't the problem but my rectangles disappear when I minimize and maximize the window. I normally use VS C++ … | |
Is there anything im doing wrong? [code] void SaveProxies() { string[] items = new string[Proxies.Items.Count]; Proxies.Items.CopyTo(items, 0); string saveValue = string.Join(",", items); Share_Cash_Downloader_v0._2._9._5.Properties.Settings.Default.Proxies = saveValue; } void LoadProxies() { string[] items = Share_Cash_Downloader_v0._2._9._5.Properties.Settings.Default.Last.Split(','); foreach (string str in items) Proxies.Items.Add(str); } [/code] I use LoadProxies to load the save, from the … | |
Hi, I want to search the log file for a string and extract all data until the end of that line where the search string is found. For example: A line in the file reads like below: [28/04/2010 11:17:53 GMT]PositionPoolCalculation.java(339):getPosCalculation[INFO]BUNP: B123456:1234567:ABCD ANP: B123456:1234567:ABCD:2 post LCN: DESabcdefgh I want to search … | |
![]() | Hello all, I am new to java and programming. You will be able to tell that by my post. I have a program that needs to take info from my textField and store it in an 2d array. Then do calculations and output the calculated data into a textArea. So … |
Hello there, I am working on pylon frame work, when i am issuing return render('/test.mako'), it is displaying index out of renge error. Plz Reply to this post if u have any idea in this. Thanks ss | |
I'm writing a program that reads information from three seperate classes. Here is my code: [CODE] public class Animal { protected int id; protected String type; protected double mass; //------------------------------------------------------------------------ // Sets up an animal with the specified ID number, type and weight. //------------------------------------------------------------------------ public Animal (int animalID, String animalType, … | |
when I try to compile a program, an error of the following comes up: cc -Aa -g -c -o main.o main.c <command-line>: error: missing '(' after predicate make: *** [main.o] Error 1 it indicate no line of where the error is located. has anyone ever came across this type of … | |
Ok, so I'm trying to write an emulator for a simple processor architecture and I've ran into a strange problem. I decided to read the input code once through to see how many lines there were, then set up an array of that length, and then go through the file … | |
I'm having a problem changing an abstract class to an interface. I changed the abstract class (Bounceable) to an interface but I'm not sure what I need to do with the concrete classes (Tennisball, Basketball) that implement the interface. The change to an interface is also affecting the output test … | |
I'm doing a web application for one of my projects in my computer class. I have been using Apache 6.0 as my server and SQL for my database. I'm am having trouble with getting my create form which is in the view form to save with is controlled by my … | |
i want to know what is the code written in header files.(how a functions works) is that possible for e.g. i created my own version of [U]sqrt[/U] function in .C now i want to know the difference b/w my code and sqrt function code. i want to check how efficiently … | |
Hi there? Can anyone plz tell me that how to connect html forms/pages to m.soft acess database? | |
Hi i need someone to help me at least to give me an idea of how start thos assigment, is my first time taking a python class and is so advance for 1 month. I have to create a board game connect 4 with this instructions: The rules are as … | |
Hi, Can anyone please help me in making a program that runs like a boot loader in assembly language. Here is what I am trying to do- I have three program files 1.asm 2.asm 3.asm I want to start the bootloader program such that when it starts up,it gives me … | |
Hello, I'm playing around with recursive loops in order to better understand how to iterate though directories. I've used the .Net methods 'GetDirectories("*.*", SearchOption.AllDirectories)' in 'foreach' loops to iterate through the file system but many examples i've seen use recursion techniques to do the same thing. So knowing nothing of … | |
Why I can't get this program complied ? I am geting " 20 expected unqualified-id before '{' token " [code] #include <iostream> using namespace std ; int answer(int num[] ,int num ); main () { int ary[10] ; cout << " Please Enter 10 integer values" << endl ; for … | |
I created a JApplet game for a class project. My game is basically a dodge-ball game. I have 5 dodgeballs bouncing around the screen with a player starting in the middle. The object is to mouse drag the player dodging all of the balls bouncing. The problem I am having … | |
I am having an issue with cfselect. When I submit the form, I don't get a value from my 2nd cfselect. I am binding. I do get a value from the first select, but the second select does not exist in form data. I do get values from this form … | |
I just copied and pasted all the things that has been happening from the shell here: [CODE]lin309-05:~/workspace/acm$ gdb a.out GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute … | |
Hello, I am fairly new to programming, so any help would be much appreciated. Basically this program gets a file with the contents like: hello one one Tt then sorts these into a binary tree, i can do that fine, however what i am struggling with is converting this to … | |
Hai, I wrote the code of a user registration script , everything working fine with out the log out page.... I used the header function to goto the another page when visitor hits "Logout" button. And now the problem is when press the 'Back" button of the browser then we … | |
Hi guys! I have a problem calling the numpy.random.hypergeometric function with certain values. It seems like if the values hit in some certain range the program stalls and never finishes. I get no errors or anything and also a wxpython GUI that i have calling this function crashes with no … | |
Hi, I need to search 3 different servers and list the output of the directories to a specific file for each server. I understand how declare the constant(s) but unsure of how to iterate through all of the constants and list the file output. Any ideas would be helpful. Perlnewbe … | |
[CODE]/* This program reads a test score, calculates the letter grade for the score, and prints the grade. */ #include <iostream> using namespace std; char studentScore (int score); int main () { cout << "Enter the test score (0-100): "; int score; cin >> score; char grade = studentScore (grade); … | |
hey, i have a problem in adding data from MS SQL(mdf file) database to datagrid view: the code is below please can someone help me with this. C# Syntax [CODE] db.openConnection(); String query4 = @"Select TActionDes,TAssignedTo,TDueDate,TStatus,TDateComplete,TComment From TopicAction Where TopicNo = @topicNo and Phase = @phase"; SqlCommand command4 = new … | |
Greetings again I have a small utility that reports which printer port has been selected. Its returning the correct data, but in binary, LPT 1 = 0x378 = 888 Right now its reports in the message box "Printer Port 888" I would like to change that to read "Printer Port … | |
How can i add a executable program to my program and run the executeable file in to my program and the program starts with my program :cry: The shape like this ; [CODE] **************************+---+ * My Prog v.0.01 | | --------------------------+--\\ * *\\ * +---------------------+ * \\ * |The Prog … | |
hi, i try to write a word doc at runtime through bookmark and it work in local system. But "COM" was not working in Linux server.. pls give me some other code to do this operation. i search in google but i cant find the exact code.. Thanks Kumar. | |
Hi all, I'm need to devise a server-side method of preventing multiple form submissions. The form is submitted to the same page. I have read about generating a unique value in a session and insert a hidden input field to detect multiple submits, but would this work with a same-page … | |
Hi, When I try to connect a jsp page with MS Access database, it gives an error "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified " What does that means? | |
Hey guys, I am having a problem. When loadPref is executed, it opens, reads, and saves properly. But it crashes shortly after when the system call system("cls") happens. I do not understand why, any help? I removed most of the code that is not involved. Tests / Outcomes Removing loadPref … | |
Hi i have a simple custom member ship provider: Can anyone help me with a simple if statement or switch case where i can route administrators to one page and users to another? I am currently using the asp.net login controls and dont see how i can specify two different … | |
Hi all, Im wanting to have an "upload picture" button, that on clicking will upload the picture into a directory, but then capture only the filename of the picture to be stored in the database. This is for creating a catalogue entry. Im fine with the form information and disabling … | |
I am working on a simple program, and i am using Visual C++ Express Edition. Everything is fine, i am processing the integers and i am copying them into an integer array. But the problem is when i m trying to access that integer array for further processing or to … | |
Hi all..need a little help from u all. i have created a windows application using vb.net wht i want to do is create a windows service for this application so that it can be started automatically or manually and started and stopped on demand. i have gone thr some forums … | |
[QUOTE=peter_budo;695619]Not enough that you opened thread that is 4 years old, you did not bother to read [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]forum rules[/URL] (hijacking thread, no emails in the post) you also did not even consider to read sticky thread "[URL="http://www.daniweb.com/forums/announcement9-2.html"]We only give homework help to those who show effort[/URL]". On top of all … | |
i got a problem. i want to have 3 forms and both linked..i.e you can access all of them.the first to be a log in form, which when you have entered the correct user name and password,it lets you to the second form.the second and third are just forms to … | |
hi, how can i valiadte each cell in a datagrid view seperately, i have one column int which is the 7th column and the 3rd and the 5th are calender control and the first two are combo boxes, and a check box column Question 1: how can i select on … | |
Hi, i want to write a program that will automate my backup on a windows using python but i have no idea how to get started. can someone please point me to the right direction. thanks in advance |
The End.