132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rockin_rebel

Hi everyone I am having a lot of trouble trying to get the toUpperCase method working. I have basically put a String of text into a character array and I want to convert a certain character in a certain place in the String to uppercase. Here is what I have: …

Software Development java
Member Avatar for rockin_rebel
0
3K
Member Avatar for guest7

Hi, I am getting the following error while compiling the code on linux machine. "aggregate value used where an integer was expected" I am getting this error on a simple for loop. I do not know the reason for this error. Any help is appreciated. Thanks

Software Development c++
Member Avatar for tux4life
0
66
Member Avatar for tintincute

hello I wrote a program where I can add the items and if it's more than 250 Euro, 10% discount will be given. I've used the "if-statement" and I just started only with two numbers. Now, I would like to add as many as I can, is there a way …

Software Development
Member Avatar for dickersonka
0
114
Member Avatar for richhoggan

I am working on a programming assignment for class and having a little trouble. The biggest trouble I am having is working with arrays and doing the hex calculations, then making the conversion back to decimal. I have included the assignment description below: Write a C++ program to perform addtion …

Software Development c++
Member Avatar for Intrade
0
444
Member Avatar for jacline

I wrote a code about circle starts to grow followed by finner circles, with each new one disappearing earlier while growing but in my code it is only growing how can I disappear the early one?? I didnt put the main method only classes [code] import java.util.ArrayList; import javax.swing.*; import …

Software Development java java-swing
Member Avatar for Ezzaral
0
176
Member Avatar for brizwhiz

My program compiles without any errors, however, when I go to run it all I get is a message saying "Welcome to the Payroll Program". From there it does not print anything else nor allows me to enter any information. If someone could please take a look at my program …

Software Development java
Member Avatar for BestJewSinceJC
0
1K
Member Avatar for songweaver

Hey guys I was wondering if you could provide some help, It is pretty complex for a person who is just starting loops. I have included the problem as well as the code I have below. Please help me, I know their is something wrong with my [B]for[/B] loop as …

Software Development c++
Member Avatar for songweaver
0
196
Member Avatar for Crago3

Hi I am having a problem in the sixth edition on starting out with C++ programming. I need the full code of how to do it cause I am getting errors and dont know what I am doing. The question ask.Write a funtion named coinToss that simulates the tossing of …

Software Development c++
Member Avatar for Narue
0
459
Member Avatar for cbreeze

Ok so this is what I am trying to do but seem to have a problem with my input loop because it keeps reading in only the first set of student data. I am also unsure where to put the cin.ignore because my getline function is not working. Please fogive …

Software Development c++
Member Avatar for cbreeze
0
112
Member Avatar for Malestryx

Good afternoon, I am currently working on a payroll program for school. I have a question. Here is my code. [ICODE] #Mainline def employee(): global eName global pRate global hWork def Lowest(hoursList): PAYList.sort() lowestPay = hoursList[0] return lowestPay def Highest(hoursList): hoursList.sort() highestPay=hoursList[len(hoursList)-1] return highestPay def Average(hoursList): total=0 for hour in …

Software Development python
Member Avatar for Malestryx
0
167
Member Avatar for adamsn

Greetings Please help. I developed a programme in vb6. It refuses to open on Vista. I do not experience any problems with XP. Thank you

Software Development visual-basic
Member Avatar for hkdani
0
92
Member Avatar for vict0rjr

/** * This method will ask the user for some information, create a blank picture to use as a palette and create and display the palette. */ 186 public static void main(String[] args) { 187 int redValue; 188 Scanner sc = new Scanner(System.in); 189 System.out.print("Enter a Red value: "); 190 …

Software Development java
Member Avatar for vict0rjr
0
142
Member Avatar for petike

Hi all, I am working on the "Pacman" game and I want to use the "double buffering" technique for animation. By now, I have used this code: [CODE=Java] class GamePanel extends JPanel { public void paint(Graphics g) { // Do some drawing here... } } [/CODE] and there was by …

Software Development java
Member Avatar for Ezzaral
0
274
Member Avatar for Acedia

I'm bored, if there's any socket programming that someone needs post a comment, and I'll see what i can come up with. :)

Software Development socket-programming
Member Avatar for Acedia
0
95
Member Avatar for 123james456

Can you compare strings with if, or do you have to use something else? Can you compare strings at all? Im attempting to write a console program just for fun. Eventually I want it to be able to move around files and such but im not even close to that …

Software Development c++
Member Avatar for 123james456
0
104
Member Avatar for atreides27

"Define a class Student that has as its members the student_name and a student_idnumber both of type string. Input from the keyboard the number of students in the database, then create a dynamic array of type Student and input the information for each student. Once you populate the database (stored …

Software Development c++
Member Avatar for jbennet
0
268
Member Avatar for u8sand

Hello everyone, i have not posted here in a while. But i have a question about a string class I'm creating. Every time i make a string class this always happens, and i cannot figure out why. Maybe its something i didn't include or something i have to add. But …

Software Development c++
Member Avatar for tux4life
0
124
Member Avatar for JooClops

Hi, I'm new in this forum :D I've started learning C# @ school 1 year ago , and i love it,and it's going very well, now We had 2 lessons of Windows applications in C#, and to be honest i find it much harder than console application. now we have …

Software Development
Member Avatar for JooClops
0
406
Member Avatar for endisbegun

so i have some code that ive been working on, and dare i say, understanding, involving linked lists, only i've hit a wall I need to add a new structure, called date, so that a day, month, and year, are associated with every node, for rolls, jam, and tea, and …

Software Development c++ linked-list
Member Avatar for endisbegun
0
128
Member Avatar for raul15791

Hi, If i need to use many same components in a window form (let say 20 picture boxes or 20 text boxes), which of the method below is more efficient?? 1. Drag and drop the component 20 times. Configure their properties one by one. 2. Declare array of that component …

Software Development vb.net
Member Avatar for raul15791
0
310
Member Avatar for ganmo

Hi, I wonder if it's possible to check whether a MySQL DB has updated. e.g. new information is added to a table? and if it detect an update. it will perform search or something else. Main question is if it is possible to listen for changes in the db.

Software Development java
Member Avatar for masijade
0
113
Member Avatar for externalaw

Hi, I am Mike and run a small law student site, recently I was donated a dictionary and have a glossary system installed on my forum. I am pretty bad with scripting but hope someone can help me along, What I want is to put the dictionary written like this, …

Software Development shell-scripting
Member Avatar for externalaw
0
144
Member Avatar for dollycharm

I need some help with avg... I am attached files for xml --- I am struggling.... the question i have is : 1. What is the average speed of all the dinosaurs? A. <xsl:value-of select="format-number((sum(dinosaurs/*/speed[@units='mph'])div count(dinosaurs/*/speed[@units='mph']))"/>ft it does not work... or B. <xsl:value-of select="sum(//speed) div count(//speed)" /> or C.9. <xsl:value-of …

Software Development xml
Member Avatar for xml_looser
0
331
Member Avatar for maha2804

I have created an application. It is a little bit heavy application and i hv tried to minimize the number of functionalities in OnPaint() methods of the various forms. But still my application takes time to repaint the view after it is restored from minimized state. Is there any method …

Software Development
Member Avatar for maha2804
0
86
Member Avatar for abhi_elementx

hi all. I want to ch ange my jframe's icon(cup of coffee). i chkd the forum but that's what i m doing... here's my code: [CODE]public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { AppStarter dialog = new AppStarter(new javax.swing.JFrame(), true); dialog.setLocationRelativeTo(null); dialog.addWindowListener(new java.awt.event.WindowAdapter() { public …

Software Development java java-netbeans java-swing
Member Avatar for abhi_elementx
0
194
Member Avatar for cygnusX

I want to add LinkLabel-s at the end of the text in RichTextBox control.I do that with this code: int index = richTextBox1.Text.Length; Point position = richTextBox1.GetPositionFromCharIndex(index); LinkLabel label = new LinkLabel(); label.Text = "whatever"; label.AutoSize = false; label.Location = position; label.LinkBehavior = LinkBehavior.NeverUnderline; richTextBox1.Controls.Add(label); The problem here is that …

Software Development
Member Avatar for dotmon
0
870
Member Avatar for nschessnerd

I need a nonblocking socket so in an older version of the program i made a new thread to do this. and now that ive migrated into visual c++ it crashes with no explination... yea im really aggravated... can anyone tell me why this crashes? [code] #include <iostream> #include <winsock.h> …

Software Development c++
Member Avatar for nschessnerd
0
97
Member Avatar for christiangirl

Hello, this code is throwing and IOException and FileNotFoundException and I am having trouble figuring out why. Where exactly does the song need to go in order for the program to pick it up? Also, is this code for putting the song in the program correct? Thanks! [code] //Hangman a …

Software Development audio gui java java-swing
Member Avatar for christiangirl
0
138
Member Avatar for sfrider0

I have been working on this for a few days now. I'm just trying to make a deep copy of a template linked list. I have successfully copied the list, but when I enter a new item to the new list, it also adds it to the original list. I'm …

Software Development c++ linked-list
Member Avatar for jencas
0
121
Member Avatar for maximilian2006

I couldwrite a customize JButton in java What I mean by a customize JButton is that I overridden some of it's methods, such as paintBorder, paintComponent. I could write a round,triangle or any other shaped JButton. I wonder how to write a different shaped JFrame, such as round or triangle …

Software Development java
Member Avatar for JamesCherrill
0
122
Member Avatar for Teropod

Hi all! I have one problem when i try to open exe with shell function it works fine but how can i open XY file using program who is designed to open that file. For example i have picture in mad in corel draw and i want tu open that …

Software Development visual-basic
Member Avatar for cguan_77
0
108
Member Avatar for sweet cLassy

While Not EOF(hfile) Line Input #hfile, buffer [COLOR="Red"] Data() = Split(buffer, ",") [/COLOR] i = i + 1 With fghStudentInfo .TextMatrix(i, 1) = Data(0) End With Wend i'm new to VB. can someone help me to understand the command? i want to load the data from .csv to my vb …

Software Development vb.net
Member Avatar for sweet cLassy
0
145
Member Avatar for abhi_elementx

Hello guys. I am doing a swing application wherein I m using a DefaultTableModel. Here's my code: [CODE] DefaultTableModel tab = new DefaultTableModel(){ @Override public boolean isCellEditable(int r, int c){ //if(c == 10) {return true;} return false; } }; private JTable jt = new JTable(tab); [/CODE] The JTable will diplay …

Software Development java java-swing
Member Avatar for abhi_elementx
0
112
Member Avatar for massivefermion

Hi I have 4 questions 1-Is it right that when you learn assembly you learn machine language,too?How? 2-What makes a programming language feature OS dependent? 3-Does Assembly have OS dependent feature?what about HLA? 4-How can i write an OS independent program(bootable programs)? thanks alot

Software Development assembly
Member Avatar for BestJewSinceJC
0
122
Member Avatar for Upsilon

Hi guys, Just a question I think many people like myself would like to know the answer to. I have been using the Graphics2D class and it works great, however now I want to do some 3D things. I would like to know how to place ellipsoids in 3D space, …

Software Development java mathematics
Member Avatar for BestJewSinceJC
0
288
Member Avatar for VernonDozier

I am trying to learn GridBagLayout. I've gotten the hang of it in many respects, but I am having serious problems when the first row has element(s) with a gridwidth greater than 1 or the first column has elements(s) with a gridheight greater than 1. I'm trying to make a …

Software Development gui java java-swing
Member Avatar for VernonDozier
0
405
Member Avatar for lehe

Hi, Here is my code, [code] ids=(1 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 90 100 110 120) for ((i=0;i<${#ids};i++)); do awk '{ print ${ids[${i}]}" "$1; }' > ${TMP} < ./results/$1${ids[${i}]}/test_error.dat done [/code] I got this error [quote] awk: { print …

Software Development shell-scripting
Member Avatar for Fest3er
0
172
Member Avatar for nschessnerd

Hey so as i mentioned here [url]http://www.daniweb.com/forums/post840142.html[/url] i need to check if a process is responding by using sendmessage however i have no idea how to get the hwnd because i start the process using system::diagnostics::process [CODE] process->StartInfo->WorkingDirectory=sinfo->workingDirectory; process->StartInfo->Arguments=" -exec "+sinfo->init+" -port "+sinfo->port+" "+sinfo->options; process->StartInfo->FileName = sinfo->exe; process->StartInfo->UseShellExecute=true; [/CODE] so …

Software Development c++
Member Avatar for seanhunt
0
1K
Member Avatar for bbloopa

I am new to programming and am having trouble with a school assignment. I need to make a class planner that prints out information after the user enters it and then askes for specific class numbers. The user enters the following information (in this order): 1. Name of Class 2. …

Software Development c++
Member Avatar for bbloopa
0
88
Member Avatar for sid78669

I am trying to create the meta tag: [CODE=HTML]<META HTTP-EQUIV="Pragma" CONTENT="no cache">[/CODE] I tried the following line: [CODE=PERL]print $cgi->start_html(-title => 'Meta Test', -meta=> { 'HTTP-EQUIV'=>'Pragma', 'CONTENT'=>'no cache'}), "\n"; [/CODE]But I get this: [CODE=HTML]<meta name="HTTP-EQUIV" content="Pragma" /> <meta name="CONTENT" content="no cache" /> [/CODE] Can someone tell me how to create the …

Software Development perl
Member Avatar for sid78669
0
164
Member Avatar for gabec94

Hi I am trying to write a function [I]password_input(prompt, password)[/I] that will repeatedly ask for a password using the given prompt until the given password is entered. I have testing code, but I am completely lost upon how to do it and where to begin. This is the testing code: …

Software Development python
Member Avatar for Flameass
0
119
Member Avatar for tiki_master

I have the following code below which is part of a program to create a Huffman Coding tree. The problem is that it runs through correctly for one node, outputting that character 'l' for a certain file has a specific frequency. However...after going through several iterations, it runs into a …

Software Development c++
Member Avatar for seanhunt
0
136
Member Avatar for zahraj

hi how to copy or move array to another array [ICODE]for example: Dim arr1 As New ArrayList Dim arr2 As New ArrayList[/ICODE] and arr1 has values ...I want to copy or move all values to arr2 with out use for loop to copy each value help me!!!

Software Development vb.net
Member Avatar for toko
0
109
Member Avatar for Barbarrosa

Aight well I figured that the simplest way of getting the text would be to directly check bit for bit if its the same letter. What I got so far is I am trying to seperate each letter from an image. Then I go letter to letter line to line …

Software Development
Member Avatar for zack999
0
203
Member Avatar for bsdpowa

Hi, I have a home assignment in C#, I need to make a simple one-way linked list and I'm having trouble. I can make all kinds of linked lists in C++ with no problem at all but I can't do it in C# and that's because I can't access memory …

Software Development c# linked-list
Member Avatar for bsdpowa
0
114
Member Avatar for dessolator

Hi, I'm trying to read certain values from a text file and store them in a variable/string so that I can populate a combobox with the values. I have my read stream etc, but I'm unsure about how I would pick out certain data from the text file that I …

Software Development data-structure file-stream
Member Avatar for Acedia
0
134
Member Avatar for sarahnade17

The program I'm trying to write uses a linkedList templated class to manipulate and add polynomials in the form ax^b + cx^d + ex^f etc. The polynomials are stored as linked lists. My problem occurs when I try to add them together. I've added some cout lines to try to …

Software Development c++ linked-list
Member Avatar for sarahnade17
0
114
Member Avatar for PC_Nerd

Hi, I'm trying to create an array or <list> of different objects ( of different type). All of the objects will have parent objects of a Manager type, but each one ( as a singleton) will be in the array/list. It's for some networking code I'm building, where each incoming …

Software Development c++
Member Avatar for PC_Nerd
0
114
Member Avatar for CPPRULZ

Hello I am currently making a program for a database which includes an SSN. The user can input the ssn but I want it in xxx-xx-xxxx and to make sure the user ddoes this have the user input 3 numbers then 2 numbers then 4 numbers in seperate cin statements: …

Software Development c++ ios
Member Avatar for ArkM
0
116
Member Avatar for YingKang

The function should remove all the occurrences of an integer (say, removeItem) from an array. If the value does not exist or the array is empty, ,output an appropriate message. My program is able to print the array without all the occurences of removeItem , but I don't know how …

Software Development c++
Member Avatar for YingKang
0
195

The End.