43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for bluanwht

I am having trouble with getting my data to display. The program works fine if I choose option 7 to display the balances and it exits if the user enters option 8 but I can't get it to perform the other functions. Can anyone help me to figure out what …

Software Development visual-basic
0
66
Member Avatar for Dio1080

I need to this program to let me enter in an letters A B C or D so this program can run, why isn't this program not working, please help. Here is my code: public class DriversLicense{ public static void main(String [] args) { //Students answers to the questions char …

Software Development java java-swing
0
299
Member Avatar for HeroOfTime

Hi, I am a first Year Computer Science student learning java. First, what I want help with is not a homework assignment, I just started it on my own. This program is supposed to test the "Chaos Game" The chaos game is explained here: [URL="http://mathworld.wolfram.com/ChaosGame.html"]Chaos Game[/URL] So, the basics that …

Software Development java java-swing
Member Avatar for HeroOfTime
0
151
Member Avatar for sarahger9

I'm working on a program that reads in from a file a list of customers and puts them in a vector. I did that. Next, there is a file for each customer that I put in this vector. I need to open the file, and "assign the data to a …

Software Development c++
Member Avatar for iamthwee
0
113
Member Avatar for BlZbB

hi i write a program to add a value in windows registry but it didn't work and doesn't add anything in registry, what's a problem? my assembler is masm32. and here is my code: [code=asm] .386 .model flat, stdcall option casemap:none include windows.inc include kernel32.inc include advapi32.inc includelib kernel32.lib includelib …

Software Development api assembly microsoft-windows
Member Avatar for BlZbB
0
269
Member Avatar for Krimi

hi there! how do i read a specific line from a text file? maybe im asking the wrong question, so i will try to explain what im trying to do :) i have a file that looks a bit like this(just with 1000 lines): 1 dudea addressa 1000 10000000 maila …

Software Development java
Member Avatar for Krimi
0
1K
Member Avatar for Butterflieq

I am going through and rechecking my work on a project and was hoping someone might see if I am on the right track. First off the project is as stated: A baseball team manager wants a report showing her players' batting statistics. A batting average is computed as hits …

Software Development c++
Member Avatar for Butterflieq
0
234
Member Avatar for Ratte

I have a person datafile of many entries. Persons will be stored in a linked list and each of the person amongst other things will have a linked list of items belonging to them. The object of the program is to use a quicksort algorithm to print out entries of …

Software Development algorithm c++ linked-list
Member Avatar for Narue
0
121
Member Avatar for PL.P27

Hi everybody, I'm fairly new to GUI and even newer to Java and I was wondering if someone can help me find my problem and how to fix it. The problem is I'm doing the game mastermind and I'm checking the guess but everytime I click the button a second …

Software Development gui java
Member Avatar for PL.P27
0
316
Member Avatar for rpk5000

n. Write a method that will convert a number from binary to decimal. The binary number will be passed in as an array of Booleans (a true represents a 1 and a false represents a 0.) This is part of a methods practice assignment I was given. I'm currently taking …

Software Development java
Member Avatar for rpk5000
0
225
Member Avatar for RexxX

Also argument 2 makes integer from a pointer with a cast. One argument is a struct declared in an included library. It's declared like: [code]struct pixelst *lzwArr; lzwArr = (struct pixelst *) malloc(pixels); // pixels is an int[/code] the second argument is an unsigned int 2D array. It's used in …

Software Development c
Member Avatar for Aia
0
3K
Member Avatar for tulsafork

Hi guys this is my first post on DaniWeb, I have searched for help on here for hours on hours. I am the webmaster at my high school and I have been given the project of making a Book Depository for one of our departments, one that would do the …

Software Development visual-basic
Member Avatar for cfry
0
119
Member Avatar for toolmanx

Since I closed my thread, I will just open this new one for a comment. I told you I had discovered an item in WinHelp called: "Opening and displaying a bitmap file" If you want a laugh when you get bored, pull that up and look it over. I wonder …

Software Development c++
Member Avatar for toolmanx
0
135
Member Avatar for kiel19

Write a program to find the number of times that a given word(i.e. a short string) occurs in the sentence(i.e. in a sentence!). Read data from the standard input. the first line is a single word, which is followed by general text on the second line. read both up to …

Software Development c
Member Avatar for WaltP
0
743
Member Avatar for n.aggel

hi, i was wondering if it is possible to send a struct through sockets... thanks in advance, nicolas

Software Development c
Member Avatar for n.aggel
0
265
Member Avatar for ITAutobot25

My delete button is not working and my due date is Sunday before midnight. Can anyone show me how to correct this error. My assignment statement is below as well as 5 classes. InventoryGUI is the main class to begin execution. I have a Data folder that contains my logo …

Software Development gui java java-swing
Member Avatar for ITAutobot25
0
2K
Member Avatar for jray344

I need to write a recursive function reverseInput that until the user enters zero it keeps on accepting numbers, then when done, outputs them in reverse order. Only thing, i cannot use strings or arrays or anything of the like and it must be done in one recursive function. It …

Software Development c++
Member Avatar for Ancient Dragon
0
117
Member Avatar for rani_techie

Hello Everyone, In my application i need to select a file using open dialog box. And then i dont need to open the file. I just need to display the name of the selected file in a text control. And then open the file in later part of the program. …

Software Development file-system python
Member Avatar for rani_techie
0
517
Member Avatar for WhitePunk

I formatted my computer and I want to install the visual basic 6.0... I can’t install it using my installer... I’m enjoying making programs and of course experimenting… hehehe… So I just wanna ask... If there’s any possible website where I can download to install visual basic??? Thanks and more …

Software Development visual-basic
Member Avatar for WhitePunk
0
90
Member Avatar for jray344

I don't understand functions that accept a variable number of arguments. I want to make a program with a max function taking any number of type double and returns the greatest of them

Software Development c++
Member Avatar for jray344
0
269
Member Avatar for squidd

I have it coded to where a small list can have dupes removed rather efficiently. But, the larger the list gets, the longer it takes to the point that it is better to not even try. A list of 15,000 lines would takes hours and hours... probably longer to remove …

Software Development delphi pascal
Member Avatar for squidd
0
806
Member Avatar for chris53825

Hey guys, I'm trying to read from a file and put each column into it's corresponding array. [code] % P_ID CPU_burst I/O_burst Priority 0 10 4 2 1 8 2 1 2 12 0 5 while ((Line=myInput.readLine()) != null) { StringTokenizer s = new StringTokenizer(Line); //System.out.println(Line); pid[counter]= Integer.parseInt(s.nextToken().toString()); cpu[counter]= Integer.parseInt(s.nextToken().toString()); …

Software Development java
Member Avatar for chris53825
0
99
Member Avatar for Rick1980

Hello All, I know that there is a similar thread about my problem, but I can't find it anymore. Well basically I want 2 objects to know from each other. I know that in C++ I have to use pointers to do that. I wrote some sample code to show …

Software Development c++
Member Avatar for Rick1980
0
2K
Member Avatar for dno117

Hello all, I am an online student in an intro to Java programming course and am a little stuck on my current program. I do not want the answer, but rather help figuring out what it is I am doing wrong. The program is supposed to prompt for an employee …

Software Development java
Member Avatar for dno117
0
875
Member Avatar for emilio

hello does anyone knows the meaning of the error undefined reference to main. i'm getting the error when trying to compile a file without a main function with -Wall option

Software Development c
Member Avatar for emilio
0
91
Member Avatar for tgifgemini

Hi everyone, I am attempting to access a database that is located in a shared server/ directory "K:\". Assuming I don't know where the database is located, how can I programatically tell vb to locate this database by searching all the network server directory? My database name is called: `PTS.mdb` …

Software Development visual-basic
Member Avatar for debasisdas
0
145
Member Avatar for GrazBurya

Hello All, I am trying to write a C program that reads a text file and output unique words sorted alphabetically using /usr/bin/sort. All non-alphabetic characters serves as delimiters and are discarded. I am having a problem just parsing the text file into words, getting SEG FAULTS. dbx gives error: …

Software Development c
Member Avatar for Salem
0
158
Member Avatar for alexasmith

Hey! I am new to java programing and need some help with some homework, here are the requirements: Right now I am working on just setting up my arrays but it is not working. I read the size of the array from the user and then tell the user to …

Software Development java
Member Avatar for alexasmith
0
173
Member Avatar for Questions???

After several hours I have figured this out, but because the % statement is confusing to me I was wondering if someone wolud not mind explaining to me my for statement in the following program? using System; /*This program is designed to identify the prime numbers from 1 to 100. …

Software Development
Member Avatar for Questions???
0
161
Member Avatar for kartik14

I have a question regarding the test condition of the [I]for[/I] loop.. For example, if the loop is say: [CODE]for ( int i=0 ; ( C1 && C2 ) ; i++ ) {// some code}[/CODE] My question is, if either C1 or C2 is false then the test condition is …

Software Development java
Member Avatar for masijade
0
446
Member Avatar for Barefootsanders

Hey everyone, I'm working on function that will take in a char array, prompt the user to input a string, and then return that string to the function. Below is what I've been working on and yes, I know it is not the right syntax, but I'm hoping someone could …

Software Development c
Member Avatar for Salem
0
210
Member Avatar for nabilchampion

Hi all I need to read a program in c/c++ in linux which shall read rtf file text and then informs me the information about the fonts properties of the text in rtf file. Can anyone tell me how to do that.. does any library exists for this that I …

Software Development c c# c++
Member Avatar for nabilchampion
0
1K
Member Avatar for toolmanx

I've tried to clean down this code so that it will demonstrate my problem but contains little else. Just enough to make a window. This code will compile on "BCC32" or "cl". I can't figure out why I get an "Invalid handle error" when trying to create a DIB. I'm …

Software Development c++
Member Avatar for Duoas
0
2K
Member Avatar for Duki

Hey guys, Here's my code: [code=c++]#include <iostream> using namespace std ; template<class T> class Pair { public: Pair ( ) ; Pair (T v1 , T v2 ) ; void setFirst(T newV ) ; void setSecond(T newV ) ; T getFirst() const ; T getSecond() const ; private: T first …

Software Development c++
Member Avatar for Duki
0
123
Member Avatar for astockton

I am trying to use a for loop to print the contents of a single dimensional array. I am trying to use the loop counter in the 'cout' statement to provide a heading for the contents of each array element. code is below. I am using MS Visual Studio to …

Software Development c++ visual-studio
Member Avatar for astockton
0
118
Member Avatar for wonderland

Hi, I need some help with average calculation. I have a homework where i must find average value, but this one is quite tricky, atleast for me. usualy it goes like that 1+2 average is 1,5. I have to do it like this: If i input 15 then program should …

Software Development c++
Member Avatar for zandiago
0
94
Member Avatar for leroi green

the below program is supposed to read the string you input and count the amount of times that the letter 'a' appears in it. if it doesn't find the letter 'a', it's supposed to tell you that there aren't enough arguments (which i may change to say that "there aren't …

Software Development java
Member Avatar for leroi green
0
136
Member Avatar for joshmo

I have gotten a problem compiling. the program gives me an LNK2001 error so there seems to be a problem with my function but i cant seem to find it..i am posting part of the function that calls and the original function being called void disp() time_info start, end; time_increment(hours_count,minute_count,day_count,month_count,year_count,start,end); …

Software Development c++
Member Avatar for joshmo
0
82
Member Avatar for swuwarrior

is there a way to convert a binary number to hex. im sure there may be a library that already does it for you ?

Software Development c++
Member Avatar for WaltP
0
62
Member Avatar for jimwalther

hey guys, im having a hard time making this switch function catch letters and return the error message. [CODE]int main() { int choice; do { /* THE DISPLAY MENU*/ printf("================================================\n\n"); printf("Welcome to Walther's Tic Tac Toe Game.\n\n"); printf("what would you like to do?\n\n"); printf("1 Play Tic Tac Toe\n\n"); printf("2 Quit\n\n"); …

Software Development c
Member Avatar for chandrasekharn
0
105
Member Avatar for jiu

Hi everyone, I'm a relative beginner in python looking for a bit of help on an error I get when running the script posted below. It is used to split data files in text mode. It runs through a list of files (using the glob module) and creates a number …

Software Development open-source python
Member Avatar for jiu
0
91
Member Avatar for balla4eva33

I've got this code I need to link together by creating the implementation (.cpp) file for. I've been given main.cpp and a header file. I need help on my Zoo.cpp file, specifically now on the "addAnimaltoZoo" function. Here's what I've got so far... main.cpp: [CODE] #include <iostream> using namespace std; …

Software Development c++
Member Avatar for balla4eva33
0
177
Member Avatar for DennisB

I am having problems trying to figure out exactly what is going wrong with my code. I am trying to create a factorial program using an array. I have tried, unsuccessfully, various ways to make it work but I can not figure it out. Any assistance would be appreciated. [code=c] …

Software Development c
Member Avatar for Narue
0
8K
Member Avatar for cllgegrl

I am writing a simple program that takes a string input from a user, stores it in a dynamically allocated array, changes it to upper case, and then prints. It works for all letters and symbols but when I use a space character, the program automatically exits. Can someone please …

Software Development c c# c++
Member Avatar for joshua.tilson
-1
95
Member Avatar for Koldsoul

I have to write a program for school that has user input ten movie titles and their corresponding ratings. This program must use parrallel arrays. There is more to the program but not needed for the issue I am currently having. I cannot seem to get the string for the …

Software Development c++
Member Avatar for Salem
0
104
Member Avatar for Duki

Could someone explain the difference between Overloading, Redefining, and Overriding functions? A nutshell answer will work fine; I just need something to stick in my brain for tomorrow's test. I know the concepts behind these tools, but I just need a simple way of defining the difference between them.

Software Development c++
Member Avatar for Duki
0
6K
Member Avatar for Seagull One

Sorry...this turned out to be such a long post.:sweat: Hello. This was originally a problem I was facing with the user interface for my robot, but my latest post was never answered there. Right now I'm experimenting specifically with this problem: verbal raw input. I've posted this problem in another …

Software Development python user-interface
Member Avatar for jrcagle
0
226
Member Avatar for Ccrobinson001

Could anyone help me with an issue that I have? I have a program that reads from a data file using an array and the data is structured as a long interger. I am trying to break up a long interger in to pairs i.e 141251 into 14:12:15 using c++.

Software Development c++
Member Avatar for Ccrobinson001
0
97
Member Avatar for toneeg

Can someone please help me with this? I have been struggling with this for days now, and for some reason, my instructor's help is not working for me. I am not sure if it is because he is from Germany and I am taking courses on-line, or if it is …

Software Development c c# c++
Member Avatar for toneeg
1
347
Member Avatar for Koldsoul

I am now writing a new program, a modification of a program I have done before but now with arrays. It is a currency conversion program that converts four currencies. User inputs the starting currency and the program will display all four of the currency conversions for the amount the …

Software Development c++
Member Avatar for Ancient Dragon
0
164

The End.