132,726 Archived Topics
Remove Filter ![]() | |
Hey all, I have a question how would I go about perform a comparion for two boxes. I would have to find the length, width, and height of both boxes and compare the volume of them to see which box would have be larger. Software Development c++ | |
I'm creating a game and I want to incorporate a gif of a running man when the user uses the arrow keys etc. I'm currently trying to use wxpython and I have code that allows it to be played in a small separate window, but I need to know how … | |
friends i create mfc application and create two table -same database,same content. ex:table content(table 1,table 1) employee id,employee name,department,salary,mobile no. now i view data from table 1 and that data to insert on table 2. i doing many way,but i didnt done.please any one can help me? this operation only … | |
I am having troubles figuring out how to extract a minimum and maximum number from an Array. This program allows a user to input up to 12 assignment grades and then my array gathers those grades and displays them in the output box. I just also am required to display … Software Development | |
I have a orpaned case error and im not sure where i am missing anything. Probably just needs another set of eyes to find it. thank you in advance Here is the error code : C:\Users\winte497\Documents\FSMValue.java:109: orphaned case case 6: if ((ch >= '0') && (ch <= '9')) Here is … Software Development java | |
hello every body, I am a new prog.in C.My final yr project based on incrementing ipv6 address by 1.The address format is - fe80:0000:0000:0000:0204:61ff:fe9d:ffff So the result will be - fe80:0000:0000:0000:0204:61ff:fe9e:0000 User enter the valid ipv6 address and final result will be +1 incremented.Its a incrementation of hex.value. It also … Software Development c | |
An array is defined to be double sorted if its even-valued elements (if any) are in ascending order and its odd-valued elements (if any) are in ascending order. The array {-6, 12, 1, 24, 3, 5} is double sorted because the even-valued elements (-6, 12, 24) are in ascending order … Software Development | |
I need to clear the output console buffer from within java on a windows console. I was thinking of a batch call to "cls" how can this be achieved? [CODE]public static void cls(){ //clear the screen pretty please! }[/CODE] Software Development java | |
Hey guys! So, created a File Chooser that gets a picture. And I want the program to display the picture on the jFrame. How can I accomplish this? I'm using NetBeans, and I'm still kinda new to it :P Thanks guys! :D Here's my code: [code] import java.awt.image.BufferedImage; import javax.imageio.ImageIO; … Software Development display java java-netbeans java-swing oracle | |
Hey, I've been recently coding a java program for the High Low dice game. I'm absolutely sure of my logic in that I know what i have to do, it's just executing it. Methods and how to call them are my main crux. I'm stumped at the moment, and I'm … Software Development java | |
Hi guys, I have a total of 72 link labels on a form and I want them to do a similar task. Is there a way to accomplishing this without writing each labels individual code? Example function of the link label [CODE] Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e … | |
Hi, DaniWeb forum members! I am an above-amateur programmer and this is my first more complex SDL-based program. I am trying to make the menu of a game, but SDL cannot capture the key presses when a single key was pressed. I use only UP and DOWN arrows, in this … Software Development c++ visual-studio | |
So, Ive created a UI in console. No questions as to why. But anyways, It used to be just a simple array, but I decided to make it with vectors both to improve my skill with them, and to make its size dynamic. Dont mind the mess of code here. … | |
Hi, I am suppose to run a for loop into an array of 26, 6 times. The point is to gather the six largest numbers and put them in ascending order. I have been trying everything for this and cannot come up with a solution. The directions I am given … Software Development java | |
I have a snippet of code that's 37 lines long, I can't, for the life of me, seem to get it working. It compiles fine, no errors, I've had 2 friends run through it and nothing, is it just an issue with my compiler(CodeBlocks)? Long story short I really just … Software Development c++ | |
![]() | Hello people I have a JFrame which container is a JPanel: can you give me a piece of code that shows how to create a grid of rectangles ? I need this information for my poject Thank you Software Development java java-swing ![]() |
Hi, DaniWeb I'm having problems with the insert: (This is the login code, i can't open the register form) [CODE] Imports MySql.Data.MySqlClient Public Class Login Dim server As String = "Server=localhost;Database=escola_musica;Uid=root;Pwd=;" 'Dim server As String = "Server=localhost;Database=esola_musica;Uid=root;Pwd=;" Dim con As New MySqlConnection Dim da As New MySqlDataAdapter Dim sql As … | |
i want to be able to treat contents of a file as an array and traverse through it that way without having to store them in an array,can i do that?if so how? Software Development perl | |
Hi, I want to declare an array of constant values in my header file, and this array cannot be changed in the main code. const uchar x[4] = {1, 2, 3, 4} does not work, cos the linker will complain that the address space overflow. Is there any way to … Software Development c | |
Hi all, I have a datagridview with a set of rows which look like [CODE] no. name value 1 X 1 2 X 1 3 X 2 4 Y 1 5 Y 1 [/CODE] Now I want to filter the datagridview by value with respective to name and show only … Software Development | |
I get the error "Error 1(E4) "end." or implementation section members (types or methods) expected." Nowhere on the internet I can find information about this error. I get this error because of this line of the AssemblyInfo.pas file: Implementation SomeMethod(); end. I work in Delphi Prism. Software Development delphi | |
I have an array [x,y] where the values of x is ascending and the y values are random. I would like to sum all of the y values together when the x values are within a certain range. I can't show you any code as i dont even know where … Software Development mathematics python | |
For example on any tinyurl/ajdeijad link (this one is fake), the link redirects to another url I cant grab the whole response because it is 200 MB- what can I do to JUST GET THE URL Here is my code: [code] Dim request1 As HttpWebRequest = DirectCast(HttpWebRequest.Create(urlvimeohd), HttpWebRequest) request1.UserAgent = … Software Development vb.net | |
Hello I am having an issue with syntax. I have: [CODE]wxLegendWindow::wxLegendWindow( wxWindow *parent) : wxWindow(parent, -1, wxDefaultPosition, wxSize(LEGEND_WIDTH,LEGEND_HEIGHT)) m_WinParent(parent)[/CODE] and when I compile I get: [CODE]C:\codeblocks-10.05-release\src\plugins\contrib\wxSmithContribItems\wxchart\wxchart-1.0\src\legendwindow.cpp|50|error: expected '{' before 'm_WinParent'|[/CODE] The code I originally started with was: [CODE]wxLegendWindow::wxLegendWindow( wxWindow *parent ): wxWindow(parent, -1, wxDefaultPosition, wxSize(LEGEND_WIDTH, LEGEND_HEIGHT)/*, wxSIMPLE_BORDER*/), m_WinParent(parent) [/CODE] However … Software Development c++ | |
![]() | The code I pasted is for a school assignment where we have to calculate the monthly payment for 3 different loans, with varying interest rates, and then display some information about each payment for each of the 3 loans. My code compiles and runs fine (not finished commenting all the … Software Development java ![]() |
Okey , This is suppose to be a chat and server program and I am down to the last part but I cant seem to figure this out. I Use the JtextField to get the Input from the user and it is suppose to hold it until the sent button … | |
Hello daniweb chums I once again cannot seems to get a simple bit of text box validation working I am trying to detect if a first name entered contains a number by converting the text box text into a char array and then convert each character entered (using a for … Software Development | |
Can I add number's up in a column in listview? Thanks Experts, Kanyonb38 Software Development listview visual-basic | |
Hi guys, Could some one please help me in validating a datagrid coloumn..,i want only alphanumeric values.,symbols like -,+..etc were not allowed..folliwing is the code wht i have.,but it allows only alphabets but not numerals.. [CODE] If Char.IsDigit(e.KeyChar) Or Asc(e.KeyChar) = 8 Or Asc(e.KeyChar) = 46 Then If Asc(e.KeyChar) = … Software Development vb.net | |
Hi Friends, I need ur help..I have finished my proejct in vb.net with access database. could u please help me in making an exe for this with database.. please help.. Software Development vb.net | |
Hello everyone! Once again I need some help on this program. I need to write a program that reads integers, finds the largest of them, and counts how many times that number occurs. The program should end when 0 is input. My teacher gave us a hint, incase this helps … Software Development java | |
Hi all I've recently written a program that writes and then runs batch files based on whether or not a checkbox was checked (e.g. there was a list of software with a checkbox for each one). In terms of logic, there was an if loop for an 'Install' button that … | |
I've gotten the basics of insertion code but I'm stuck on how to compare it with another condition other then (list by A-Z, Z-A) for the example a list of staff ranks were given : [CODE] public static final String[] staffrank = { "Trainee", "Junior", "Senior", "Administrator", }; [/CODE] I … Software Development java | |
Hello, I created a simple number guessing game which thinks of a secret number from 1 to 100. It tells the user if his guess is high or low and finally stops after the secret number is equal to the user's input, it also notes down the number of tries. … | |
please tell me the answer of this question.it is irritating me a lot. i have searched many books but not getting it.please help!! Software Development c | |
I made a program to find primes, but it can't find any prime less that 7(e.g. 2, 3, 5) any ideas? [CODE]import math from math import sqrt x = 1 y = raw_input("What number do you wish to find all the primes below? ") y = int(y) while x < … Software Development mathematics python | |
Hello. I have a piece of code currently where I have a JFrame that I have removed the title bar and borders etc from using .setUndecorated(true). I have tried a number of ways with no success to make this window draggable by it's client area. [CODE] JFrame f = new … Software Development client-server java java-swing mathematics | |
I'm having the hardest time figuring out why my password check loop won't exit after excepting valid input. Can someone help? [CODE]#include <iostream> #include <vector> #include <string> using namespace std; int main( ) { vector<string> credentials; string login; string userName; string password; string CheckPassword (string password); cout << "Enter user … Software Development c++ | |
I was given a client and server and I have to create a gui for it. I have done the entering part using the JTextField and the problem is getting the output of the class to go to JTextArea. (Its a Client server simple chat program) Here is the set … Software Development client-server gui java | |
i have list. [CODE]Here is list 1 http://example.com/link1.html http://example.com/link2.html http://example.com/link3.html http://example.com/link4.html +++++++ Funny and Funny Sad and Sad [/CODE] [CODE]Here Is list 2 http://candy.com/link1.html http://candy.com/link2.html http://candy.comlink3.html http://candy.com/link4.html[/CODE] Append list2 into list1 we have result: [CODE]Here is list 1 http://example.com/link1.html http://example.com/link2.html http://example.com/link3.html http://example.com/link4.html Here Is list 2 http://candy.com/link1.html http://candy.com/link2.html http://candy.comlink3.html http://candy.com/link4.html … Software Development python | |
Hi ! i m working on asp.net project and using c# for it , i want to place my delete button on the right most of the gridview , by default button is placed at left side of the grid , can any one please help me . as i … | |
Hello, I have formatted an invoice and saved it in a text file. In my text file i used TAB after every field, but when I am trying to print that text file using streamreader all tabs are disappeared. Can you please tell me how to retain the TABs while … Software Development vb.net | |
My project is to write a Temperature class. In addition to converting between Celsius and Fahrenheit also include Kelvin. The class has read(), add(Temperature), subtract(Temperature), multiply(Temperature), divide(double), equals(Temperature), toKelvin(), toFahrenheit(), toCelsius(), and toString() methods. Methods add, subtract, multiply, and divide all return a Temperature. [CODE] public class Temperature { public … Software Development java | |
![]() | Ok, I have absolutely no idea what is going on for my compiler errors. I am not worried about the last part where I have to put in the letter code. I am just trying to figure out how to make this compile correctly for line 43 to work. I … Software Development java ![]() |
Can any one please tell me that why turbo c is not supported by windows 7?:?: Software Development c | |
i need help with my code here is what I have import java.util.*; public class Payments { private double myLoan; private double myInterest; private double myPayment; public void Payments() { Scanner pay = new Scanner(System.in); System.out.print("Principal Loan = $"); myLoan = pay.nextDouble(); System.out.print("Annual Interest Rate(%) = "); myInterest = pay.nextDouble(); … Software Development java | |
This is the problem I have Read in 10 numbers, 10<numbers<100. As each number is read, print it only if it is not a duplicate of a number already read. I did the first part but couldn't work out the second,where the duplicate is used. I have some idea in … Software Development c | |
Can someone show me how to change the cases down below to call functions for add, subtract, divide, multiply. Also return the answer back to the case to display the result in the case. Prototype the functions before main and add the function definitions after main. [CODE]#include "stdafx.h" #include <iostream> … Software Development c++ |
The End.