43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for JaimeSharp

I am in a bit of trouble with this code it is due tomorrow need pointers the menu is displaying correctly but when i enter a number it locks up have i declared the switch statement wrong or is my menu declared incorrectly also in regards to case 4 it …

Software Development c++
Member Avatar for JaimeSharp
0
124
Member Avatar for Memo..~

hi everyone.. I have this assignment that I should sort whatever I enter in ascending order of the variable a .. I want to know what is wrong with this Thank you all in advance.. [CODE]public void addRecord() { Scanner abc=new Scanner(System.in); System.out.println("Enter the file number "); int a=abc.nextInt(); System.out.println("Enter …

Software Development java linked-list
Member Avatar for s_sridhar
0
111
Member Avatar for leesho

i have this code here which inputs the numbers and then adds them. is there a cheats way i can change it so that it inputs the numbers then puts them into ascending order. [CODE]#include <iostream.h> void getNumber(int &, int); void sum( int, int &); void output(int[ ], int, int); …

Software Development c++
Member Avatar for s_sridhar
0
107
Member Avatar for sajithdil

hey guys i want to know is it possible to take a 3ds max 3d model and show it in a java file?? if so could i have some pointers in the right direction?? thanks a lot its much appreciated!!!

Software Development image java
Member Avatar for sajithdil
0
269
Member Avatar for leesho

[CODE]#include<iostream.h> #include<iomanip.h> using namespace std; float number1, number2, number3; void readThreeNumbers(number1, number2, number3); void sortThreeNumbers(number1, number2, number3); void displayNumbers(number1, number2, number3); int main () { readThreeNumbers(number1, number2, number3); sortThreeNumbers(number1, number2, number3); displayNumbers(number1, number2, number3); } void readThreeNumbers(number1, number2, number3) { cout << "Please enter three floating-point numbers, space between them: …

Software Development c++ ios
Member Avatar for leesho
0
184
Member Avatar for mitch9654

My custom button thing isn't clickable. I don't know why! (obviously :P) I DO have an action listener This make a button that looks like a cross. The input is: [code] "name", g, 0, 0, 100, 100 [/code] It looks like this: [url]http://mitch9654.zymichost.com/Java/index.html[/url] [code]package Buttons; import java.awt.*; /** * * …

Software Development java
Member Avatar for mitch9654
0
132
Member Avatar for DeadSoul

Hello friends i have spend a week to make a notepad.But i have one error in it i dont know where i am wrong . i am not able to add JFileChooser in my notepad i have JFileChooser in my code but its not working properly that's why i have …

Software Development java java-swing window-manager
Member Avatar for leiger
0
164
Member Avatar for z3r0acidk

Hey all, I need help with this. I have a .txt file, called "littlefile.txt", inside that .txt there is text of course and my java program is supposed to read that text (as a String), and find a word like ... "hello", ... that's ok, but the java program must …

Software Development java
Member Avatar for z3r0acidk
0
152
Member Avatar for Tech B

I'm revisiting an old IR tracking project, and want to use it in a blender game. I would like to know if anyone could help optimize the parsing algorithm or tell me an easier way to track multiple points with code. "im" is an instance of an image I captured …

Software Development algorithm python webcam
Member Avatar for TrustyTony
0
234
Member Avatar for Ap0ca1ypse

Evening, I have built a program with full SQL functionality (from pulling to adding etc). I am using stored proceedures for the SQL queries. I seem to have a problem when adding / updating a SQL VARCHAR column when the item being added / updated has a space (ie 'Add …

Software Development sql
Member Avatar for Ap0ca1ypse
0
177
Member Avatar for eng hassan

i want the charcter i display in the grid to move upwards when i press 'w' & downwards when i press's' & right when in press'd' & left when i press 'a',,,,i have written a code that doesnt work can anyone help me to find out what is the wrong …

Software Development c++
Member Avatar for eng hassan
0
116
Member Avatar for zachattack05

I have a timer that runs a SQL query every 30 seconds to retrieve updated information. Unfortunately every time the query runs the vertical scroll bar resets to the top most part of the form. I tried [CODE=c#] int scrollPosition = this.VerticalScroll.Value; [/CODE] at the beginning of the timer code …

Software Development
Member Avatar for zachattack05
0
4K
Member Avatar for Peacer

This code is for a friend's WinMo application, but the problem is when he calls a method it resets all of the array's values to 0, but it isn't the code within the method that does it but the act of calling the method. double[] enPosX = { 0, 0, …

Software Development
Member Avatar for nick.crane
0
186
Member Avatar for MrBlack

[CODE] int i=5; i.ToString(); [/CODE] AND [CODE] int i=5; Object obj=i; obj.ToString(); [/CODE] I see this code in a c# book but i didnt understand this code, i got the meaning of boxing that mean Boxing allows value types to be implicitly treated like objects, plz explain those 2 code …

Software Development
Member Avatar for MrBlack
0
149
Member Avatar for navaidstech

I don't recall ever having trouble using a similar procedure in the past but for some reason this one is giving me tons of trouble. Everytime it gets executed, it fires "Object doesn't support this property or method" error and I just can't understand why. Here is the snippet [CODE]SelectedEntry …

Software Development sql visual-basic
Member Avatar for navaidstech
0
1K
Member Avatar for sdhawan

hi guys i am trying to fill datagrid from database.I using the following code.Can anyone tell me what am i doing wrong. [code] public Form1() { InitializeComponent(); richTextBox1.Text = "Word: I \nDefinition:"; richTextBox3.Text = "Word: I \nDefinition:"; label2.Text = "Hindi"; dateTimePicker1.Visible = false; SqlDataAdapter dtadp = new SqlDataAdapter(); DataTable dtbl …

Software Development dataset
Member Avatar for sdhawan
0
94
Member Avatar for sdhawan

Hi Guys, I need your help with calendar.I want to know how can i popup calendar when i hit a button(I am using visual studio with c#) and look up that dtae in database. Thanks

Software Development visual-studio
Member Avatar for nick.crane
0
53
Member Avatar for yakshasa

Can anyone please tell me why this returns records in Access SQL pane but not from VB6 using ADO? SELECT LCD.*, LCS.*, LS.*, LMM.*, LPS.si_ElementNumber FROM ((TableLOANContractualDynamic LCD INNER JOIN TableLOANLoanStatic LS ON (LCD.sv_LoanNumber = LS.sv_LoanNumber) AND (LCD.sv_CoNumber = LS.sv_CoNumber)) INNER JOIN TableLOANLoanContractualStatic LCS ON (LCD.sv_LoanNumber = LCS.sv_LoanNumber) AND (LCD.sv_CoNumber …

Software Development visual-basic
Member Avatar for yakshasa
0
117
Member Avatar for iamcreasy

This class when, it is not integrated with the main program, shows the following error....and I have no idea what it is trying to say.. :( :( [code] #include "character.h" Character::Character(DrawEngine *de, int s_index, float x, float y, int lives, char up_key, char down_key, char left_key, char right_key) : Sprite(de, …

Software Development c++ oop
Member Avatar for iamcreasy
0
161
Member Avatar for SoulMazer

Okay, I am writing a script that might be impossible to fully explain in words. Therefore, I am going to come up with an example that shows the same problem, so please do not tell me to simply combine the scripts or anything, as I am unable to. Anyways, I …

Software Development gui python
Member Avatar for SoulMazer
0
125
Member Avatar for carrythe1

Hi, I have a form application that has a number of pictureboxes. As the program runs it changes the pictures in the boxes depending on buttons pressed on the form via a function 'updateGUI'. The program runs for a limited period and eventually i get an error: An unhandled exception …

Software Development c c# c++
Member Avatar for carrythe1
0
1K
Member Avatar for jen5376

Im trying to make a program that generates all the verses of the song "The Twelve Days of Christmas" using recursion (its homework). Ive read what the book says several times, researched online, etc etc. Im not looking for anyone to do the homework for me...I just need some guidance. …

Software Development c++
Member Avatar for jen5376
0
150
Member Avatar for leesho

[CODE]#include<iostream.h> //is used so it will display output to the user and that input can be read from the keyboard #include<iomanip.h> //is used so that the user can format input using namespace std; int main() { int qty1; cout << "Please enter the quantity of Televisions: "<<endl; cin >> qty1; …

Software Development c++ ios
Member Avatar for leesho
0
139
Member Avatar for keshav magge

I am trying to catalog mysql database items in a plone site using python. The function that catalogs the SQL query results takes 2 arguments. First is the item returned by the query (for example Select * from books would return many book objects) and second argument is the string …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for gcardonav

Hi guys: I wrote this simple code to read a series of numbers from a list and then do some simple aremathic with it. I am not certain where the error could be, I read the code upside down and still can understand where the error lies. Any help would …

Software Development c++
Member Avatar for gcardonav
0
139
Member Avatar for sblass92

Goal is to create a simple class that can be used for GUI buttons. My question is how can I define a function variable, and then when constructing a 'button' define which function should be called when clicked. This obviously isn't right, but just to get the idea: [CODE] class …

Software Development c++ gui
Member Avatar for Aranarth
0
160
Member Avatar for Ral78

I'm working on a program that will get a list of words from the user and rearrange it in alphabetical order. So far it works but I think it may have some memory issues because I was testing an alternative way of asking the user how many arrays will be …

Software Development c++ motherboards-cpu-ram
Member Avatar for Ral78
0
150
Member Avatar for Kanoisa

Heya Thanks for taking the time to look at this, i would like some people to review my curent project which is written in c++ using visual studio 2008. Although in VS08 it does not use anything that makes it dependant on it (i dont think) i just wanted to …

Software Development c++ linked-list visual-studio
Member Avatar for Kanoisa
0
170
Member Avatar for JOSheaIV

Okay so I have a datagrid view I am trying to build (here is the code so far) [CODE] public partial class employeeAlterForm4 : Form { static readInFileDel2 readInFileCall = new readInFileDel2(readInFileClass2.readInFile2); static Employee [] employeeTempArray; ToolTip tooltip1 = new ToolTip(); Panel panel1 = new Panel(); //-------------------------------------------------------------------------------------- public employeeAlterForm4() { …

Software Development vb.net
Member Avatar for JOSheaIV
0
862
Member Avatar for BastienP

Dear Daniweb Community, Like I've previously explained on an other topic, I'm trying to delete lines of a csv file where the value of a column is equal to a fixed value. In other words I have to check if a specific column value for a line is equal to …

Software Development perl
Member Avatar for d5e5
0
946
Member Avatar for Kingcoder210

I need to know how can I use app path? I have a added Shockwave Flash Object control there in my program. However I have added AxShockwaveFlash1(swfla1) there in my form. I have written code there in Form_Load event so that swfla1 will get flash file(.swf) to play. Form_Load event …

Software Development file-system flash vb.net
Member Avatar for meffe
1
263
Member Avatar for levraheit

the program asks the user to input the number of users who wants to play. i couldn't get the result of players.length individually. each players result should be number of correct answers from the number of questions asked. please help!. [CODE]import java.text.DecimalFormat; import java.util.Random; import javax.swing.*; public class coll { …

Software Development java java-swing
Member Avatar for levraheit
0
105
Member Avatar for spach79

Hi Guys, New to C# and I am struggling with storing a selected item from the array of comboboxes created at the runtime. Can you please help me [U]write the command within the [/U][U]button_Click event [/U]so that it calculates the sum of all selected items from the comboboxes created at …

Software Development
Member Avatar for finito
0
231
Member Avatar for leesho

i have an assignment due for my c++ class where we have to input from the keyboard the quantity and input from the keyboard the stock price. so that it outputs as: Stock Item Quantity Unit Price Total Value ---------------------------------------------- Television 5 368.00 1840.00 Video Recorder 8 268.00 2144.00 Camera …

Software Development c++ ios
Member Avatar for finito
0
169
Member Avatar for sdhawan

hi, i have a rich text box in my application and a save button.Can anyone tell me how to send that text from rich text box to database .Thanks

Software Development
Member Avatar for sdhawan
0
93
Member Avatar for jellybeannn

Can someone please help me in creating an array, I've got a DataTable with 270months columns so I've used a forloop for that. My array has to be the same as C158_Calc but only for 73months. At the moment the array is returnig each element as 0. C158_Calc values are …

Software Development
Member Avatar for Teme64
0
101
Member Avatar for DaveTran

I would like to automatically call a base class method for a class that inherits from the base class. From the extent of my limited knowledge, I know I can do this using base.Method(). [CODE] public abstract class Foo { private int a; private float b; public virtual void Init() …

Software Development
Member Avatar for DaveTran
0
127
Member Avatar for Abdel_eid

Dear friends i just need a web link or an ebook that contains all java built in functions and classes with it's return types and parameters. thanks in advance

Software Development java
Member Avatar for Abdel_eid
0
88
Member Avatar for larsen182

Hi guys:-) I have no experience in programming, and i realise that asking for someone to write an entire programme for me might be a stretch, but unfortunately i havent got any mates that are good at programming. I think the program i need is fairly simple once you know …

Software Development python
Member Avatar for larsen182
0
219
Member Avatar for yasemin

Hi, I have a question regarding a program I'm writing in C. I have a few variables which I would like to assign a random number to. However the sum of all the numbers I assign should equal 1. I have not been able to find a way to do …

Software Development c
Member Avatar for finito
0
99
Member Avatar for staufa

Hi im trying to connect to my database but i dont know why i cant load my jdbc driver: -I've saved the jar file together with the other java files in the same folder called "a" -I used –classpath flag: Windows: "java -classpath .\mysql-connector-java-3.1.8-bin.jar;. LabDB4" but I dont know if …

Software Development java
Member Avatar for peter_budo
0
226
Member Avatar for vanalex

Hello everybody! I need to move the get pointer of a text file at the beginning so i wrote in my program the following line (knowing that in a binary file really works): [code=c]ifstream in; in.open("data.txt", ios::in); in.seekg(0, ios_base::beg); [/code] but...in my text file doesn't really work. Is there a …

Software Development c++ file-system ios
Member Avatar for vanalex
0
226
Member Avatar for vinsbg

pls help me with this one..everything is ok but when i add student and faculty number and then try to list them says "No added students'...:@ This is: main.cpp [code] #include <iostream> #include "Student.h" #include "Course.h" using namespace std; list<CStudent*> students; list<CCourse*> courses; CCourse* findCourse(string name) { CCourse* course = …

Software Development c++ oop
Member Avatar for vinsbg
0
123
Member Avatar for Sandhya212

Hi, I need to make a pairs between array elements. For eg if the sored array I have is [CODE]1 1 1 2 1 4 1 6 2 3 2 5 2 8 2 9 3 7 3 10[/CODE] then I need to pair every element of the 2nd column …

Software Development c++
Member Avatar for Sandhya212
0
245
Member Avatar for bebe11bebe

this is my code - i have three classes and i will post all since i have no idea what i'm doing apparently [CODE]public class OneTwoTest { public static void main(String[] args) { System.out.println("Welcome to One-Two Match!"); Game g = new Game(); g.play(); System.out.println("Thank you for playing."); } // end …

Software Development java
Member Avatar for haseena04
1
3K
Member Avatar for WesFox13

Hello all, I need a bit of help with this program, I need to make my code create a complete binary tree using an array. As well as create a driver class that displays the tree graphically Here is what I have so far with my code Tree Code: [CODE]import …

Software Development java
Member Avatar for WesFox13
0
170
Member Avatar for puppykillaz

I am getting an error message that is quite new to me. I normally can call methods without incident but this time, I saw a new error message. This code is sample coding I am using to see how to fix three of my issues. First Class [CODE] public class …

Software Development java java-swing
Member Avatar for puppykillaz
0
315
Member Avatar for toadzky

I am writing a script to rename and reorganize the mp3 on my iPod. For those who don't know, if you drag and drop your music from the iPod to a computer, there is a crazy F## folder structure and all the names are 4 random characters. I want to …

Software Development python
Member Avatar for TrustyTony
0
185
Member Avatar for avarionist

I'm trying to just use a normal stack and have it pop the numbers in the order stacks normally go but it just keeps popping 28 (or at least from output thats what i see) it should just be pretty straight forward but .... [CODE] #include <iostream> #include <stack> using …

Software Development c++
Member Avatar for avarionist
0
116
Member Avatar for niconico96

Hello. I have a file, with some HTML in it. I would like to make a shell/bash script that moves ALL of the content of that file into ANOTHER HTML file at a CERTAIN line number... Does anyone have any suggestions? If not possible at a certain line, then at …

Software Development file-system shell-scripting
Member Avatar for niconico96
0
158

The End.