132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MrXortex

Hi I coded a program where you can reverse the contents of an array. But I used two arrays to complete this process, I want to make it work by using only one array. Here is my code so far, it works btw, just need to make it work by …

Software Development c++
Member Avatar for tinstaafl
0
468
Member Avatar for fonzali

in windows calculator the digits get seperated in thousands as you type in the number , how can it be done in python ? thanks

Software Development python
Member Avatar for fonzali
0
570
Member Avatar for Simon180

I have a small issue with following code am inserting a new room into mysql using query and then I want it to auto join the room once its made but the problem is when room is in process of being made it will call the GoTo procedure and it …

Software Development mysql pascal
Member Avatar for Simon180
0
284
Member Avatar for zxz

Hi everyone and good morning :) . i want to simply read from the linux file "urandom" a random number and print it out on screen.just simple as that. this function should be in a file called myrandom.c ( myrandom.h must be made also, which has my function dekleration ) …

Software Development c file-system
Member Avatar for zxz
0
3K
Member Avatar for Rustatic

I've got my code all ready to go, except what i want to do is have the 'btnSTART' button move the mouse to the selected coordinates, and Left Click down then Left Click up. Here's my code: Public Class Form1 Public Declare Auto Function GetCursorPos Lib "User32.dll" (ByRef lpPoint As …

Software Development vb.net
Member Avatar for J.C. SolvoTerra
0
277
Member Avatar for Nebil

Hi, I am having trouble with dropping a temp table. I was using it so many times in other projects but this time it went bad. The only thing different now is that I referred a string value from the main form to another form.The other form populates a dgv …

Software Development microsoft-access vb.net
Member Avatar for djjeavons
0
245
Member Avatar for it@61@sec

I have a program which reads entries from a directory. These entries are stored in a vector called fdata. Using vectors gives me an easy way to sort the entries. The program copies files from one directory (the source directory) onto another directory (the destination directory). While the copying is …

Software Development c++ file-system
Member Avatar for it@61@sec
0
220
Member Avatar for gokulak

XSL does not compile when and only I use xalan:evaluate. Setting in system properties ---------------------------- sysProps.setProperty("javax.xml.transform.TransformerFactory", "org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl"); XSLT snippet -------------- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan" exclude-result-prefixes="xalan"> <xsl:template name="my_test_template"> <xsl:param name="my_test_param" /> <xsl:if test="xalan:evaluate($my_test_param)"> some statements </xsl:if> <xsl:if test="not(xalan:evaluate($my_test_param))"> some statements </xsl:if> </xsl:template> ERROR LOG ----------------------------------------------- ERROR: 'Cannot find external method 'org.apache.xalan.lib.Extensions.evaluate' …

Software Development apache xml
Member Avatar for xml_looser
0
384
Member Avatar for ilovec++

I have some doubts concerning some basic C++ concepts, and would be very thankful, if someone would kindly clear the doubts: a) Every variable of a data type occupies a specific amount of memory, like int occupies 2 bytes and so on. So, if I declare a reference variable as, …

Software Development c++ data-structure
Member Avatar for yoavip
0
566
Member Avatar for eetigu

hi guys, i had an account on Daniweb but forgot password and recovery was a bit hectic so decided to crreate a new account. the previous username was emma etigu. i have a problem and need some help. below i have two tables from my dataset, i would like to …

Software Development dataset sql vb.net
Member Avatar for moshelilin
0
286
Member Avatar for Sara_10

Hi I want Example for code in assembly language to develop alarm clock using **8085 microprocessor** As soon as you can Thanks

Software Development assembly
Member Avatar for Sara_10
0
904
Member Avatar for kubura musah

Hello! I am a new c leaner. Can I call a function from a different function apart from the main ? And is this also part of recursive?

Software Development c
Member Avatar for kubura musah
0
179
Member Avatar for divinity02

int randnum; randnum = (int)(Math.random() * 15 + 1); String p1, p2, welcomemsg, rulesofgame; int age, targnum = 0; int r1, r2,r3,r4,r5,r6; int largest, smallest, numtries = 0; char ans, y; int addscores, numoftries, numofrounds = 0, questions = 0, count; String userinput; for(count = 1; count<3; count++){ System.out.println("Welcome Students, …

Software Development java
Member Avatar for rubberman
0
119
Member Avatar for Colin_3

hi im getting index out of bound error i cannot find exactly were the error is coming from.can anybodyhelp.tnks import java.util.*; class allshortinVector `{` static Vector<String> v2=new Vector(); public static void main(String[] args) { Vector<String> v=new Vector(); v.addElement("test"); v.addElement("hello"); v.addElement("JAVA"); v.addElement("Program"); for(int i=0 ; i < v.size() ; i++) { …

Software Development java
Member Avatar for TekknoDraykko
0
177
Member Avatar for Thomas_25

Hi all, What is the best sorting algorithm for a doubly linked list? Insertion sort and merge sort appears to the best due to the less overhead compared to the bubble/selection sort. Would like to know your insights on this. Thanks.

Software Development algorithm c++ linked-list
Member Avatar for rubberman
0
2K
Member Avatar for Abetsub71
Member Avatar for rubberman
0
123
Member Avatar for london-G

Hi Guys, I am getting an error: Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "jLabel4" With this code: public void insertCustomer() { Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", "pass"); int q = Integer.parseInt(jLabel4.getText()); try { con = DriverManager.getConnection("jdbc:mysql://91.208.99.2:3379/5thfloor_pos", conProps); con.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE); } catch (SQLException ex) { Logger.getLogger(AddProduct.class.getName()).log(Level.SEVERE, null, …

Software Development java
Member Avatar for TekknoDraykko
0
348
Member Avatar for Papa_Don

Group, I'm using the following code to read down to the third line of a text file. If it meets the criteria, I need to stop the read and then delete the file. However I'm finding it difficult to do this as everything I've tried has failed. Have you some …

Software Development file-system vb.net
Member Avatar for Papa_Don
0
1K
Member Avatar for Nguyen_4

i connect mysql using c# and show database in datagridview I want when i click the row in datagridview, textbox, combobox , datetimepicker will show form datagirdview But mysql datetime : yyyy/mm/dd 00:00:00 ( 00:00:00 will default if don't write) Datagridview : mm/dd/yyyy i used code: datetimepicker1.DataBindings.Add("text", dataGridView1.DataSource, "Birthday"); and …

Software Development vb.net
Member Avatar for J.C. SolvoTerra
0
334
Member Avatar for london-G

I am trying to retieve the total salaries from a table where the customer name is X. I have the code below however there seems to be an error. public void total(String name){ double totals=0; Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", "pass"); try { con = DriverManager.getConnection("jdbc:mysql://91.208.99.2:3379/link", conProps); …

Software Development java
Member Avatar for london-G
0
199
Member Avatar for Sugmuffen

I'm trying to implement a MiniMax algorithm with alpha/beta pruning. Totally stuck and can't see where I'm wrong. The class MiniMax contains a State and an Action. The method getAction returns an Action (supposedly the best action to take). The Game object has two methods, isTerminal returns true if the …

Software Development algorithm java
0
143
Member Avatar for Timothy_4

I am some issues with my homework which is to create a program that reads the csv files to answer the question, unfortunately my gasp of this isn’t as strong as other. However I have written a majority of my code and the idea is clear but it is clear …

Software Development python
Member Avatar for Timothy_4
0
275
Member Avatar for adnan_6

Dear programmers, I have downloaded the program from here http://www.tightvnc.com/download/2.7.10/tightvnc-2.7.10-src.zip and want to compile with the vs2013 ultimate edition and get the following error. Thanks

Software Development c++ visual-studio
Member Avatar for adnan_6
0
345
Member Avatar for Suzie999

Hi, and sorry for the title, I don't really know what else to call it, so I'll get right to my point. I've recently decided to use most of my coding time with C# after having tried a few others over the years on and off. I want to start …

Software Development
Member Avatar for DaveAmour
0
236
Member Avatar for altjen

hello. recently Im having this error. Why is this? why is that? PS: after enter a 2nd person in the database it has imported and the first person in. Sometimes when import the data fast, it upload the person, if it take for a while (~40 seconds or more) it …

Software Development vb.net
Member Avatar for altjen
0
151
Member Avatar for Suzie999

When I add a particular form to my project (AdminConfirmForm.cs) I can no longer access design view of Form1. It appears to run a particular section of the code from a static class (Init()), but since the part of the code it runs should only occur if the folder it …

Software Development video visual-studio web-design
Member Avatar for TekknoDraykko
0
229
Member Avatar for karodhill

I am suppose to display 3 error messages,Premium Channels is a required field,Customer Type is a required field and If a business checkbox is checked an error message is suppose to display saying Business Customers must select 1 or more Connection." can anyone tell me why just the Business Customers …

Software Development display vb.net
Member Avatar for karodhill
0
280
Member Avatar for Rik30

Hello! I'm trying to find the longest sequence of equal elements in a matrix M x N. I use two nested for-loops to search into the rows and compare the cells - same thing for the columns. When two adjacent elements are equal, I increment a counter. If the counter …

Software Development seo
Member Avatar for Rik30
0
212
Member Avatar for Bendez Thyna

#include <iostream> #include <fstream> #include <stdlib.h> #include <iomanip> #include <string> using namespace std; const int MAX_SIZE = 60; void discard_line(ifstream &in); void print_student_records(structarray[], double scmarks[], double sfmarks[], int size) ; int main() { string id[MAX_SIZE]; double cmarks[MAX_SIZE]; double fmarks[MAX_SIZE]; //char grade[MAX_SIZE]; int choice; char response; int total_records; ifstream infile; cout …

Software Development c++
Member Avatar for Bendez Thyna
0
324
Member Avatar for tgreiner

In the course of my programming I have created a new class called Vector (yes I know that vector.h exists, but I like my version better, or at least I have until now). As part of my class, I have overloaded the = to use as an assingment function, as …

Software Development c++
Member Avatar for tgreiner
0
299
Member Avatar for shayan_doust

Hello there. Currently, I am trying to develop a graphical number guessing game in JAVA. This is my first project in java. Here is an insight in the application: When the application is first opened, a random number (1-100) is assigned to a variable. When the user enters their guess …

Software Development gui java java-swing
Member Avatar for TekknoDraykko
0
535
Member Avatar for Niloofar24

Hello. I'm looking for a good tutorial for creating a chat messenger in java. I checked [this link](http://www.javaworld.com/article/2076864/java-concurrency/building-an-internet-chat-system.html?page=1) but it was not good and clear, was poor tutorial without clear explanation and details. Can you help me with another tutorial? Tutorial video or text both are good. (Let me mention …

Software Development java
Member Avatar for JamesCherrill
0
925
Member Avatar for Wumbate

I have some Tkinter code with a Label object. The user needs to be able to select text from the Label in order to copy the text (and paste into something else). However, it seems Labels aren't selectable? I can't figure out how to enable this... any suggestions? [code] from …

Software Development python tkinter
Member Avatar for woooee
0
10K
Member Avatar for Charles_8

Have a heck of a time writing XPATH to parse this XML response. Source data is (removed a bunch to save the innocent: `<?xml version="1.0" encoding="UTF-8"?><env> <ProcessResponse> <message> <payLoad> <BillingXMLMessage> <Envelop>SITEINFORESPONSE</Envelop> <COMPONENT DATATYPE="FLDPARAMINFO" NAME="ACCOUNTINFO"> <FIELD DATATYPE="FLDSTRING" NAME="ServiceType">/service/ip</FIELD> <FIELD DATATYPE="FLDBOOLEAN" NAME="ReactivationFlag">false</FIELD>`' XPATH statement is `/env/ProcessResponse/message/payLoad/BillingXMLMessage/COMPONENT[1]/FIELD[@NAME='ServiceType']` Which only gets me `Element='<FIELD DATATYPE="FLDSTRING" …

Software Development xml
Member Avatar for Charles_8
0
121
Member Avatar for Lan_1

Well I have this code on the knight's tour, where the user will input the knight's starting position. But the problem is, there's too many 9 when I print the output. What's wrong with my algo?? #include <stdio.h> main() { // INITIALYZING THE CHESS BOARD char c, d; // c …

Software Development c
Member Avatar for rubberman
0
206
Member Avatar for Mica_1

string guessNo; **Hi! How do I validate the user input in C++ ? I just want the guessNo string to have** 4 characters, all of which are numbers**.**

Software Development c++
Member Avatar for rubberman
0
106
Member Avatar for p_dap

vc++ / python / java which is best for graphics?

Software Development
Member Avatar for p_dap
0
81
Member Avatar for Pokenerd**

I'm having difficulties with this code...it won't randomize the answer for some reason #include <string> #include <iostream> #include <cstdlib> #include <iomanip> #include <fstream> #include <ctime> #define down8 "\n\n\n\n\n\n\n\n" #define down7 "\n\n\n\n\n\n\n" #define down5 "\n\n\n\n\n" #define over4 "\t\t\t\t" #define over3 "\t\t\t" #define over2 "\t\t" void welcome (); void splash (); using …

Software Development c++
Member Avatar for Moschops
0
287
Member Avatar for scheppy

Hello all Im trying to make java robot hold down the command key. I have used the following code. robot.keyPress(KeyEvent.VK_META); robot.Delay(5000); robot.keyRelease(KeyEvent.VK_META); This doesant seem to do the trick. Yes I have searched on how to do this but cannot find a working answer. Am I using the wrong keycode? …

Software Development apple java
Member Avatar for JamesCherrill
0
2K
Member Avatar for waseem1345

hello, let's say I have a string which contains: string s="111\n222\n333"; and I wanna add something like: foreach(Line ln in s) { if(ln="111") { MessageBox.Show("Found the 111 number"); } } Can u help me do that "foreach line"? thanks in advance :D

Software Development
Member Avatar for DaveAmour
0
244
Member Avatar for Doogledude123

I'm making one of those puzzle games that has the empty tile which you need to slide them around to finish the picture. When I refer to the "Active Tile" I'm referring to the tile that's empty on the board. I'm changing the position of the active tile and the …

Software Development java java-swing puzzle
Member Avatar for JamesCherrill
0
250
Member Avatar for karodhill

I have been working on a pig latin converter. If a letter starts with a vowel or number it should end with way if it begins with a consonant it should revert the letters so the first one begins with aeiouy like chair should be airchay. Everything in my program …

Software Development vb.net
Member Avatar for Mr.M
0
223
Member Avatar for ShiftLeft

This is a special purpose boot loader for a system I've called Proto-Sys. Eventually it is going to become a 64 bit application that will encompass all the resources to hook into drivers, benchmark code and optomize algorithms. Synopsis: * Preserve registers as they were passed by BIOS * Create …

Software Development assembly
0
337
Member Avatar for Papa_Don

Hi group, I'm attempting to use a variable (i) to read the multiple files within a folder. However this doesn't seem to be working. Can you tell me what I'm doing wrong? For i = 0 To counter Dim objReader As New System.IO.StreamReader(getRestranName(i)) If System.IO.File.Exists(folderName) Then Do While objReader.Peek() <> …

Software Development vb.net
Member Avatar for Papa_Don
0
300
Member Avatar for luckynisarg

i want to design a software for a robot. i want to use the arrow keys of keyboard to direct the robot. can any one tell me that how can i do coding of that?

Software Development visual-basic web-design
Member Avatar for Sohail_4
0
2K
Member Avatar for Mohammed_21

I am a bit stuck with this script. I am unable to improve the script to work as intended. If you help me out I will be very grateful. Here is the program below: namespace SpreadsheetFunctionality I am a bit stuck with this script. I am unable to improve the …

Software Development apple
Member Avatar for Suzie999
0
187
Member Avatar for overwraith

Hello, I am thinking about doing a matrix RREF function, am still in the research stage, but I thought I should post a bug I have been having. The following code doesn't work. What I am trying to do is orderby the array index [0], and then by [i...] etc. …

Software Development
Member Avatar for overwraith
0
161
Member Avatar for HōñËy

I need the solution of this program using C++ .. Develop a database software to maintain the records of students of a college.The software should be user-friendly.The user can easiy add new records,update existing records,create reports of existing records etc.

Software Development c c# c++
Member Avatar for David W
0
283
Member Avatar for waseem1345

Hello, I used the CodeDom provider to convert a string into an exe (the string is partial): string partial = "using System;\nusing gButtonnamespace;\nusing System.Windows.Forms;\nusing System.Drawing;"; partial+="\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Text;"; partial+="\nusing System.Threading.Tasks;\nusing System.Reflection;\nnamespace prog{static class program{static void Main(){"; partial += "Form thiss=new Form();\nApplication.EnableVisualStyles();"; partial += "thiss.ShowDialog();"; partial += "}}}"; CSharpCodeProvider codeProvider …

Software Development
0
103
Member Avatar for Suzie999

I'm currently using this code to restart app with admin rights. // If application can not write to path, alert user. if (!pathiswritable) { if (MessageBox.Show("The application cannot use the current location\nRestart as administrator?", "Need elevation", MessageBoxButtons.YesNo) != DialogResult.Yes) { Exit(ExitError.NOT_WRITABLE_USER); } ProcessStartInfo SelfProc = new ProcessStartInfo { UseShellExecute = …

Software Development gui
Member Avatar for Suzie999
0
293

The End.