199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for oldezwe

I've found really good information/tutorials online for writing from my java application to my MySQL database. Can someone direct to one on retrieving information from my database to store as variables in my application? Thanks Peace and love, oldezwe

Member Avatar for pro_learner
0
169
Member Avatar for purpleturtle_97

[CODE] httpRequest parseHttpRqt(char *msg) { httpRequest rtrn; return rtrn; } [/CODE] I was just wondering if anybody could help with parsing a Http Request? I understand that the request is as illustrated below, but how would i turn that into an object containing the code (200/400/404) and the filename? Bearing …

Member Avatar for Adak
0
268
Member Avatar for kgal

Hello, I want to use Hamming Code to correct any BER's that I have streaming from a text file. The contents of my text file are as follows: 0 0 1 0 1 1 0 0 0 1 0 1 1 1 1 1 1 0 0 0 0 1 …

Member Avatar for Adak
0
167
Member Avatar for FlamingClaw
Member Avatar for Morten Brendefu
0
255
Member Avatar for BrickZ28

Hello, I have been beating my head over this issue for almost a week now. I have my pages setup to where the user can register and I can display these members. Here is where it gets fun. Where the applicants are display they are in the rows so that …

Member Avatar for bloodbender
0
164
Member Avatar for datdude07

Hi I'm stumped on how to make this program that I'm working on to output the information to the text file in a nice fashion instead of writing it in a funny way. I basically want this program to output the student record information line by line and organized. The …

Member Avatar for datdude07
0
154
Member Avatar for Daigan

So I was given a code about IO to understand [CODE]// The "FileIO" class. import java.awt.*; import hsa.Console; import java.io.*; public class FileIO { static Console c; // The output console public void writeFile () { PrintWriter output; String fileName; c.println ("Saving a File in Java!"); c.print ("Enter file name: …

Member Avatar for Daigan
0
147
Member Avatar for horsetamer

Hello I am having some trouble here, I created a Microsoft Access dataset (.accdb) It is being used with some listboxes, comboboxes etc. The problem is when I publish the whole thing the datasets do not publish along with it and my program opens but there are not values. Anyone …

Member Avatar for hkdani
0
602
Member Avatar for seto.girl

hi I want my delphi DB that I made to export to excel file how it is possible?and the most important thing is delphi reports that I made I want them to export as excel files ,plz help me !!:(

Member Avatar for Morten Brendefu
0
3K
Member Avatar for sigridish

hi all! i have here a code for browse button [CODE] Private Sub btnbrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnbrowse.Click 'prompt user to select Excel name and folder path Dim openFileDialog1 As System.Windows.Forms.OpenFileDialog openFileDialog1 = New System.Windows.Forms.OpenFileDialog With openFileDialog1 .Title = "Excel Spreadsheet" .FileName = "" .DefaultExt …

Member Avatar for sigridish
0
1K
Member Avatar for kundalish

given a sequence of n elements.increase it by putting after every element the same.for example when you have 1,2,3 the you must increase it by getting 1,1,2,2,3,3.how are i do that using a single array?

Member Avatar for Morten Brendefu
0
161
Member Avatar for nyfan68

I have an assignment on recursion that calls for me to use recursion to find the largest element in an array. I have a general understanding on how recursion works but this problem throws me off because I can't figure out how to correctly implement the getMaximum() function which is …

Member Avatar for NormR1
0
145
Member Avatar for Programmerman

I am trying to access a varible value from a return fuction in another class. Everytime I attempt to access the variable, it returns a null value. This is selecting from a choice control Part of the first class called CheeseBread [CODE]public void itemStateChanged(ItemEvent e) { if(e.getSource() == total1) { …

Member Avatar for NormR1
0
204
Member Avatar for Thermalnuke

Hi, there im a new member, I have a few questions. i am having a problem i am trying tp find words that are related together by one word for example "dous" Tremen[B]dous[/B],stupen[B]dous[/B] ect... I have my code working so that it goes through my text file and picks out …

Member Avatar for Thermalnuke
0
137
Member Avatar for Nekawa

I've looked on the site and I've Google'd this for the past couple days to no avail. Either this is just completely obvious and I'm terrible at programming(I'm new, so this is possible). Anyway, the assignment is to accept two whole numbers that are 512 digits or less. Then we …

Member Avatar for Nekawa
0
2K
Member Avatar for sjgood

I need help with two things.... 1. I would like to lower the speed of the snake. 2. I want to make the screen, snake, and food bigger. I really need to change the speed. The 2nd thing is just something extra. But, I've tried a bunch of little things …

0
102
Member Avatar for begueradj

Hello people I have a 2 dimension array that contains only 0 and 1 values. I want to represent all the 0 elements in a tree: how can I do that ? Thank you for any help

Member Avatar for begueradj
0
98
Member Avatar for bloodbender

Hello Daniweb, I've searched all over including a few threads here on this topic and it looks like I'm running out of options. I'm developing a travel reservations website with a promotional code field on the payment page. The admin wants to be able to create coupon codes with an …

Member Avatar for bloodbender
0
245
Member Avatar for asrockw7

With the likes of the other n2 sorting algorithms like Bubble, Selection, and Insertion which 'worst case' does 18 element compares, or so, on a 10 element array in order to get 2 elements in order, I 'sort of' found one that does this with measly 13 element compares! Though …

Member Avatar for asrockw7
0
126
Member Avatar for cookiejarvus

I'm working on a program for class that uses the method Math.random( ) to generate random integers between 1 and 6. Then generate ten-thousand numbers between 1 and 6. Then calculate the number of 1 that has appeared, the number of 2 that has appeared, and so on. The final …

Member Avatar for teo236
0
339
Member Avatar for Tokenfreak

I am trying to make an expression calculator and it works ok, but only for single digit numbers. I take in the expression in infix notation and then convert it to postfix notation. I just am not sure how to allow it calculate the correct answer with double digits. I …

Member Avatar for mikrosfoititis
0
2K
Member Avatar for lmytilin

[CODE] #include <iostream> #include <string> #include <cctype> #include <iomanip> #define N 36 using namespace std; string EraseWhiteSpaces(string &str_nospaces) { int i; for (int i=0;i<str_nospaces.length();i++) { if (str_nospaces[i]==' '||(str_nospaces[i]=='\t')) { str_nospaces.erase(i,1); i--; } } return str_nospaces; } string ConvertToLowerCase(string &str_lowercase) { int i; for (i=0;i<str_lowercase.length();i++) str_lowercase[i]=tolower(str_lowercase[i]); return str_lowercase; } void SortedFrequences(int …

Member Avatar for mikrosfoititis
0
193
Member Avatar for pelin

Hi. i am trying to create deck of cards for uno game. i need to create draw and undraw functions for each card class. i dont know how to do this.. Thanks !

Member Avatar for pelin
0
6K
Member Avatar for bigredaltoid

[B]Edit2: I realized the title of the thread was misleading after the post was made..it's more like There's 6 lines per student..I need to make a list for each student. So it's 6X..where X is the number of students.[/B] Hi all.. I have a text file that looks like so: …

Member Avatar for bigredaltoid
0
159
Member Avatar for Smith5646

I have a menustrip with several levels of submenus as in below Client 1 [INDENT]Project 1[/INDENT] [INDENT][INDENT]Project 1 Task 1[/INDENT][/INDENT] [INDENT][INDENT]Project 1 Task 2[/INDENT][/INDENT] [INDENT]Project 2[/INDENT] [INDENT][INDENT]Project 2 Task 1[/INDENT][/INDENT] [INDENT][INDENT]Project 2 Task 2[/INDENT][/INDENT] Each entry is clickable, even if it has children. In the above example, I can select …

Member Avatar for Smith5646
0
164
Member Avatar for eblanco1

It is an assignment to create a drink machine simulator. I have a problem with number 3 sprite its not alined with the rest. And i would like to know how to add special characters to add borders around the menu and create a table. [CODE]#include <iostream> #include <string> #include …

Member Avatar for eblanco1
0
247
Member Avatar for skracer13

Hello everyone, I'm new to Java. I found this site and the members to have a lot of knowledge and was hoping I can get some assistance. I have written this 2D array code to find the lowest value in each row and return the values. "getLowestInRow" is the method …

Member Avatar for hfx642
0
163
Member Avatar for lcfjoertoft

First I tried getting a SQL query into an array, and then mail it. Made the data incomprehendable. So someone told me to use CSS to build a table format, filling it with the array. A LOT of hard work (since I had to learn css all the way from …

Member Avatar for Unhnd_Exception
0
930
Member Avatar for sirlink99

I am writing code that opens notepad, but when I want to write an exclamation mark it throws an error; here is the code I am using to write the exclamation mark. [CODE] robot.keyPress(KeyEvent.VK_EXCLAMATION_MARK); robot.keyRelease(KeyEvent.VK_EXCLAMATION_MARK); [/CODE] Why is it giving me the error?

Member Avatar for JamesCherrill
0
714
Member Avatar for hadeelh30

package ch07_auxiliaryclasses.taxcalculator; import java.awt.*; import javax.swing.*; import java.awt.event.*; public class UPAdvisor extends JFrame implements ActionListener { JButton displayadvice = new JButton("Displayadvice"); JTextField displayadviceTxt = new JTextField(11); JSpinner ucasPointSp = new JSpinner(new SpinnerNumberModel(0,0,180,10)); JRadioButton Degree = new JRadioButton("Degree", true); JRadioButton FoundationDegree = new JRadioButton("Foundation Degree", false); ButtonGroup bg = new ButtonGroup(); …

Member Avatar for NormR1
0
139
Member Avatar for Aamit

Hi, I have index.php on root. Session register using $_session['user'] and redirected to abc/demo.php session not working in directories . but on this location abc/demo.php session not working. is that any [B]setting in php.ini[/B] or anything? Same thing [B]working on local[/B](xampp) [B]but on working on live[/B] server. How to solve …

Member Avatar for diafol
0
191
Member Avatar for PM312

hi i am trying to accepte text in text box only numbers and capital alphabets in keypress event below code is not converting lower case to upper case [CODE]Private Sub Tbx_AcctCode_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Tbx_AcctCode.KeyPress Dim KeyAscii As Short KeyAscii = Asc(e.KeyChar) If KeyAscii >= …

Member Avatar for PM312
0
547
Member Avatar for justmelloyellow

I need to ask the user for 3 dates (mm/dd/yyyy) and then it needs to print the earliest, latest and the average year. I am TERRIBLE at this & am taking the class because I have to. I don't know how to compare dates any other way than how you …

Member Avatar for stultuske
0
222
Member Avatar for HumanBeing86

// Linked list Hi... Below is the codes that I wrote so far... everything is fine but just abit headache on when trying to read the data from the file...and it give me a weird things... my output suppose is like this [CODE]============================================================== No Name/Site Location Weight 01 ThunderStone Russia …

Member Avatar for HumanBeing86
0
126
Member Avatar for regogo

Hi guys ive been working on this mini pokedex program. unfortunately im having a little problem. Im so sleepy right now and I think i need help. [CODE]/* Program Description: a mini pokedex */ import java.util.Scanner; public class Pokedex { public static void printOptions () { System.out.println(" POKEDEX ver 1.0 …

Member Avatar for hiddepolen
0
1K
Member Avatar for zekstein

Hello there, I want to add an entry to the lmhosts file Ex : 123.321.123.321 arg1 #PRE I need a simple code that do that and something that does the nbtstat -R Job because i need to purge it. If i use in cmd nbtstat -R it says something like …

Member Avatar for zekstein
0
143
Member Avatar for minghags

Hello i just want to ask you guys if you can help me with this problem: I need to write an javascript that writes out chess board like table, and that table must include onclick function that changes background color of that cell that is clicked on. I would really …

Member Avatar for hiddepolen
0
279
Member Avatar for Liuhh00

Hey i am wondering if it is possible to have a switch statement in a function that is leading to another switch statement and another switch statement afterwards. Question. Write a program that will give the user the option to select a shape or a three dimensional object. The program …

Member Avatar for Liuhh00
0
1K
Member Avatar for UNDER-18 FG

Hi. I need to develop a C source code that accept all marks and counts the total percentage of the subject "STIV1013". And, based on the total percent obtained, I need to determine the grade acquired for the subject "STIV1013" based on the grade table given. Look below, for a …

Member Avatar for Adak
0
162
Member Avatar for harinath_2007

I am working on j2se bluetooth program which acceps connection from clients or (bluetooth devices). I encountered an runtime exception in my application which says UnsatisfiedLinkError. I googled about it but thought posting here might get an detailed explanation & solution.. The error goes like this.. [CODE]Exception in thread "main" …

Member Avatar for stultuske
0
324
Member Avatar for buzzykerbox

Hello, I'm creating a blackjack game,and would like the function cardToString to return the file name of a card e.g "AceDiamonds.gif" and fill an array called deck,its only returning one card and not filling the array thank you in advance [CODE]<script> var dealer_hand = new Array(); var player_hand = new …

0
84
Member Avatar for smiley4080

Sign(MemberID, MemberName, ActivityID, ActivityName, SessionID, CoachID, CoachName, Day, From, To) The table Sign record the enrolment information of sports club members in sports activities. The information recorded are the the member name, member id, the activity name, the activity id, a session id that is unique within the same activity, …

0
104
Member Avatar for Prisms

Whats up everyone I have a question, but first of all I know how to read a file, write to it and all that good stuff I was wondering how do I manipulate data from one. I want to take this .txt file and compute the gpa by taking the …

Member Avatar for Prisms
0
188
Member Avatar for Despairy

i wrote a program that needs to act like the SHELL in linux everytime the user enters a command the shell needs to get it and do the action by sending a fork child to do so now i read using FGETS and get a char array containing the command …

0
105
Member Avatar for jcAmats

I’m creating a program that displays random lines from a file. I have 8 lines on my text file and after displaying the last/8th random line… it displays [B][I]Segmentation fault[/I][/B] and then terminates the program. The program should display a message saying that there are no lines left to display. …

Member Avatar for jcAmats
0
11K
Member Avatar for rayden150

I cant seem to save these data correctly I have mainly doubles and strings, I am saving these in a .txt file called "autosAudi.txt", I get these weird codes and boxes and sometimes for whatever reason Chinese in my textfields? Here is a example of what appears: [url]http://www.flickr.com/photos/63259070@N06/6449175293[/url] as you …

Member Avatar for hfx642
0
223
Member Avatar for Octet

I am creating a database search and I am having a bit of issue when I want to return to my main menu. I have attempted to use loops with no success, could anyone suggest how I can do this? [code] #include <iostream> #include <fstream> #include <windows.h> #include <string> using …

Member Avatar for Octet
0
303
Member Avatar for eblanco1

Ok I was able to validate user input if the user would enter a larger number or a negative number but how do you validate if the user happens to enter a letter or word, even character i.e % # @, or if the user enters all. How do you …

Member Avatar for Narue
0
589
Member Avatar for David321

I'm supposed to be making an inventory program with a logo. I can get the inventory part working fine in a jframe, and I can get the logo working fine in jpanel, but if I combine them it starts acting really weird. Every time I click a button, it generates …

Member Avatar for JamesCherrill
0
202
Member Avatar for Raik.48

Hello, I have chosen a project of developing a 2d action-adventure game with some rpg elements, in-game puzzles. I have considered developing with C++ and OpenGL. I do not have prior knowledge of these language but I had good grasp on C programming language. For C++ and OpenGL, I have …

Member Avatar for Raik.48
0
462

The End.