132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for thomasekugm

I am writing a small algebra io program for an intro to c class and i am stuck. The idea is to get the user to input (a * b) + (c / d) + (e % f), in exactly the same format as you see it with the exception …

Software Development c c++
Member Avatar for jephthah
0
231
Member Avatar for Griff0527

Ok, I have read several other questions basically asking the same thing, but I know this code can work instead of using other peoples work. Yes, i'm stubborn. I have written a function to be called from my main program and i keep getting an error that I cannot figure …

Software Development c
Member Avatar for jephthah
0
775
Member Avatar for Whizzy

Good day all. I am trying to write a c++ rpg game, learning c++ as I go. As I understand it, the example below is a basic class, and I can access my variables with dot notation. Along with the class functions or methods if you wish. Thats all fine …

Software Development c++
Member Avatar for NathanOliver
0
162
Member Avatar for kingsboro2008

This is my first working java game. I am thrilled it works. What I want to know is.... what can I do to improve it? I would like to use a simple datebase to collect every possible combination of computer names. I would like to collect new information every time …

Software Development java java-swing
Member Avatar for kingsboro2008
0
203
Member Avatar for yznk

I am writing a program that implements a topological sort. The actual question is as follows : Given a collection of n items and dependency lists for each item, determine whether the dependencies support a topological sort. If not, report this fact. Otherwise, find a topological sort of the vertices …

Software Development c++ ios
Member Avatar for yznk
0
115
Member Avatar for nunos

I need help with debugging this piece of code. I know the problem is in malloc and free but can't find exactly where, why and how to fix it. Thanks. [CODE] #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <unistd.h> #include <string.h> #include <sys/wait.h> #include <sys/types.h> #define MAX_COMMAND_LENGTH 256 #define MAX_ARGS_NUMBER …

Software Development c
Member Avatar for nunos
0
174
Member Avatar for lebron

This is problem part of my assesment I've done but my assesment says use a function to calculate the fuel cost and function should take 3 parameters : distance,economy(as litres per 100 kms) , and fuel price per litre. The function should return the total cost of trip. Could you …

Software Development python
Member Avatar for lebron
0
4K
Member Avatar for munna_001

I am very new c# , the code i wrote constantly sends the data to console i.e console.writeline. the class is called generate_data i created another GUI class that contains a textbox. i want to redirect all the output of generate_data to the textbox. everytime generate_data class produces output it …

Software Development gui
Member Avatar for munna_001
0
273
Member Avatar for bettybarnes

i have this problem with regards to java data the problem accepts input number and then output the sum of the square from 1 to the n(1 to the no. input) thus, if the input is 4 the output should be 288 because: 1 raise to 1 + 2 raise …

Software Development data-structure java java-swing
Member Avatar for huyyaya
0
98
Member Avatar for laghaterohan

i have a database (access database) which contains id and img column .The id column contains ID'S and img column contains their respective images. [B] When the user selects a particular ID at runtimes the picturebox should display the corresponding image... However the problem is how to achieve this ? …

Software Development display image
Member Avatar for Isaaac
0
142
Member Avatar for jeanfrg

Hi I'm a java intermediate student, I have been studying java for two years. I just wanted to offer my help to those students that are currently struggling with java in general, or those who need help on an assignment. Lately I have been ahead of my class so I …

Software Development java
Member Avatar for jeanfrg
0
121
Member Avatar for yasy

Write a function called nRandomNumbers( ) to performing the following: • Generates N random integers between -250 and 250 (inclusive) and save them in a file called number.txt, (Use the function srand()). • Prints all the generated integers. • Finds the average of all the negative integers, and the maximum …

Software Development c
Member Avatar for Adak
0
111
Member Avatar for flashkarni

hello all, i am new to VB. i am trying to execute SQL Stored procedures from a macro in excel. but i fail to do so. i managed to write a code that imports a table, but not to execute a SP or a function. heres my code: [code] Sub …

Software Development open-source sql visual-basic
Member Avatar for vb5prgrmr
0
110
Member Avatar for Mandana_bgh

hi I use log4j framework for logging my program. i insert log4j.xml in my project an test it. everything was ok and logfile correctly was put in path. but when i made jar file and copy it to linux and run it it return error [CODE]log4j:ERROR Could not open [log4j.xml]. …

Software Development apache java xml
Member Avatar for peter_budo
0
160
Member Avatar for Sseeth

Ok heres the problem Im working on a final project for a java course and one thing is blocking my path. import java.util.*; public class Controller { public List<CrewMember> list = new ArrayList<CrewMember>(); public void addItem() { CrewMember cm = Academy.load( MenuUtil.getAString("Enter the role: "), MenuUtil.getAnInt("Enter the id number: ")); …

Software Development java
Member Avatar for Sseeth
0
4K
Member Avatar for Idontknowc

I'm currently trying to create a code in Cygwin using pure C to display ASCII control characters that may be present in the text file in a ASCII control characters non-printable form. I can call to a text file to display its contents but in normal ASCII characters but I …

Software Development c
Member Avatar for Ancient Dragon
0
324
Member Avatar for Tabone3

Hi, I'm a bit new to java and I would like to make a program that save's and load the saved data that the user had inputted in my java program. For example I done a sort of a Bank System and when I close my program and restart it …

Software Development java
Member Avatar for Tabone3
0
186
Member Avatar for lowhzplayinfool

I havn't been able to find anything on the web which actually applies to what i'm trying to do yet. I have form1 which has 2 methods. These methods are the same but two versions, one with 3 variables in its parameter (?), one with 4. It is necessary for …

Software Development
Member Avatar for lowhzplayinfool
0
143
Member Avatar for yahooak

Hello. I just want to know if i have a file on my disk named 'c://blahblah/mypic.bmp' & want to show it via a Turbo c++ program. How to do that? i have googled it, but no solution.

Software Development c++ image
Member Avatar for Stefano Mtangoo
0
108
Member Avatar for CppBuilder2006

I have a problem with this Window Procedure. in new versions of Windows OS, when I run the program, at first everything is painted & then paintings disappear (until the window receives the next paint message) [CODE] long _stdcall WndProc ( HWND hwnd, unsigned msg, unsigned wParam, long lParam ) …

Software Development api c++ windows-api windows-vista
Member Avatar for CppBuilder2006
0
152
Member Avatar for asif_14443

I am using Data Reports throug Data Environment, and using Relational Database in MS Access.. I have prepared the query throuh SQL Builder(in data reports) and the query is running OK , but how can I pass parameter in this query to show the results on the data reports..... my …

Software Development visual-basic
Member Avatar for kvprajapati
0
236
Member Avatar for tgifgemini

[B][/B] Good morning everyone, can anyone give me example of how to programatically copy an existing database to another location and rename the copied version - sort of a backup. I have a database name "DbProd" which is located on a server, and I want to copy this database to …

Software Development visual-basic
Member Avatar for kvprajapati
0
2K
Member Avatar for ku95

Hi basically I'm current doing a connect 4 program that consist of 3 separate programs Connect4Model, Connect 4 Column and Connect4View... I'm trying to compile and run my connect4View program but for some what reason I'm unable to do so. Below I have supplied the code for the 3 programs. …

Software Development java java-swing
Member Avatar for peter_budo
0
209
Member Avatar for nickwl23

Hi guys.. I am having some problem with snake game project using JAVA Applet. I already have the sour code of a snake game from my friends, but I failed to make it functions probably under a JApplet. I need to do a similiar UI like click a start button. …

Software Development apple java java-swing
Member Avatar for nickwl23
0
201
Member Avatar for chihwei

Hi i just have a question, i was doing the pass midterm the question is asking that " Write a class Jacket, which has a boolean instance variable isReversible and a static int variable numJackets. There are no methods " correct Ans: public class Jacket { private boolean isReversible; private …

Software Development java
Member Avatar for peter_budo
0
200
Member Avatar for moni94

Hi. I made this program to capture the current screen in C#. In Visual Studio 2008, it worked perfectly, but now with VS 2010, I get the following exception: ExternalException - a generic error occured in GDI+ on the line where I save the bitmap: bmp.Save("screen.jpg"); I have looked everywhere …

Software Development visual-studio
Member Avatar for kvprajapati
0
117
Member Avatar for manowar666

Hi, I am building my first VB2008 application and I am trying to figure out a way to make some check boxes being checked when an entry from a combo box is selected on top of these check boxes. More specific, I am trying to describe the services offered in …

Software Development vb.net
Member Avatar for manowar666
0
164
Member Avatar for Bonolo

Hi all plz help i need to search my database using data from the combo box which works fine the problem that I an experiencing is that FIND function gives me a runtime error, saying the string is not in the correct format plz help. here is the code that …

Software Development dataset
Member Avatar for kvprajapati
0
127
Member Avatar for BuhRock

Ok, I know most of you will read this and think I am a liar, but I am really just trying to practice with multiple classes and methods. So I picked out a programming challenge from my book to see if I could get through it. I wrote the class …

Software Development java java-swing
Member Avatar for vchandra
0
125
Member Avatar for tanvirahmad

hi experts i m facing a problem , i m using these code for inserting data, but showing error “[B][U]The Conversion of the char data type to a date time resulted in an out-of-rang date time value . The Statement Has been terminated[/U] [/B] “ Their is "[B]ro_date[/B]" is [B]datetime[/B] …

Software Development vb.net
Member Avatar for tanvirahmad
0
142
Member Avatar for rahul8590

I have an array, which i want it common to both the f1.cpp and f2.cpp . since f1.cpp will be used to store some values in it and f2.cpp has to use it for some other computations , is there any way i can share these 2 variables . well …

Software Development c++
Member Avatar for WaltP
0
270
Member Avatar for c++student01

I keep getting NoClassDefFoundError so I cannot check if the rest of my program works. It works on the school computers but it does not at my house. I set up the path and classpath variables how my teacher told me for derby but it still will not work, any …

Software Development apache java java-swing
Member Avatar for vchandra
0
116
Member Avatar for lwschjang

Basically, I am having trouble figuring out how to work my if statements. The only one that works is the final statement and that is due to it not having the [CODE]if("#".equals(e.getActionCommand()))[/CODE] statement. So, how should I go about allowing the user to select the quantity in the combobox and …

Software Development gui java java-swing
Member Avatar for lwschjang
0
152
Member Avatar for sitieda

hi helper.. i tried search many time to search this but still dont have the answer here is my code.. [COLOR="Green"]textBox11.Text = Convert.ToString(textBox3.Text) - Convert.ToString(textBox4.Text); [/COLOR] and it error : Operator '-' [COLOR="Red"]cannot be applied to operands of type 'string' and 'string' [/COLOR] please help me..im new in programming

Software Development
Member Avatar for sitieda
0
129
Member Avatar for pinsickle

Hello, I'm working on a problem (Huffman Tree encoding/decoding) and I need to covert and Int to a char. I was trying to use [CODE] char temp = static_cast <char> (index); //index is an integer [/CODE] it compiles but if I try to print, it crashes so obviously that idea …

Software Development c++
Member Avatar for jonsca
0
269
Member Avatar for fugnut

I am writing a hangman program for class and so far I am able to read in and randomly pick a word from the file. The problem I am facing is counting the number of letters in the chosen word. Once I get that I can work on the rest …

Software Development c++
Member Avatar for jonsca
0
190
Member Avatar for andrew732

I'm not sure exactly what I'm looking for or whether it exists, but I was hoping to get any ideas from the assembly experts here. I do know basic x86 and ARM assembly from classes but have not used them much in "real life." Ideally, what I would like is …

Software Development assembly open-source
Member Avatar for andrew732
0
437
Member Avatar for bgx90

I am trying to place a friend function of a template class named sort in its own header file. I keep getting errors when compiling my test program. I have tried different things to fix it, but nothing works. My experience with template classes is limited as is my knowledge …

Software Development c++ file-system
Member Avatar for bgx90
0
237
Member Avatar for Ammar1990

Hi All, I am new to C language and am suppose to write a program that gives me an even integer with cube greater than 40000 and also is divisible by 7. This is what i have... [CODE]#include <stdio.h> #include <stdlib.h> #include <math.h> int main(){ float a,b,c,d,e; a=pow(40000,1/3); while(pow(40000,1/3)<=a){ a=b; …

Software Development c
Member Avatar for Adak
0
119
Member Avatar for JordanWalcaraz

Hi everyone, I know this is a very beginner inquiry, but I can't seem to figure out exactly what it is that I'm doing wrong. I'm using this tutorial: [url]http://www.sthurlow.com/python/lesson05/[/url] to build a simple calculator program. My version of Python is 3.1.2 here is my code: [code] loop = 1 …

Software Development python
Member Avatar for hondros
0
142
Member Avatar for ITGuy2010

Hello, I am trying a better way to write what I have coded below, the idea is I have a one dimensional array with set values and a rectangular array that gets the number of items entered each into a text box. 1. Is there a simpler way to get …

Software Development vb.net
0
45
Member Avatar for Gé48

When entering a value in dgv I want the Tab key to fire a routine. Works out ok only thing is I have to hit the Tab twice before it fires. Don't know why, is there a way to prevent it, so that I have to hit the Tab key …

Software Development vb.net
Member Avatar for Gé48
0
100
Member Avatar for angel19

hi, I have a simple monopoly style board game ready (in c++). I would like to ask you how can I add additional features to the game play such as ‘chance’ cards and ‘shake again’ squares. Is it possible to create a GUI interface for this game too? At the …

Software Development c c# c++ gui
Member Avatar for angel19
0
113
Member Avatar for gnarlyskim

Having issues with this program. I've been trying to identify all the areas where data is created, then tried to destroy it likewise after using it. I've put a lot of delete[] coef (coef is a pointer double array to hold coefficients). The program will run half the time, then …

Software Development c++
Member Avatar for gnarlyskim
0
130
Member Avatar for Fulladder

I am designing a cinema system I want to call a another class which has a arraylist method and then display the elements inside the arraylist. Please help I made two sample classes [CODE]Class cinema() . . . . public ArrayList<time> getTime() { for (Show show : getTime){ } return …

Software Development java
Member Avatar for quuba
0
3K
Member Avatar for Dream2code

Hi All, 1)I want to watch a directiory in unix using a shell script. 2)In case any change happens to any of the files inside that e.g new file creation or new directory creation or any file modification we need an automated mail. 3)Mailing part i will take care 4)on …

Software Development shell-scripting unix
Member Avatar for Dan08
0
156
Member Avatar for cool_jatish

hi........ can anyone tell me the connection strings to connect JAVA JAPPLET to sql server 2005 database and also the execution of SQL statement in java thanks

Software Development java sql
Member Avatar for Ezzaral
0
126
Member Avatar for ereruh

Hey. I'm making a Hangman and I have this code to retrieve a random word from a txt file: [CODE] private void ord() { Random random = new Random(); StreamReader read = new StreamReader("sweord.txt"); ArrayList lines = new ArrayList(); string line; while ((line = read.ReadLine()) != null) lines.Add(line); read.Close(); int …

Software Development
Member Avatar for ereruh
0
160
Member Avatar for softdev

Hi Guys, I am trying to create a game of a two way traffic with a human trying to move between the cars to the other side without being hit by a car. I can detect the collisions, but the main problem is my cars don't move. what maybe the …

Software Development java java-swing
Member Avatar for quuba
0
107
Member Avatar for ctrl-alt-del

Good afternoon all! (It is over here anyway, but chilly though) As per usual in a forum of this type, I find myself mindboggled by what is probably not that difficult to solve. Thus, I was hoping any of you could enlighten me. I am in the process of writing …

Software Development client-server
Member Avatar for Diamonddrake
0
238

The End.