199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for castajiz_2

Hi guys i m new around here as you can see, i was wondering why can t the program find the minimum of random generated numbers?Any help would be greatly apreciated. public static void Main(string[] args) { int[] randomNum = new int[10]; int min = randomNum[0]; int max = randomNum[0]; …

Member Avatar for castajiz_2
0
852
Member Avatar for Dmiller071

Hi all, I have a project where I need to read in an image of a maze and use a graph data structure to find certain points in the maze to place nodes and trace edges. I plan to have the maze be in only two different colors. The walls/background …

Member Avatar for Dmiller071
0
278
Member Avatar for jodzjcm

if( strcmp(z->Rev->x.y,z->x.y) > 0) In this statement i want to swap the pNext and pPrev. How will be the assignment look like?

Member Avatar for Ancient Dragon
0
97
Member Avatar for foxy123

Hi, I'm trying to write an application in NetBeans. I have a one Button called Ok which makes an array of buttons and all of them are connected to one actionListener. Here's the code: public void actionPerformed(ActionEvent e) { if (e.getSource() == Ok){ int a=500; thread=new Thread[a]; Button button[]=new Button[a]; …

Member Avatar for foxy123
0
175
Member Avatar for johans22

I was reviewing the code at the following two sites. I noticed that memory allocation "new" has been used to allocate space for the Node(s). How are they freed?. very good codes. http://visualcsamples.blogspot.com/2010/11/sparse-matrix.html http://www.syntax-example.com/Code/implement-subtract-function-big-number-992.aspx

Member Avatar for jackmaverick1
0
159
Member Avatar for laura301019

Hi i was just wondering if anyone knew how to generate a drop down menu with sql. The section of code i have that has to be changed is <div> <span class="bold">Choose a lecturer:</span><br> <?php // note how the keyword "distinct" in the following query prevents duplicate values from being …

Member Avatar for diafol
0
112
Member Avatar for userct

Hello, I'm trying to write a program using MIPS Assembly Language (I write the code in TextWrangler and run it in QTSpim) I was wondering how I would go about checking if a number is perfect or not. I know my first lines of code may be partially incorrect but …

0
548
Member Avatar for blahman

I am running into some issue with scraping data. If I hardcode value for key "lbo race" in the code below it is able to scrape the data but if I try to set key "lbo race" to a variable which is being read in it doesn't seem to scrape …

Member Avatar for blahman
0
542
Member Avatar for java_sabin

im doing remote desktop project. i need to connect two sockets (each from single client) through the hashtable in the separate application server, so that client1 can see the desktop of the client2. can u suggest me solution for this? how can i achieve this? so far i can connect …

Member Avatar for bambam2174
0
258
Member Avatar for murnesty

I know the purpose of keyword but then I still not really know when should i use. But I sure I will optimize my code. So is it ok to i use volatile keyword on all my variables? So that it won't optimize the wrong thing.

Member Avatar for mike_2000_17
0
128
Member Avatar for Buffalo101

Hello, I am (still) writing a server+client application. I start the server. After a connection is accept()-ed, I start a thread to handle that connection. On the handler thread, I add the client nickname(String) and Socket to a Hashtable. [code=java] private Hashtable<String, Socket> clients = new Hashtable<String, Socket>(); clients.put(nickname, socket); …

Member Avatar for java_sabin
0
552
Member Avatar for sathish1990

**Please help me friends** **I have a doubt in using array in JAVA** **if my input is AB1CD** They are stored in array as a[0]=A a[1]=B a[2]=1 a[3]=C a[4]=D I developed a coding to insert the number that appearing after a alphabet in the same array element like a[0]=A a[1]=B1 …

Member Avatar for JamesCherrill
0
169
Member Avatar for deval90

/***** The prompt i have is : use a class with 3 member functions named InputMatrix, Calculate, and OutMatrix. The program will prompt the user to (e)enter the matrix data, (c) to calculate the matrix multiplication, (d) to display the input and output matrices, and (q) to quit. no exit() …

Member Avatar for mike_2000_17
0
265
Member Avatar for DaveyMoyes

Hi All, I have the following scrip that uploads a image to a destination folder on my server. What I am trying to do is "rename" the uploaded file and update the link in the back end database. The file uploads and stores in the correct folder, but what it …

Member Avatar for cereal
0
184
Member Avatar for Saviour4You

Hello, I am a java learner and have just started learing java by follwing the online tutorials. I am a computer science student and as a part of our assisgnment, I have to design a online CHat system in java. TBH, I have no clue of what to learn and …

Member Avatar for NetJunkie
0
290
Member Avatar for ShadyTyrant

If you could change one thing about C# or the .Net framework what would it be? If I could change one thing about C#, using would be imports.

Member Avatar for thines01
0
134
Member Avatar for DarkMonarch

hey guys, sorry for my noobness, i'm still a jr and the boss ask me to learn xml because i'll have to work on a ticket selling site. oke no problem there, i luv learning. so i read all the xml tut on w3school. it's not that hard, but more …

Member Avatar for DarkMonarch
0
161
Member Avatar for Rahmania03

hello friends, i m developing an windows application in VS2010 using Visual C# and MS Sql 2008 R2. i have a form consisting of datagridview and a Combobox. Name of DataGridView is "dgAccount" having three columns "Name","RollNo","City". Name of Combobox is "cboName". The Name of my DataBase is "dbAC". The …

Member Avatar for Rahmania03
0
496
Member Avatar for pjh-10

if ive a 1000 songs,using shuffle whats the probability, on average, how many tracks will be played before a previous song plays again. tricky probability Q, getting a few different answers, with some variation of accuracy!! thanks

Member Avatar for pjh-10
0
443
Member Avatar for rezonk

#include<iostream> using namespace std; struct Student_Record{ int id_num; int assignment; int quiz; int test; char grade; }; void get_data(Student_Record &p); int calc_mark(Student_Record p); Student_Record read_data(); void print_all(const struct Student_Record p{}); int main() { Student_Record amir,naim, amirNaim[2]; int amirtotal_mark, naimtotal_mark; get_data (amir); amirtotal_mark=calc_mark(amir); if (amirtotal_mark>=60) amir.grade ='p'; else amir.grade='F'; naim= read_data(); …

Member Avatar for nullptr
0
166
Member Avatar for jackmaverick1

I have a project going (the idea for which I got from a website a couple of years ago) and its been going pretty well. However, I have come upon a strange error, which I can't find the source of (well, I know the source but I don't know what …

Member Avatar for histrungalot
0
394
Member Avatar for msqueen0826

Hello I am trying to write a select statement that will compute the average room rate under the assumption that if the room rate is "null" it should be replaced by the minimum room rate from the table. The following is all the details of my table : create table …

Member Avatar for hfx642
0
467
Member Avatar for jhedonghae

hi how do i set a listview to only add one item from a combobox? example: when the combobox contains the items dog,cat,pig and when the user chooses pig it is added to the listview but when the user selects the pig again it must prompt that already added... i …

Member Avatar for jhedonghae
0
119
Member Avatar for lastgame2007

//time Am $a=$_POST[am]; $a1=$_POST[am_min]; $tmeAm=$a.':'.$a1; //time AM //time Pm $p=$_POST['pm']; $p5=$_POST['pm_mins']; $s=':'; $times=$p.':'.$p5; $ttime=$tmeAm.'-'.$times; //days $days=$_POST['days']; for($i=0;$i<count($days);$i++) $dd=$days[$i]; mysql_query("insert into tc_handle set sid='$_POST[ass]', sub_id='$_POST[lvl]', secid='$_POST[secs]', section='$g_sec[name]', year='$g_sub[year]', code='$g_sub[code]', date='$cur', acad_id='$now[acad_id]', time='$ttime',room='$_POST[rm]', ** days='$dd'-------------------------- having problem here, it only saves the last checkbox in my form, why is it???** ")or die …

Member Avatar for blocblue
0
101
Member Avatar for djexploit

Hi, i have i site where you can get points when you click on an image. I need to have a code that automatically gives points to the user that clicks on the image. this is the mysql query to give the points. mysql_query("UPDATE `members` SET `points` = '$points1' WHERE …

Member Avatar for CoursesWeb
0
119
Member Avatar for bhallarahul
Member Avatar for bhallarahul
0
105
Member Avatar for bsabowala

String line = null; double value; BufferedReader in = new BufferedReader(new FileReader("C:\\Users\\Bilal\\Documents\\Work\\scrambler\\input.txt")); int x=0; while (line != "end"){ line = in.readLine(); System.out.println(line); x++; } }} When I run this.. the loop does not stop when the word end comes.. why???????

Member Avatar for JamesCherrill
0
190
Member Avatar for choosenalpha

Hi All, I'm fairly new to Java. I have a question involving the Replace Method. Is there, any way I can use the replace method to change a string that results in: Helle, Werld; to get it to result to Hello, World using the replace method. I have seen the …

Member Avatar for TrustyTony
0
222
Member Avatar for Baduizm

Why do I get a Null Pointer in my test whenever I run it from the ant?My Test class Is: package com.MySelf.exchangerate.exchange; import static org.junit.Assert.assertEquals; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; import junit.framework.Test; import com.MySelf.exchangerate.application.ExchangeRateApplication; import junit.framework.TestSuite; public class ExchangeRateApplicationTestCase extends AbstractTestCase{ public static final Logger logger=Logger.getLogger(ExchangeRateApplicationTestCase.class); private static final double delta …

Member Avatar for Baduizm
0
164
Member Avatar for khajvah

Hello people, I am future web designer and want to learn PHP and javascript, i already know a little javasctipt but i have never touched PHP. I need 2 books: one for PHP and one for javascript, money is not a problem... I saw some books "PRO JS for web …

Member Avatar for khajvah
0
292
Member Avatar for ratazoit

#I need a php script that fetches a registered users info from the Mysql database and prints them on the page when a user visits his/hers profile page via a link showing his name, like facebook # * Heres the code that id like to show as the profile pag …

Member Avatar for Dani
0
713
Member Avatar for jodzjcm

I have a problem. If the text is too long in the text file...the program crashes. How to solve it?

Member Avatar for WaltP
0
149
Member Avatar for jodzjcm

If the user inputs 1 the program will automatically create a new node..How? the maximum that I can do is 2..how to add node? Code blocks are created by indenting at least 4 spaces ... and can span multiple lines def *New(def *pHead){ def *temp; temp = malloc(sizeof(def)); pHead->pNext = …

Member Avatar for TrustyTony
0
150
Member Avatar for hughesadam_87

Hey everyone, Last semester my buddy and I made a tutorial on application programming in Python. This video uses the Enthought Tool Suite (ETS), a free powerful Python development toolkit, to build quick, easy and powerful GUI's. I see many posts on this site about Tk, wx, qt but haven't …

Member Avatar for hughesadam_87
0
487
Member Avatar for hwoarang69

hi i need help with linked list. so iam trying to mege two linked list together. i got all to working but my meger method dont work. lets say age of List_A = 1, 2, 3; and List_B = 2, 4, 5, 6; after meger method i should get 1,2,2,3,4,5. …

Member Avatar for zeroliken
0
162
Member Avatar for jtbens01

Hey guys, I'm getting some kind of linker error. Any help would be appreciated. Here is what I have.. Header File: #ifndef _LinkedSortedList_ #define _LinkedSortedList_ #include "LinkedNode.h" #include "SortedList.h" template <class Elm> class LinkedSortedList : public SortedList<Elm> { public: LinkedSortedList(); ~LinkedSortedList(); void clear(); bool insert(Elm newValue); bool getfirst(Elm &returnValue); void …

Member Avatar for jtbens01
0
136
Member Avatar for vaanipala

Hi, How do I prevent my user from submitting an empty form? When I do that, I'm getting a HTTP 404 not found error in IE and a blank page in Firefox. None of the validation errors are showing up. I even tried putting an else stmt in the StudentsController's …

Member Avatar for trav04
0
223
Member Avatar for BryantFury

Hi ive developed a code that does 2 things. It is about 20 students doing a test and getting a mark out of 100. First is using the class, it will look in a file, display the names of all the students(20) and their respective test scores.It will also show …

Member Avatar for BryantFury
0
188
Member Avatar for renzlo

Hi all, I am making a file monitoring tool, I've asked google what's the best approach in doing that and it returned that I should use filesystemwatcher, others suggested a polling program. Now I've decide to ask here for my final decision, hoping for some advices. Here's my the current …

Member Avatar for renzlo
0
210
Member Avatar for winnitbaker

Right im a junior programmer and im trying to build a system which shows data from a database. I have about 18 check boxes will all different types of data. Depending on what is ticked will depend on what is displayed in the data grid. Im having to use sql …

Member Avatar for Momerath
0
174
Member Avatar for coding101

im trying to build my own LL, not seeming to work? My insert method is wrong, and cant fiugre it out, any ideas? public class List { private int size; private Node root; private Node current; public List(){ size = 0; } public void insert(int a){ size++; if(root == null){ …

Member Avatar for NormR1
0
102
Member Avatar for cmsc

This code gives me an Unhandled Exception error everytime I try to run in on a mobile phone (Nokia E51) although it works perfectly in an emulator. What seems to be the problem? public class Video2 extends MIDlet implements CommandListener { // Class to capture the snapshot public class Video …

Member Avatar for james6754
0
224
Member Avatar for Runnaz

I Got STUCK ON PART 7, would appreciate it if someone can help out. I have it due on sunday Thanks we are going to implement a slightly different version of Roulette. In our version there will be only one player and the winner is determined solely by the slot …

Member Avatar for Lerner
0
223
Member Avatar for saleem.mukhtiar

Dear friends kindly gudie me how can i make table design data grid?? ... sample pic i have attached ...

Member Avatar for saleem.mukhtiar
0
74
Member Avatar for Hypnos_16

Hey everyone, i'm currently working on a program that requires a number to be saved outside of the program in some manner and recalled later. Sounds confusing but perhaps this will help. The program i'm making is a game, and i want to be able to create something similar to …

Member Avatar for 117
0
169
Member Avatar for mags11

Hello. I am having a slight problem with layout in my program. The Textfield doesn't seem to be aligned with the Message Label. The program is a GUI MPG calculator. It's supposed to calculate the car's mileage. It's supposed to let the user enter the number of gallons of gas …

Member Avatar for NormR1
0
740
Member Avatar for Stevo812

Hi everybody. I am new to this site and am sure you guys could help me. I am currently writing a pool game using eclipse and need to create an array of objects.I have two balls placed individually onto the screen but I'm not certain how to write an array …

Member Avatar for Stevo812
0
1K
Member Avatar for a_salted_peanut

Hi all If anyone can provide some light on this one it would be very much appreciated! I have spent a few hours on this one trying to figure out why, when i try and submit a form via HTML to a PHP script it seems to fail and not …

Member Avatar for a_salted_peanut
0
165
Member Avatar for paoi00

i dont know what to do with this codes. when i used this to other forms it runs without error except for the one form. error says : "The ConnectionString property has not been initialized." but then i already initialized it. please help me. Public Sub showmyrecords() Dim lvi As …

Member Avatar for paoi00
0
172
Member Avatar for de Source

hi, i have three text boxes tb1 has timeIn tb2 has TimeOut and i have a Button which shows the time duration between them i have used time diffrence method bt it is unable to calculate the duration it only gives the difference which create problem when time is greater …

Member Avatar for darko444
0
497

The End.