43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for vedro-compota

Hello programmers ! Can anyone tell me - how to delete an initialized reference-type element, which suggest some links? Is there for this in C # the special function? Thank you for your answers))

Software Development
Member Avatar for vedro-compota
0
178
Member Avatar for Goalatio

Over the past few days I have been writing a bootloader/kernel in NASM... It loads perfectly fine when I write it to a virtual floppy using PARTCOPY, and then boot to it from Oracle VM VirtualBox. However, when I write it to a physical floppy and try to boot to …

Software Development assembly oracle
Member Avatar for Goalatio
0
331
Member Avatar for justinbailey

I have to answer with the runtime for Big O for a few examples of C++ code. I'm generally having some trouble grasping the concept of Big O but two particular problems are stumping me: [CODE]cin >> x; double n = example(x); for ( i =0; i << n; i++) …

Software Development c++
Member Avatar for justinbailey
0
170
Member Avatar for blknmld69

I have started my code to create an application with two combo boxes. One that holds the names of the dormitories and the other holds the meal plans. The user should select a dormitory and a meal plan, and the application should show the total charges for the semester. I …

Software Development gui java java-swing window-manager
Member Avatar for jon.kiparsky
0
907
Member Avatar for Perry31

Hi, Can anyone explain in detail what is the difference between int *a and int* a? Is there any difference between them?

Software Development c
Member Avatar for Ancient Dragon
0
85
Member Avatar for hwalsh

Can anybody tell me why I'm not getting checkboxes? Sometimes I can get one, but never the three I need. [CODE]public class SwingLab implements ActionListener { // instance variables - this instance will get reader's name private Scanner reader;//name from user private Random random; private ArrayList<String> name;//construct a responder, declare …

Software Development gui java java-swing
Member Avatar for hwalsh
0
167
Member Avatar for kberrianjr

I am trying to save a listview item and 5 subitems to a txt file, I have tried one solution that was posted on here but i could not manipulate the code for all of my sub items can someone please help me out.

Software Development listview vb.net
Member Avatar for Unhnd_Exception
0
992
Member Avatar for Tankadin

Hi folks I know this particular program has been posted in many other forums but it all involves many different things that I have no learned yet so I really can't use any of them.....plus it would make me look stupid to turn in something that I copied that includes …

Software Development java
Member Avatar for Tankadin
0
5K
Member Avatar for Azul-P

Greetings, I'm working my way through Michael Dawson's Python Programming for the Absolute Beginner book. At the end of chapter 4: "for Loops, Strings and Tuples", there is a challenge that asks so "improve Word Jumble so that each word is paired with a hint. The player should be able …

Software Development python
Member Avatar for TrustyTony
0
2K
Member Avatar for sariberri

I'm trying to figure out how to add an element to an array of integers, but the tricky part is that I have to slide the elements to the right of it over by one place. For example: Start array: {1, 2, 3, 4, 5, 6, 7} Adding 10 to …

Software Development java
Member Avatar for Ezzaral
0
138
Member Avatar for Anthony Cameron

Hello, I have a perl program where I must mutate a DNA sequence while maintaining the same base pair distribution and then randomly mutate the sequence 10 to 20 times and find the similarity between the mutated and original sequence by calculating an adhoc score. This is what I have …

Software Development perl
Member Avatar for d5e5
0
320
Member Avatar for Kagome

I'm writing a program for a class that's a game. It has ten places to put a peg, numbered 1-10. You have to roll 2 die and the summation is the number you have to work with to try and fill in the board. So far, my program is as …

Software Development python
Member Avatar for TrustyTony
0
245
Member Avatar for LianaN

Hello! I have a JScrollPane with JTable that is filled from MySQL. I'm using SwingWorker to display JScrollPane while reading data from MySQL database. There is no problem with it. My question is how to add a text "Loading..." to JScrollPanel? I just want to display some message in this …

Software Development java
Member Avatar for LianaN
0
4K
Member Avatar for falkor15

The problem states to write a method named fallingDistance that accepts an object's falling time as an argument. The method should return the distance that the object has fallen during the time interval. Demonstrate the method by calling it in a loop that passes the values 1-10 as arguments and …

Software Development java
Member Avatar for falkor15
0
671
Member Avatar for tagazin

Hello, I'm trying to realize a simple calculator but when I double click the file.exe to see the output, my program keeps running in the terminal, maybe I created an infinite loop.. I'm using cin.get() I don't understand.. I compiled it with G++ (MinGW), using Win Xp. can someone help …

Software Development c c# c++
Member Avatar for tagazin
0
363
Member Avatar for peter_budo

I have file that contains Unicode characters from Latin-1 and Latin Extended A sets (link to [URL="http://unicode.org/charts/"]Unicode charts[/URL]). How do I read it so that these unicodes are converted to proper characters? I tried [code=Java] public void readFile(File file) { try { BufferedReader in = new BufferedReader(new FileReader(file)); String noneUTF; …

Software Development java
Member Avatar for quuba
0
4K
Member Avatar for dancks

I'm new to c++ so please take things slow with me. I heard in class that dynamic arrays like in java aren't supported so I thought as an exercise I would make a program that sort of acts like a dynamic array. I'm using a mac btw. For some reason …

Software Development c++
Member Avatar for Fbody
0
185
Member Avatar for hanvyj

Hello everyone I am trying to print out a load of printables on different pages, I have made the containing class Pageable, and implemented all the methods as below, the acutal printing is done in printAllGraphs() : [CODE] PrinterJob printerJob; PageFormat pageFormat; int numberOfPages; public void printAllGraphs(){ //this.chart.print(); numberOfPages=this.dataList.size(); System.out.println("Number …

Software Development java
Member Avatar for hanvyj
0
188
Member Avatar for SVSU_Student

Good Morning DaniWeb users, This will be the first time I use your forum to try and solve a problem. I'm an non-traditional student and live in Michigan. For those curious about where that is located; look a world map (for our international friends) and look for the United States, …

Software Development c++ engineering file-stream
Member Avatar for Frederick2
0
376
Member Avatar for stereomatching

Below is my code [code] template<typename iterator> void selSort(iterator begin, iterator end) { iterator minIt = begin; iterator it2 = begin + 1; for(iterator it = begin; it != end; ++it) { minIt = it; for(; it2 != end; ++it2) { if(*it2 < *minIt) *minIt = *it2; //line X } …

Software Development c++
Member Avatar for stereomatching
0
297
Member Avatar for maofree

Hi Droopy doesn't work on my Linux's distro with python 3.1 (with python 2.x everything was ok). (here you can find droopy [url]http://stackp.online.fr/?p=28[/url]) I've used this command 2to3 -w droopy and changed alot u" in " , in Translations section But now there is another problem [CODE] Traceback (most recent …

Software Development python
Member Avatar for maofree
0
391
Member Avatar for Xcelled194

I'm attempting to make a program that will simply draw a guide (consisting of two perpendicular lines) on another program's window. I tried using a form with a transparency key and TopMost set to true, but then whenever the user inadvertently clicked the guide, it would un-focus the application. This …

Software Development vb.net
Member Avatar for Xcelled194
0
265
Member Avatar for neo_31591

[code] //package Answer; import java.sql.*; class Answercheck { public static String correct; public static String user="Brandon"; /* public static void check(int q1) { String dataSourceName = "questions"; String dbURL = "jdbc:odbc:" + dataSourceName; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection(dbURL, "",""); Statement s = con.createStatement(); s.execute("SELECT copt FROM Ques WHERE …

Software Development java
Member Avatar for neo_31591
0
123
Member Avatar for vinitmittal2008

Write a 'C' Function to combine two singly connected linked lists in the following manner. Suppose one list is "L" which can be given by L=(l0,l1,.....,lm) and the other list is "M" where "M" can be expressed as M=(m0,m1,......,mn) where each li,mi represents one node in the respective lists. For …

Software Development c linked-list
Member Avatar for vinitmittal2008
0
173
Member Avatar for shane1987

hey all I found out today I needed to do a testdriver for my programme as we no it took me forever to do the programme so will some one explain the test driver to me or even help me I no this is a silly thing but im so …

Software Development java
Member Avatar for shane1987
-1
155
Member Avatar for dre-logics

I use Visual studio 2008 I use MYSQL 5.1 I want only to backup database Test to to a specific directory. I use the [COLOR="Green"]application settings [/COLOR]to determine which directory(see attachment). [COLOR="Green"]Green[/COLOR] shaded code works perfect. [COLOR="Red"]Red [/COLOR]shaded code works not!! This is with My.settings. I can not see the …

Software Development mysql vb.net visual-studio
Member Avatar for dre-logics
0
625
Member Avatar for cirno

Dear Codegurus, [B]How do I updatezz data from 2 rows to 2 columns?[/B] tool: vb.net server: MySQL (SQLyog) I have 2 tables, membercardlist and memberinfo: table membercardlist: [CODE] ------------- ------------ ------------ | AccountNo | CardNo | status | ------------- ------------ ------------ | 9999 | B009 | inactive | ------------- ------------ …

Software Development vb.net
Member Avatar for cirno
0
120
Member Avatar for jlovesfishiee

Anyone knows how I can read a string value from a textbox (e.g.: 192.168.1.1), split the values using a delimiter, store the values and convert them into int for later use? Thanks.

Software Development
Member Avatar for jlovesfishiee
0
119
Member Avatar for juan92

im a newbie here, im taking intro to programming wth VB in college and im having problem with the homework here's what im supposed to do 36. Read 10 digits contained in a text file into an array and then display three columns in a list box as follows: column …

Software Development file-system vb.net
Member Avatar for codeorder
0
186
Member Avatar for hzp

[B]Edit: that was my mistake. i placed the codes in wrong line. i solved it by myself already. thanks for viewing.[/B]

Software Development c++
Member Avatar for jonsca
0
136
Member Avatar for TSims11

So I need to be able to close a window when I open another window... Here is my code: [CODE]private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { Form2 ^form2 = gcnew Form2(); form2->Show(); Form1->Close(); }[/CODE] All this does is close both windows... If you guys could help out a noob to …

Software Development c++ visual-studio
Member Avatar for TSims11
0
277
Member Avatar for hiddepolen

Hi guys, I have a little question. When I make a dialog in Visual C++ 2010, with the Dialog Editor, you can Drag and Drop buttons, Edits etc. I can also test my dialog. The buttons and edits look very nice, the Windows 7 style. However, when I compile my …

Software Development c++
Member Avatar for hiddepolen
0
189
Member Avatar for Vv IVIatthew vV

hey, i'm writing a piece of code and i got an error that i really don't understand. The code is below, but i had to post it all because i can't even understand the error, so i posted it all. The Error: [QUOTE]1>main.obj : error LNK2019: unresolved external symbol "int …

Software Development c++ visual-studio
Member Avatar for Vv IVIatthew vV
0
344
Member Avatar for DrueY

I initialize a string, then I set it to something else, I later get it and print it with a button click BUT the first time I click the button I get the original string " ". A few seconds later I click again and this time the string is …

Software Development
Member Avatar for DrueY
0
116
Member Avatar for tim8w

Is there a way to launch a Modeless Dialog that stays active even when a Modal Dialog is launched? Can I put the Modeless Dialog in a seperate Thread or something like that?

Software Development vb.net
Member Avatar for tim8w
0
262
Member Avatar for shredder2794

Hello all, I am trying to make a program in visual basic 2010 where the user enters hours minutes and seconds into text boxes and then the program will count down from that until its equal to 0 when a msgbox appears and says its finished. I was converting hour …

Software Development vb.net visual-basic
Member Avatar for codeorder
0
551
Member Avatar for parth27987

Hello people, Need help with this code here. This code suppose to print blocks of char assigned by user with certain rows and column also assigned by user. For some reason it is giving me error and i don't understand what the problem is Help will be greatly appreciated. Thanks! …

Software Development c++
Member Avatar for parth27987
0
211
Member Avatar for sallubhai

Hi, How can I print this figure if I have an array like this? It should be a for-loop but don´t know how. [CODE] labyrinth = \ [[0,0,0,0,0,0,1,0], [0,1,0,1,1,1,1,0], [0,1,1,1,0,1,0,0], [0,1,0,0,0,0,0,0], [0,1,1,0,1,1,1,0], [0,0,1,1,1,0,0,0], [0,1,1,0,1,1,1,0], [0,1,0,0,0,0,0,0]] [/CODE] figure: ############. ## ## ##. . . . ## ##. . . ## #### …

Software Development matrix-multiplication python
Member Avatar for TrustyTony
0
154
Member Avatar for The_Result

Hello, I've been teaching myself on how to code with perl. My current project that I am working on is socket programming. I would like to transmit a message from one server to another. When I attempt to execute my client code, the following error displays, "send: Cannot determine peer …

Member Avatar for mitchems
0
113
Member Avatar for sciprog1

Hello Members, The following problem has troubled me for sometime now: I have an applet called FileA.java. It has two classes both of which are JPanels. Both these JPanels are then added to the applet in the public class of FileA.java. I use BlueJ. The program works well offline on …

Software Development java
Member Avatar for sciprog1
0
99
Member Avatar for parth27987

Hello people, This is first time i am using this site to get help. Any way to the point, The code provided below suppose to make a blocks of squares with certain rows and column. All the field, rows and columns are controlled by user. User can also choose which …

Software Development c++
Member Avatar for SgtMe
0
209
Member Avatar for Binika

Please help! I need to write a programe, that would draw a picture like this: [URL="http://yfrog.com/6ptreelj"]http://yfrog.com/6ptreelj[/URL] I've tried with recoursion but it doesn't work properly. from turtle import * [CODE]tree(n, lenght): if n == 0: lt(90) fd(lenght) rt(45) fd(lenght/2) bk(lenght/2) lt(90) fd(lenght/2) bk(lenght/2) rt(45) else: rt(135) tree(n-1, lenght/2)[/CODE]

Software Development image python
Member Avatar for ultimatebuster
0
164
Member Avatar for ekkanh

Hi How can I delete a file after a certain time? for example if I want to delete a file after 08.30 has passed? do I use import OS? and import time?

Software Development python
Member Avatar for richieking
0
406
Member Avatar for anthonys1mom

I finished a program to convert from decimal to binary, octal and hexadecimal. Now I want to use that program as a jumping off point to show polymorphism in C++. I am just going to copy/paste the instructions I am working with so that I don't mess it up with …

Software Development c++
Member Avatar for anthonys1mom
0
762
Member Avatar for LianaN

How could I synchronise the timer with some process that runs during X seconds. I need the timer to count seconds only if the process is running. If the process is terminated, then the timer must stop. [COLOR="Red"]Most important is that the process execution time is not known apriori.[/COLOR] Otherwise, …

Software Development java java-swing
Member Avatar for LianaN
0
220
Member Avatar for murtazamzk

Here is an amazing program to create a tic-tac-toe game in vb.net.First of all in design view place 9 buttons.Then apply the code below. Public Class Form1 Dim test As Boolean Dim c1 As Boolean Private Sub b1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b1.Click, b2.Click, b3.Click, b4.Click, …

Software Development vb.net
0
98
Member Avatar for hazeeel

Hey guys! Much help needed here! I am a student doing a protein structure alignment algorithm which is my final year project, using various forms of translation, rotation & computing the RMSD. From line 164: This is my loop calculation, basically it computes the Root Mean Square Deviation (RMSD) of …

Software Development algorithm java
Member Avatar for hazeeel
0
178
Member Avatar for Pokenerd

I know this is strange, but i have a simple syntax question. Right now I'm working with a thread in the following format. The use of "setDaemon" in the run function does not work, as you apparently must set Daemon before you start the thread. [ICODE]new Thread() { @Override public …

Software Development java
Member Avatar for Pokenerd
0
143
Member Avatar for Misklahr

Hi I'm new to java, and I'm trying to make a very basic game. The problem is that i have 3 classes that cooperates and I can't get one of the values from class "Board.java" to "gp1.java". In Board i have a button that "rolls the dice" x2 and adds …

Software Development java
Member Avatar for Misklahr
0
359
Member Avatar for Anthony Cameron

Hello, I need help to fix a perl script that obtains a DNA file with a FASTA sequence and randomly shuffle the sequence while maintaining the overall distribution of bases. I must also randomly shuffle the sequence 10-20 times. Then measure the similarity between the shuffled sequence versus the original …

Software Development perl
Member Avatar for d5e5
0
1K

The End.