43,549 Solved Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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++ ![]() | |
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 | |
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 | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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++ | |
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 | |
hi, i was wondering if it is possible to send a struct through sockets... thanks in advance, nicolas Software Development c | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 … | |
![]() | 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 ![]() |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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++ | |
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++ | |
![]() | 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 ![]() |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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 … | |
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++ | |
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++ | |
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 | |
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++ | |
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 … | |
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++ |
The End.