199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kimiko

hey there guys, just starting to learn java and i'm having a little trouble putting code to paper. don't really want to ask the teacher because hes a perv but lets not get into that. okay, i am supposed to make a GUI for electronic voting ballot paper thingy and …

Member Avatar for jon.kiparsky
0
184
Member Avatar for Freespider

hey, i cant understand whats wrong, i guess there is a syntax error or i didnt include something.... i uploaded only the header file... thanks...

Member Avatar for Fbody
0
1K
Member Avatar for sarithak

hi frnds, i m using [B]substr[/B] for same like in english font.but, now i m using [B]unicode(telugu,hindi)[/B]...i m not getting wat i want(no.of letters)...also some letters are missing in a string..like this(హమీద్* అన్సా�)... plz give some suggesions wat i need to do....

Member Avatar for mschroeder
0
146
Member Avatar for joelogs

we are given the assignment to implement the banker's algorithm in c. this implementation must run in the linux terminal and program must be utilized the os in the time of execution. this means that it must capable on real-time execution with the os. i really don't have any idea …

Member Avatar for jon.kiparsky
0
1K
Member Avatar for Premsathishbe

We all well familiar that Micosoft and Sun are best rivals Each one progressing in their own events through their products In such cases How Sun micro system given the rights to share the own product with Microsoft product Dot net for developing J#,etc in .Net professional products?

Member Avatar for ~s.o.s~
0
85
Member Avatar for Dean_Grobler

Hi all, Does anybody know what this "WSaction" is? What it does and most importantly how it works? I've tried googling this but hardly found ANYTHING.. I'm busy working with Servlets and as far as I can tell it checks what button was pressed in the HTML form.. But I'm …

Member Avatar for Dean_Grobler
0
104
Member Avatar for tennis

I am not familiar with Java, but I have a question about a Java code which is supposed to find the first non-repeat element in an array. [CODE] Hashtable<Integer, Boolean> positions = new Hashtable<Integer,Boolean>(); int[] elements = {2, 2, 4, 5, 1, 6, 0, 9, 1, 4, 5, 10}; for(int …

Member Avatar for NormR1
0
87
Member Avatar for safee86

// code to read the fasta file import java.io.*; import java.util.*; import org.biojava.bio.*; import org.biojava.bio.seq.db.*; import org.biojava.bio.seq.io.*; import org.biojava.bio.symbol.*; import org.biojavax.bio.seq.RichSequenceIterator; import org.biojavax.bio.seq.io.FastaHeader; import static org.biojavax.bio.seq.RichSequence.IOTools; public class ReadFasta { /** * The program takes two args: the first is the file name of the Fasta file. * The second …

Member Avatar for NormR1
0
306
Member Avatar for aro_kai

helo i am a begineer in java field..and i have to know about image processing so plz help me to get start with java in image processing.

Member Avatar for NormR1
0
136
Member Avatar for hari.sarvothama

I'm supposed to write a tcp server program which writes into a file a record as structure. The code is given below: [code] int n,i; cout<<"Enter number of student records"; cin>>n; for(i=0;i<n;i++) { cout<<"Enter id,name,average mark"; cin>>r[i].id>>r[i].name>>r[i].mark; } [/code] [code] int i,n1; FILE *fp; FILE *file = fopen("db.dat", "wb"); cout<<"Writing …

Member Avatar for Ancient Dragon
0
381
Member Avatar for debbiec1

I have somehow corrupted the search facility, probably the most important page on my website and have absolutely no knowledge of php at all. I have gone through the code and read some forum advice in case it was something simple, but just cannot see what is wrong. I also …

Member Avatar for chrishea
0
111
Member Avatar for Acute

Hi everybody, Is it possible to give a property default value without using constructor?

Member Avatar for hielo
0
89
Member Avatar for visitor11

i m using dev c++ for opencv i got problems in displaying image here is the code #include "cv.h" #include “highgui.h” int main( int argc, char** argv ) { IplImage* img = cvLoadImage( "M.jpg"); cvNamedWindow( “Example1”, CV_WINDOW_AUTOSIZE ); cvShowImage( “Example1”, img ); cvWaitKey(0); cvReleaseImage( &img ); cvDestroyWindow( “Example1” ); } …

0
83
Member Avatar for jonsan32

ANY advice would help. Even if you just say "It's im/possible" I have a basketball league with 500 teams to schedule every year, and would love a program that would alleviate that 2-week headache. If you know of any programs that can do this, or if you are willing/able to …

Member Avatar for jonsan32
0
136
Member Avatar for NewOrder

okay, what i am trying to do is to build a chess game. now i am at the begining of the code and i got stuck. i created 6 packages for each piece and one package for the chessboard. now the idea is to create a new array each time …

Member Avatar for NewOrder
0
318
Member Avatar for steveh000

Hi Guys I wonder if you can help me with this I have built an application that reads my forum and grades responses and things and adds them to a database,. When the application is searching my forum the gui is hanging until the search is complete. The front page …

Member Avatar for steveh000
0
273
Member Avatar for JaZzAr

hey all plz i need a little help .. look i am studying programing in 4th year .. my question that till now i know how to write any program in C++ but i didnt know how to make it an exe file, like any program found on our disktop …

Member Avatar for daviddoria
0
75
Member Avatar for Valaraukar

So, I have been working on some code with a group of people/organisations etc. and I've hit a small bump in the road that I thought someone on here may be able to help me with :) I have developed some code that draws 3D towers to represent the amount …

Member Avatar for Valaraukar
0
180
Member Avatar for gotnoname

Hi. I'm currently making a little game just for fun and I have something I want to do but just don't know how to go about doing it in a good way. I want to load in a level from a text file where: 0 = Wall (Can't walk here) …

Member Avatar for !adam
0
148
Member Avatar for Premsathishbe

public static double average( double... numbers ) { double total = 0.0; [B][I][COLOR="Red"]for (double d : numbers)[/[/COLOR]I][/B] { total += d; } return total / numbers.length; } can any one explain the line bold if posseble d program too...

Member Avatar for tong1
0
96
Member Avatar for akshayinbox

Hi. I thought I posted topic to an inappropriate forum. Please see the topic (and reply) here: [URL="http://www.daniweb.com/forums/thread307178.html"]http://www.daniweb.com/forums/thread307178.html[/URL] Thanks

Member Avatar for akshayinbox
0
113
Member Avatar for group256

Hi everyone, I have been playing with a piece of code that is to simulate "shortest job scheduler" for almost 2 days and there is a runtime bug which it's seems I am not able to find. Any help is really appreciated. Here is the code: [CODE] int sjf_scheduler(int number_of_jobs, …

Member Avatar for mike_2000_17
0
119
Member Avatar for bchaney

I've got a running and working database that's storing data into a *.sdf sql compact database. it's a fairly simple program and that's all i needed to store the data. is there a preferred report generator that i can run to query compiled data for reports? i've looked at a …

Member Avatar for bchaney
0
112
Member Avatar for silvertooth07

i'm having a problem on the program we're tasked to do. originally, the "option" is an int but someone suggested to make it a character. i thought the problem was solved (i want to make the program print: "invalid output" if the user inputted non-numerical values) but when i tried …

Member Avatar for mike_2000_17
0
184
Member Avatar for bninja

Help please I think there is Copy.to function but i cant find it :( I'm using VS2008 Thanks

Member Avatar for pritesh2010
0
1K
Member Avatar for srdva59

hi, i looking for something like this [url]http://dhtmlx.com/docs/products/dhtmlxScheduler/index.shtml?mn[/url] this can´t work for me because i don´t have php5 this is a sheduler they have a free and comercial version i looking for a free solution if possible. this must save and load from a db thanks a lot for your …

Member Avatar for srdva59
0
65
Member Avatar for AliSham

hi, i want to proram to serial ports please guide me good resources and links so that i can proceed. Plz in detail tell me how to start . thanks in advance

Member Avatar for ramakrishna.n
0
168
Member Avatar for P00dle

Hi Daniweb. I've been working on a project for quite a while, and posted many problems that I encountered on Daniweb. Thank you to all the users who helped me. Every single one of those problems where solved in less than 24 hours after posting on here. My project mostly …

Member Avatar for P00dle
0
168
Member Avatar for bettybarnes

I have made a form with access database,,, I'd like to have a form that when I add another employee,, EmpID, EmpName, EmpDept, and click the save button it will automatically save as well on the database...I don't know the code to do this..I hope you will help me solve …

Member Avatar for Animal Mother
0
97
Member Avatar for shaqtus

I'm using a gridview that is working off an object data source. The object data source is connected to my class library, which has a function that delivers a data table to the gridview. This is the function: [CODE] public DataTable populateGrid(string command) { DB db = new DB(); SqlDataAdapter …

Member Avatar for dnanetwork
0
87
Member Avatar for BobbieJean

Hi everyone, I've been debugging my program all night and I just can't quite come up with how to make my counter work. I keep feeling like I'm putting it, or maybe just part of it, in the wrong place so I've been moving it all over the place but …

Member Avatar for GeekByChoiCe
0
300
Member Avatar for 0xCMD

Greetings, I installed MySQL 5.1.48-2 on Fedora 13 64bit. Whenever I tried to connect using the terminal by typing : [B][user@work ~]$ mysql[/B] I get the following error: [B]ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)[/B] I also installed MySQL on Red Hat Enterprise 5 …

Member Avatar for 0xCMD
0
210
Member Avatar for jatinder_44

I am using AxMscomm1.output property of AxMscomm in vb.net It Giving error ,that Additional information: Exception from HRESULT: 0x800A017C (CTL_E_INVALIDPROPERTYVALUE). can i get some hlp.

Member Avatar for M.rahul
0
893
Member Avatar for scothy

Hi, I am newbie to developing a windows application using C#. In that index page, when a first textbox text changed, it should automatically add a new field below the first textbox. And if the second textbox ( child control)text changed, it should automatically add a new field below the …

Member Avatar for scothy
0
3K
Member Avatar for m_shanak

i have a Problem to know how much time the server take to execute an SQL command . I user Oracle Db and SQL DB thanx

Member Avatar for karant
0
110
Member Avatar for mobilevb

Could somebody help me with VB code that can send and receive SMS text messages to and from my PC via a GSM modem? I use VB 6 - Enterprise Edition.

Member Avatar for SRI2SRI
0
228
Member Avatar for ramjeev

Reverse words in the sentence without using any Java API or new array Eg. Input => 'this is the wonderfull island' Output => 'island wonderfull the is this' If any logic, pls let me know -- thanks, ramjeev

Member Avatar for jon.kiparsky
0
219
Member Avatar for 333kyle333

I asked this before, but I have to ask again considering I still haven't found a way to do this. I need to know if there's a way to take a variable inputted into a C++ program and pass it to the terminal as an environment variable. Again, I'm running …

Member Avatar for 333kyle333
0
177
Member Avatar for 7gakki

Hi, I got error when I tried to join two files mp3 in ASP.NET C# 'System.IO.Stream' does not contain a definition for 'WriteTo' How to fix that error? please help Here is my codes: [icode] using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using …

Member Avatar for rohand
0
230
Member Avatar for djbhoco

I am having problems with the following code. Here is my assignment for this week, Write the program in Java (with a GUI) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage, the term of the mortgage, and the interest …

Member Avatar for jon.kiparsky
0
333
Member Avatar for Maestro12

Please help me guys. Im trying to create a program where i have a car racing a plane. So far everything is alright except my plane won't move and only the car moves. This is my code in VB6 format 'we need two counters to store the number of wins …

Member Avatar for vb5prgrmr
0
135
Member Avatar for Phenneger
Member Avatar for nur_ahm4d

Hi, I was wonder if someone could give me some help with my program I have a variable: "playing football" and i want to split that into chars like so, 'playing', 'football' can you help me???

Member Avatar for jon.kiparsky
0
242
Member Avatar for ehsantl

Hi folks I'm trying to do my assignment in c++, I suppose to develope a maze traversal using backtracking algorithm. I have to write a constructor for my Maze with this sign. [CODE]Maze(**c, int size); [/CODE] which takes a n-by-n two-dimensional character array. Can you guide how can pass an …

Member Avatar for mrnutty
0
800
Member Avatar for KhairilSyahrin

Does anyone know any example of source codes that can receive a string(SCPI String) and send it to a SCPI library/module/commands? For example to those who know, GPIB has their own specific module that can be used in VB and what i need is somewhat that same specific module that …

Member Avatar for KhairilSyahrin
0
251
Member Avatar for Xeros606

I've been learning Java here and there for the past few years from high school classes, but I don't know if I have enough knowledge of programming to actually make something useful. What do you think someone should know to be considered a beginning programmer? I'm just trying to gauge …

Member Avatar for jon.kiparsky
0
109
Member Avatar for lewashby

[CODE]class FooBar: def __init__(self, value = 42): self.somevar = value[/CODE] f = FooBar('This is a constructor argument') f.somevar This is a constructor argument How can the parameter value know what kind of data it's going to be given? Int, float, string, etc? thanks.

Member Avatar for vegaseat
0
124
Member Avatar for pw_jamison

i know this partially asp.net as well... if i create an custom control like this protected void Page_Load(object sender, EventArgs e) { Control myUserControl = (Control)LoadControl("MyControl.ascx"); PanelX.Controls.Add(myUserControl); is there a way of responding to an event within that control... private void Button1_Click(object sender, System.EventArgs e) { Response.Write("WebUserControl1 :: I am …

Member Avatar for pw_jamison
0
106
Member Avatar for therobot

I'm having problems with unique(). I have some code that goes something like this: [CODE]std::map<int, CompCont> sysRelMap; for each(pair<int, CompCont> comp in sysRelMap) { list<pair<string,string>>::iterator newEnd = unique(comp.second.connList.begin(), comp.second.connList.end(), equalPair); comp.second.connList.erase(newEnd,comp.second.connList.end()); }[/CODE] equalPair is a small, simple function: [CODE]bool ScriptWriter::equalPair(const pair<string, string> first, const pair<string, string> second) { return (first.first.compare(second.first) …

Member Avatar for arkoenig
0
138
Member Avatar for spamwich56

Hi! This will probably be an easy question to answer but the solution is eluding me. I just started writing c++ programs and they work fine on my computer (I use visual studio to compile them). the problem I am having is I would run my program on another computer …

Member Avatar for treasure ola
0
114

The End.