43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Beginerman

I need a little help with the below code. I am basically reading text from a .txt file and need to be able to convert the text into an array(fam6) that i can then search for a value that is typed into a text box. If said text box search …

Software Development c# visual-studio
Member Avatar for Beginerman
0
333
Member Avatar for aVar++

I have got a simple naughts and crosses game working, can someone tell me a simple def blah(): .. command to check if the player has already moved to a place on the board already taken.. E.G Player's first go = top left Player's second go = top left.. (message …

Software Development python
Member Avatar for aVar++
0
122
Member Avatar for aVar++

Hey guys, i have been working on this for a while and global doesnt seem to be doing anything; help? Row1 = [" "," "," "] Row2 = [" "," "," "] Row3 = [" "," "," "] Grid = [Row1,Row2,Row3] x = False def NAC(): def check(): #only using …

Software Development python
Member Avatar for aVar++
0
290
Member Avatar for thendrluca

hi all! :) well i wrote a sample code to test threads and i don't get what i want the problem is that the thread i created is starting directly after i create it? but he must start when my j is equal to 25 and then i joining the …

Software Development c++
Member Avatar for thendrluca
0
184
Member Avatar for ayat abukhadra

Hello, Is there's a way to install a new version of the webbrowser control in the visual studio 2008 to be used instead of the old one ? Thanks for helping :)

Software Development vb.net visual-studio
Member Avatar for ayat abukhadra
0
1K
Member Avatar for Kronolynx

in this part of the code which i'm using to search if an account number given by the user is in the vector. what is the cause of the problem ? thanks in advance. if (ae.getSource() == b7) { boolean found = false; for (int i = 0; i < …

Software Development java
Member Avatar for stultuske
0
403
Member Avatar for chocomilk

How can i copy a directory path in a string? For example, the Location of the file is "C:\Folder1\Folder2\mydatabase.mdb". i have an existing code, Dim dbpath as String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim OpenFileDialog As New OpenFileDialog OpenFileDialog.InitialDirectory = My.Computer.FileSystem.SpecialDirectories.MyDocuments OpenFileDialog.Filter = …

Software Development vb.net
Member Avatar for chocomilk
0
184
Member Avatar for NardCake

Hello! I'm creating a simple markup type thing with a XML reader to edit the properties of this window and at some point add components to it. I had it working, but had a few issues since it wasn't originally a WinForms project, didn't have looping working right, so I …

Software Development
0
70
Member Avatar for dmo1

Hello. I am writing a program that computes net pay by the user entering in hours and payrate. There can only be one decimal, two numbers after the decimal, and no letters. When payrate is entered wrong, it displays the correct error message. For hours, it doesn't even though it …

Software Development c
Member Avatar for dmo1
0
147
Member Avatar for javaprog200

Hello, As per wikipedia, a complete binary search tree is defined as: A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible Can someone give me an application of complete binary trees …

Software Development java
Member Avatar for javaprog200
0
387
Member Avatar for Darth Vader

Hello, I have a little problem with a timer that I have set up. I use Thread.Sleep(). What I am trying to do, is to let a code run exactly when a new minute occurs on the millisecond (0 millisecond). I have tried to set it up below and test …

Software Development
Member Avatar for Darth Vader
0
217
Member Avatar for Na'Vi

Hi, I'm trying to complete this method for a binary search tree and recursion has never been my strong point. All it does is return the total number of nodes in the tree. I have an answer that finds it a different way, but I wanted trying to get it …

Software Development java
Member Avatar for Taywin
0
233
Member Avatar for 123386761

Hello! I'm new here, so correct me if this is the wrong location... but I'm trying to make a program for the Minecraft server I'm on, and it requires that if someone wants to make a map that is used on the server, that there's a .xml file that shows …

Software Development c++ ios
Member Avatar for 123386761
0
188
Member Avatar for Violet_82

HI all, I was looking at this program and noticed few things: import static java.lang.System.out; public class Employee { private String name; private String jobTitle; public void setName(String nameIn) { name = nameIn; } public String getName() { return name; } public void setJobTitle(String jobTitleIn) { jobTitle = jobTitleIn; } …

Software Development java
Member Avatar for Violet_82
0
3K
Member Avatar for Obike

I'm having a problem updating records from my VB.Net application to the database (Access Database). I've tried all sorts of update technique and i keep getting either "syntax error in update statement" or "data mismatch in criteria expression". heres the code i'm using: Public Function save1stsemester() 'this code updates 1st …

Member Avatar for Obike
0
558
Member Avatar for Darth Vader

Hello, I wonder if 2 backgroundworkers which are asynchronous can call the same function like in the code below. What I wonder is if the function is called Exactly at the same time from 2 workers. Can anything go wrong here or is this not a problem. I am not …

Software Development
Member Avatar for Darth Vader
0
154
Member Avatar for monching

Hello there, How to add items in combo box from mysql database? 'mySQL statement 'tryCatch method ComboBox1._______ = myReader.GetValue(myReader.GetOrdinal("Uname")) I'm trying use this: ComboBox1.items = myReader.GetValue(myReader.GetOrdinal("Uname")) but an error occured.

Software Development mysql vb.net
Member Avatar for Reverend Jim
0
307
Member Avatar for phorce

Hey, I have a function in C that I am trying to convert over to C++. I have done everything, apart from this line: memcpy(mel[i],&temp[melstart[i]],mellength[i]*sizeof(double)); I need a way of copying the elements in temp[melstart[i]] over to a vector of doubles.. Here is the C code: void Setup_Mel(int fft_size, int …

Software Development c++
Member Avatar for mike_2000_17
0
173
Member Avatar for Begginnerdev

Hello my fellow Daniwebers! I am having some problems wrapping my head around the task sorting a List(Of CustomType) I have a list containing a custom class. The class contains Two DateTime objects, Start and End. I am trying to sort the list descending so that the shortest timespan will …

Software Development vb.net
Member Avatar for Begginnerdev
0
450
Member Avatar for M4ver1k

I'm trying to iterate through a struct, but wanted to be able to do something along the lines of: string searchy = "jimmy"; string suffix = "firstname"; for (person dude : pnum){ if (dude.&suffix == searchy){ // Do things } } For those familiar with Perl/PHP, I'm trying to accomplish …

Software Development c++ perl
Member Avatar for M4ver1k
0
276
Member Avatar for kaywt

Ok... Got a lab to generate 150 random numbers and then sort the 1st 50 by BUBBLE SORT, the 2nd 50 by SHELL SORT, and the 3rd 50 by SELECTION SORT. After I get those three to work correctly then I need to MERGE SORT the three of them together. …

Software Development c++
Member Avatar for kaywt
0
181
Member Avatar for imperator

Hey, I have created one digit 7-segment screen in vb.net, which works fine, but I need several digits to show. How can I show the screen in multiple instances, which can be controlled separately? The form code is in attachments. Any suggestions appreciated!

Software Development vb.net
Member Avatar for imperator
0
209
Member Avatar for davecoventry

I am trying to access a string. wchar_t *str; char *Pname; FILE *fp; str = somefunction(); Pname = str; fp = fopen ("/tmp/test","a+"); fprintf(fp,"%s\n",Pname); fclose(fp); str actually contains "ABigName", but the file simply contains the first letter, "A".

Software Development c
Member Avatar for deceptikon
0
178
Member Avatar for Agni

I have a some libraries which have a lot of common classes but the namespaces are different. Most of the code I was writing could be easily reused by classes in both libraries so after some reading I tried a technique of using the templates to pass namespace. As you …

Software Development c++
Member Avatar for Agni
0
127
Member Avatar for lulu79

I have a LINQ function to get 3 things :: Line, Average of Duration and Count I have a problem to sort it based on Average Of Duration column. Here is my code: Dim group2 As IEnumerable(Of DataRow) = _ From row In Ds.Tables(0).AsEnumerable() _ Group row By LINENAME = …

Software Development asp.net vb.net
Member Avatar for lulu79
0
752
Member Avatar for salford6129

Okay so I have a final project due, and it's not really a beast, but I've begun to wonder if I'm doing everything I'm supposed to do, so I'm going to outline the assignment and give an overview of what I have. I was hoping I could get a couple …

Software Development gui user-interface
Member Avatar for salford6129
0
149
Member Avatar for monching

hi, How to save the long format DateTimePicker in mysql?

Software Development vb.net
Member Avatar for monching
0
224
Member Avatar for Xufyan

I am trying to figure out the way to use the nested loop in a proper way but so far i am failed, The loop run to infinity when i run the program which i definitely don't want to do, here is my code, .MODEL SMALL .STACK 100H .DATA var1 …

Software Development assembly
Member Avatar for sbesch
0
3K
Member Avatar for advcha.almahyrah

I'm making a running text software where there is some text that runs alternately in the marqueelabel control. I wanted at every turn of the text, the background of marqueelabel will be blinking. I use three timer control, ie two System.Windows.Forms.Timer (Timer1 and timer2) and one System.Timers.Timer (elapsedTime). Timer1 is …

Software Development
Member Avatar for advcha.almahyrah
0
140
Member Avatar for FakeTales

is it possible to pass an already defined function into a pthread? so for example within my code i am able to define an array size once a user enters an array size(for example user enters 200) it will add the numbers 1-200 to an array , i then have …

Software Development c c# c++
Member Avatar for FakeTales
0
236
Member Avatar for Dark_Knight

Hi, I've been having some problems with the getchar() statement. When I put it in a loop (to make an interactive input), I can't get user input anymore from within the loop. Even the following simple program doesn't work: [code] #include <stdio.h> #include <stdlib.h> int main(void) { char response, text[255]; …

Software Development c
Member Avatar for jigar23
0
2K
Member Avatar for satsujin

I am trying to write a python app that will switch between two views when I click on the canvas in Tkinter. I have written the views and main app as seperate objects with binds linked to the opposing view through the left mousebutton. When I run the app in …

Software Development python tkinter
Member Avatar for satsujin
0
190
Member Avatar for sym366

I'm not really good wih the Big O notation so I was wondering if any one can help me find the Big O notation of this code for each of its function when they are best , worst, and adverage case and a brief explantation of why it's that. Sorry …

Software Development python
Member Avatar for TrustyTony
0
175
Member Avatar for alaa sam

hey I'm writing a multithreaded server , and I want to print a line in a file whenever a client is connected , I need to lock the filestream to prevent the lines of multiple thread from overlapping I used an integer lock but it won't work right , so …

Software Development client-server
Member Avatar for alaa sam
0
193
Member Avatar for giancan

Dear friends, I need our help for a new task. I have a gps track (sequence of lat long and altitude) and I would like to know if there is a way to make an offset (or a parallel line if you prefer) of this line to its right and …

Software Development python
Member Avatar for giancan
0
401
Member Avatar for subramanya.vl

I have this singleton class public final class MySingleton{ public static MySingleton singletonInstance; private MySingleton(){} static{ singletonInstance=new MySingleton(); } public static MySingleton getInstance(){ return singletonInstance; } } I wanted to know is there any other simpler and better way of creating a singleton instance?

Software Development java
Member Avatar for stultuske
0
167
Member Avatar for Red_Rain

Hey everyone, I am attempting to add an array of JTextFields to one of my JPanels and for some reason i keep getting errors and the program crashes when i run it. I know i am prob making some noob mistake but this a project for my first Java class …

Software Development java java-swing
Member Avatar for mKorbel
0
666
Member Avatar for M4ver1k

Forgive me if the title was even worded properly. What I'm trying to accomplish is to be able to create an unlimited number of objects for use by struct and quickly realizing that my thought process on how to achieve that is wrong. Here's the related code: struct person { …

Software Development c++
Member Avatar for M4ver1k
0
171
Member Avatar for Ancient Dragon

When my program calls MsgBox it appears in the middle of the monitor. Anyone know how to move it somewhere within the boundries of my program's window?

Software Development vb.net
Member Avatar for TnTinMN
0
2K
Member Avatar for MrBoye

how to write a program to stimulate a bank transaction. there are two bank accounts : checking and saving. first, askk for the initial balance of the bank accounts ; reject negative balance, then as for the transaction ; option are deposit, withdraw, and transfer. then ask for the account …

Software Development c c# c++
Member Avatar for Lucaci Andrew
0
266
Member Avatar for rachelmorg

Hello, I just have a quick question, I have two while loops that don't quite do what I want while (e == true && num != 1) { do statement } while (e == false && num !=1) { do different statement } if (num == 1) { System.out.println(value); } …

Software Development java
Member Avatar for rachelmorg
0
144
Member Avatar for javaprog200

Hello, I am trying to understand what a byte array is. public class ByteArrayExample { public static void main (String args[]) { byte[] array = "1".getBytes(); System.out.println (array); } } The output of this program is : [B@44770739 Is this a hexadecimal representation? If any of the members can explain …

Software Development java
Member Avatar for javaprog200
0
219
Member Avatar for kimika

#include <iostream> #include <string> #include <iomanip> #include "mainmenu.h" using namespace std; string bookTitle[20] = {0}; string isbn[20] = {0}; string author[20] = {0}; string publisher[20] = {0}; string dateAdded[20] = {0}; int qtyOnHand[20] = {0}; double wholesale[20] = {0.0}; double retail[20] = {0.0}; void main() { // Declarations for function …

Software Development c++
Member Avatar for kimika
0
243
Member Avatar for daino

I'm trying to build libgd and can't seem to get past this error. It configures without error but when I go to make Install the below error occurs. Would anyone know how to get past this? WinXP, MingW. Thanks. gdfontg.c:4380: error: variable 'gdFontGiant' definition is marked dllimport gdfontg.c:4380: warning: 'gdFontGiant' …

Software Development c++
Member Avatar for daino
0
470
Member Avatar for Super_android

Hey there, my code is nearly perfect, but I need help with my input for a value. here's the snippet of my code: cout << setw(15) << right <<"$" ; double Amount; input >> Amount; cout.setf(ios::showpoint); cout.setf(ios::fixed); cout.precision(2); cout.width(8); input.ignore(); cout << Amount << endl; i know that input puts …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
152
Member Avatar for Scelus

Hi! As the headline suggests I am getting the following error message: First-chance exception at 0x00d690d1 in Nyår.exe: 0xC0000005: Access violation reading location 0xcccccccc. Unhandled exception at 0x00d690d1 in Nyår.exe: 0xC0000005: Access violation reading location 0xcccccccc. #include<iostream> #include<cstdlib> #include "Participantsregistryhead.h" int main() { _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); ParticipatorRegister Registry; Registry.typeOut(); …

Software Development c++
Member Avatar for Ancient Dragon
0
3K
Member Avatar for doug.leany

I have a Code::Blocks project that includes a perl script which creates a c++ source file containing a linked list; the linked list is built by parsing special comments that may be included in all of the project's other .cpp files. The script is desinged to automate the creation of …

Software Development c++ linked-list perl
Member Avatar for doug.leany
0
379
Member Avatar for shahai.ali

hi m following [this link](http://www.c-sharpcorner.com/UploadFile/0146e3/crystal-report-in-visual-studio-2010/) for generating crystal report in visual studio using c#. but in the above tutorial the database is created first and then reports are generated. but in my scnario i already have connected with database. now is it possible to generate report from existing database???? if …

Software Development c# visual-studio
0
99
Member Avatar for slasel

If u run this code then click on the button helicase, u'd notice that there is a space btw radiobutton 1 and the rest! why? how can i fix this? I am sorry i know my code is too long but i don't know which section of it was causing …

Software Development python tkinter
Member Avatar for slasel
0
590
Member Avatar for ascyndance6y

I've been planning a certain program for 3 years. During these 3 years, I've let thoughts and ideas formulate, and stew, in order for me to critique them properly. I know precisely what I want this program to do. For almost every function I know what as a client I …

Software Development java
Member Avatar for ascyndance6y
0
377

The End.