132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hopeolicious

This is the code that is suppose to compute the class's average and standard diviation from a file which contains a collection of student ids and corresponding scores from my computer class and assign each student a letter grade. the class can have no less than 7 students and no …

Software Development c++ ios
Member Avatar for kon_t
0
163
Member Avatar for Mooonky

I took a course in C and now im into java. I never created anywith graphics in C. I need to finish a program in C that makes a red ball appear on a blue background and then move down and up the screen. Any information of how to at …

Software Development java
Member Avatar for Banderson
0
2K
Member Avatar for evilsilver

lol i have tried and tried and look and ignored it for a long time. but i just can't find this problem or find it's solution anywhere. Here it is i have a function called fight i need to call to it often but for some odd reason whenever i …

Software Development c++ display flash
Member Avatar for evilsilver
0
117
Member Avatar for blackdove

I have to define a class for equilateral triangles. The triangle should be defined by a center point (x, y) and the length of the sides. The class should have a constructor which allows defining the triangle, a constructor with no arguments, and member functions for the x coordinate, y …

Software Development c c# c++
Member Avatar for blackdove
0
161
Member Avatar for Gink

Can applets display images on the viewers hard drive somehow? If so how would I do that? And if I dont know the filenames but I know the directory, is there a way to do it?

Software Development display hard-drive image java
Member Avatar for jwenting
0
94
Member Avatar for Lord Felix

Well once again I have some trouble getting my lab to work. I am currently having trouble on an algorithm that is supposed to count the neighbors next to a cell in a Two-dimensional array which is supposed to resemble with the algorithm of Conway's Game of Life. For some …

Software Development algorithm first-post java
Member Avatar for Lord Felix
0
198
Member Avatar for evilsilver

ok guys lets see if you can see what's wrong with my program i have so far. it is for a role playing game but when you choose to "attack" in the program, when i play it, it won't let me attack now. the problem would be in the gameplaychoice …

Software Development c++ display first-post
Member Avatar for evilsilver
0
99
Member Avatar for compshooter

Ok, I have three queueus, MM, FP & TXT. Each of them contain objects which have variables associated with them. How do I access any of the variables that the front of my Queue points to? For example, I am trying to print out the name of the item that …

Software Development c++ queue
Member Avatar for compshooter
0
145
Member Avatar for stackOverflow

Hello everyone, I'm doing my bca 4th semester. I have to do a small project in c. I'm supposed to develop an editor using c. I need help. I've no idea how i can do this. I just have one month time. It can be anything like text editor...etc..etc. All …

Software Development c++
Member Avatar for alc6379
0
143
Member Avatar for roscioeak@direc

This is my first post here and so far I have been doing fine in my last C++ class but right now I am stuck. I have to make a program using an array that is initialized dynamically. You have to make a program that will input the rooms of …

Software Development c++ first-post
Member Avatar for alc6379
0
106
Member Avatar for fopah

i am trying to make a program that displays to the screen the prime factors of a given number. i have it all the way to the prime number checking i dont quite understand how to extract the prime numbers any help would be much appreciated

Software Development c
Member Avatar for Asif_NSU
0
352
Member Avatar for freesoft_2000

Hi everyone, I am trying to save the contents the of the jtable together with all its fonts and everything else. The program compiles without any errors but When i try to save the contents of the JTable an exception is thrown in the tablesaveas method in the below method …

Software Development display file-stream java java-swing
Member Avatar for freesoft_2000
0
119
Member Avatar for odee

should i use [COLOR=Green]#define[/COLOR] or [COLOR=Black]const[/COLOR] in declaring constant variables?? which one is better? when should i use [COLOR=Green]#define[/COLOR] or [COLOR=Black]const[/COLOR]? for example when i declare a hexadecimal (0x01), should i use [COLOR=Green]#define [/COLOR]or [COLOR=Black]const[/COLOR]?

Software Development c
Member Avatar for odee
0
203
Member Avatar for odee

Need help on assembly in Dev C++. i know that Dev C++ uses AT&T instead of Intel. but i need to know how to use int 10h in Dev C++. can anyone show give me the code?

Software Development assembly c++
Member Avatar for odee
0
157
Member Avatar for F50

HI guys, This code dosn't compile, I think it is right but it gives an error when i use the -> to access the members of my struct. #include <stdio.h> #include <stddef.h> #define MAX_EVENTS 100 //Structure for Queue Elements struct Event { int event_type; int time_value; int bus_num; int bus_stop; …

Software Development c++ queue
Member Avatar for Intel
0
193
Member Avatar for server_crash

I have the datasoure and drivers set up, but for some reason this code is not updating the database. [Code] import java.sql.*; public class TestCreateCoffeeTable { public TestCreateCoffeeTable() { } public static void main(String[] args) { try { String createStatement; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String dataSource = "jdbc:odbc:Coffeebreak"; Connection con = DriverManager.getConnection(dataSource); Statement …

Software Development java sql
Member Avatar for server_crash
0
144
Member Avatar for hopeolicious

I downloaded borland compiler but I dont know how to use it can someone help me

Software Development c++
Member Avatar for evilsilver
0
108
Member Avatar for seeplusplus

i need to create a class named rational, and i need to have the integer variables denominator and numerator in private. The i need to provide a constructor that enables an object of the class to be initialized when it is declared. then it says the constructor should contain default …

Software Development c c# c++
Member Avatar for Dave Sinkula
0
90
Member Avatar for nicole0904

How do I import a picture from a sequential file. I want the sequential file to have the pathname and filename and that to load the picture as the image.

Software Development image visual-basic
Member Avatar for Comatose
0
210
Member Avatar for freesoft_2000

Hi everyone, I have a question about threads. Consider the below program [code] public class test { public void test1() { System.out.println("Test 1"); } public void test2() { System.out.println("Test 2"); } public void test3() { System.out.println("Test 3"); } public static void main(String args[]) { test a = new Jtest(); a.test1(); …

Software Development java
Member Avatar for jwenting
0
106
Member Avatar for firebird

hi, i am very new to C++, i know almost nothing, how do i get the compiler to accept time as an input from a user.?????? I have to write a program to calculate the time distace given 2 times

Software Development c++
Member Avatar for Dave Sinkula
0
104
Member Avatar for LoS_RoOcKoO

Hello, i want to write a program to print out a table showing time in 0.1 sec, soldier’s position, arrow’s position, and the distance in feet between the arrow and the soldier every tenth of a second until the arrow hits the soldier or he escapes, if he was X …

Software Development c
Member Avatar for steveh
0
176
Member Avatar for evilsilver

ok is there a way to play a music file in c++. and are you able to display a .jpg image in c++ instead of just bitmap files? any help would be greatly apreciated.

Software Development c++ display image
Member Avatar for evilsilver
0
100
Member Avatar for paoloSCG

ciao, please i need a help. do you have some program, or some advice where to find it, to traslate by C++ a EXCEL file(full of EXCEL functions) in a file (.txt) with the functions ready to be used in C++ (i need C++ sintax! no EXCEL sintax...). i thank …

Software Development c++
Member Avatar for 1o0oBhP
0
207
Member Avatar for seeplusplus

alright, this program i wrote pops a menu up letting me choose one of the four options, after i choose an option, and it does that function, how do i get the menu to pop back up again so the user can choose another option? instead, my program does the …

Software Development c c# c++
Member Avatar for Intel
0
248
Member Avatar for tad73831

First, let me say I am NOT asking for someone to write this program for me. I have to see how functions and operations are used in programs to learn to use them in my own program. And I need help understanding how to use rand() in the program I …

Software Development c c# c++ flash
Member Avatar for evilsilver
0
352
Member Avatar for Tester2

I am one of the many people trying to grasp something new in this forum. I come here, because it seems to frequented by C++ experts, who actually try to respond. I am trying to learn how to program an HTTP protocol based text file download. I have searched far …

0
112
Member Avatar for Guppy25

Ok, so i changed the "/" to a '/' but i can't get my calculate decimal function for work. I want to call a private function calculateDecimalValue() that computes a floating decimal of the fraction inside the enterFractionValue() function after the num and den are filled. I'm not understanding how …

Software Development c++
Member Avatar for murschech
0
142
Member Avatar for mus_203

Hi I need to write a method that will rotate the elemnts in an array by a factor of k. ie shift each element k places to the right. Here is the question i have been set [B]In the class ArrayLinearList a linear list is represented in an one-dimensional array …

Software Development java
Member Avatar for mus_203
0
216
Member Avatar for George2

Hello everyone, I want to know which method owns the lock of a specific object (some of my methods are blocked because they can not achieve the lock of a specific object, and I am wondering which method owns the lock to solve the deadlock issue). Does anyone know how …

Software Development java
Member Avatar for George2
0
85
Member Avatar for George2

Hello everyone, I am looking for a light-weighted Web proxy in Java which can enhance the performance of my web server. I want it to be written in Java so that it can be used on any platform. I want to place the Web proxy between a specific Web server …

Software Development java web-server
Member Avatar for George2
0
110
Member Avatar for dr.danno

I am looking for ideas for a program that I am trying to build. I need to have two pictures, one blurred and one clear. The blurred picture will cover the clear picture so it appears blurred. I need the mouse to appear as a sight glass so when the …

Software Development c++ visual-basic
Member Avatar for 1o0oBhP
0
133
Member Avatar for helmica

i before asked for help in my c++ problem and every one told me i have to do more effort so that might help me with it. please guys here is what i have reached and note that i dont have the visual studio 6 on my pc. i wrote …

Software Development c++ visual-studio
Member Avatar for 1o0oBhP
0
180
Member Avatar for Guppy25

I've created a class Fraction, and declared a private static character to hold the slash for displaying the fraction in fraction form later on. I can't seem to get the static char to compile and I need to figure out what I've done wrong, thank you for the help, jennie …

Software Development c++
Member Avatar for Dave Sinkula
0
117
Member Avatar for freesoft_2000

Hi everyone, I have a jtable and i need a way to be able to merge or to split the cells(both the rows and columns) selected by the user. I have seen the table model and jtable apis' and there seems to be nothing about this. I would appreciate it …

Software Development java
Member Avatar for jwenting
0
106
Member Avatar for Sukiebaby

I am having a problem getting the execution screen to stay in order for me to view the program. Can someone tell me what is wrong with my program please? // /* A parking garage charges a $2.00 miniumum fee to pack for up to three hours. The garage charges …

Software Development c++ display
Member Avatar for evilsilver
0
251
Member Avatar for Ryan L.

Hello, I am a java/html novice. Actually I have no clue as to what I am doing. Currently I have some java applets that communicate with a server and display data based upon what state the equipment is in. Say an input to a system is true it will display …

Software Development display java
Member Avatar for freesoft_2000
0
179
Member Avatar for MrScruff

Hey guys n girls, I have two arrays (one for x and one for y axis) which contain labels i would like to display on a graph. How do you recommend i do this? I was thinking multiple JLabels, spread out depending on the quantity. But If theres a better …

Software Development display java
Member Avatar for MrScruff
0
101
Member Avatar for Acidburn

Hello, I've managed to get linux installed on my box. Using fedora core 3 with a full installation........ Man all those games :eek: Anyway I'm left with a question I completed a working code in nedit and saved it has a cpp file. I open but a konsole find the …

Software Development c++
Member Avatar for Intel
0
123
Member Avatar for helmica

hi all am having hard times since yesterday trying to solve this problem. Declare the following two integer lists: int a[] = {5, 8, 4, 1, 7}, b[] = {12, 3, 15, 6, 23, 1, 2}; int sizeA = sizeof(a)/sizeof(int), sizeB = sizeof(b)/sizeof(int); list<int> list1(a, a+sizeA), list2(b, b+sizeB); Use the …

Software Development c c# c++
Member Avatar for vegaseat
0
190
Member Avatar for Gink

Topic is misleading I edited it. What would be the best way to put a period at the end of a sentence without just adding it to the last word or last variable etc. Like say i had String s = "Hello I am a sentence"; what would be the …

Software Development java
Member Avatar for jwenting
0
137
Member Avatar for jenman77

I am taking a basic java programming class. Unfortunetly it is an online class, and I am unable to find a tutor. We are using the book Java How to Program sixth Ed. and are going through two to three chapters a week. I am soo lost!! My next lab …

Software Development java
Member Avatar for jwenting
0
189
Member Avatar for server_crash

I'm curious as to how many of you routinely use jdk 1.5 tigers added features, methods, api's and whatever. Or, do you just stick to 1.4?

Software Development api java
Member Avatar for nanosani
0
172
Member Avatar for Khishin

I have a PvP TicTacToe program running, and everything is working fine, except for one thing: when a text character (q,w,e,etc) is entered the loop goes wild. Here's the portion of the code the loop is in, and if a text character is input instead of a digit, the loop …

Software Development c++
Member Avatar for 1o0oBhP
0
116
Member Avatar for cdt1983

Hi, I have been trying to solve this problem for a while now. I wrote a program that analyzes 3 numbers entered by a user. All calculations are working fine. Now I am attempting to use 'if' statements to display the largest and smallest number entered. I am adjusting the …

Software Development display first-post java
Member Avatar for Gink
0
105
Member Avatar for Mooonky

I need the ball to move down until it hits the end of the blue rectangle then move back up until it hits the top and repeat forever. What's wrong with my code? [code] //This applet draws an animated bouncing ball with uniform speed. //The ball starts at the center …

Software Development java
Member Avatar for Gink
0
149
Member Avatar for hopeolicious

I have to write a program to read N data items into two arrays, X and Y, of size 25. Calculate and store the products of corresponding pairs of elements of X and Y in a third array, Z, also of size 25. Also, compute and print the square root …

Software Development c++
Member Avatar for Dave Sinkula
0
111
Member Avatar for april_er

how to lauch a program from the desktop using window application? and how to save a converstion of the textbox to a file?

Software Development vb.net
Member Avatar for april_er
0
162
Member Avatar for tux792

It has been many years since using the "$" for typing string variables and "%" for typing integer veriables and such. Now I have forgotten the rest! Does anyone remember the type casting symbols for "char", "double", etc? Example: ThisIsMyString$ or x$ or x% or BitBucket%, etc. I am programming …

Software Development pascal
Member Avatar for tux792
0
445
Member Avatar for shutupdave

Hi, For a school project i am making a quiz in vb. Im having trouble implimenting a countdown timer so that i could specify an amount of time before an action is taken. for example when a button is clicked there is 20 seconds before the next question is moved …

Software Development vb.net
Member Avatar for shutupdave
0
101

The End.