14 Discussion / Question Topics

Remove Filter
Member Avatar for Grn Xtrm

Hello. I'm trying to write a program that will convert a user input infix expression into its postfix form. My current code is allowing the user to input a string, but it does nothing with the string. I'm fairly new to JAVA, thus I think I'm making a simple mistake …

Member Avatar for cymercutie88
0
1K
Member Avatar for Grn Xtrm

Hello friends, I am having a problem writing a function to search for a string in an input file. I have successfully output the file with line numbers, which was the first step in the program, but now I am stuck on searching for a given string. After searching for …

Member Avatar for Tajon Wong
0
3K
Member Avatar for Grn Xtrm

Hello friends. I am experiencing problems using the getline function in C. I want to use the function to print line numbers next to the text of each line of an input file. I have successfully read in the file and printed its contents line by line. But when I …

Member Avatar for Grn Xtrm
0
116
Member Avatar for Grn Xtrm

Hello friends. I'm trying to write a program that accepts an odd number from 1-9 and outputs the diamond of asterisks as follows [code] user enters 5 _ _ _ * _ _ _ _ _ * * * _ _ _ * * * * * _ _ _ …

Member Avatar for Dave Sinkula
0
4K
Member Avatar for Grn Xtrm

Hello, as the title suggests I want to remove the code I supplied in posts made in a thread I started in the C forum. The reason I want to do this is because the program I wrote is for an assignment due next week. I know other students in …

Member Avatar for Grn Xtrm
-2
201
Member Avatar for Grn Xtrm

Hello friends. I'm very new to C and am still learning how to do basic stuff. I got the code to work in C++ (which I'm much more fluent in) but I'm having trouble converting it to C code. [code=cpp] #include <iostream> using namespace std; double factorial( int n); int …

Member Avatar for Grn Xtrm
1
202
Member Avatar for Grn Xtrm

Hey guys, I need your help with a very important matter. I'm starting a band with some of my friends from high school and we are odds in selecting a name for the band. My friend Ed wants the name to be Chicken N' Lamb (don't ask) while my brother …

Member Avatar for Grn Xtrm
1
206
Member Avatar for Grn Xtrm

Hello friends at Daniweb. Today I recieved my first Daniweb digest e-mail which implored people who have been members for many months to introduce themselves if they never had in the past. As I fall into this category, I would like to officially introduce myself now. My name is Tom …

0
32
Member Avatar for Grn Xtrm

Hello friends, I want to clear a table by clicking a button on a form. I have created the query to clear the table but I cannot make it the source for the command button on the form. Is this possible? Thanks for your time and help.

Member Avatar for Grn Xtrm
0
162
Member Avatar for Grn Xtrm

Hello friends, I'm working on a program that takes a number input from the user and recursively sums the number 'n' to one. For example, inputting a 5 would sum 1/5 + 1/4 + 1/3+ 1/2 + 1/1. I have sucessfully gotten the fraction sequence to display but I am …

Member Avatar for Grn Xtrm
0
793
Member Avatar for Grn Xtrm

Hello friends. I'm working on a program to sort a list object using toArray, Arrays.sort, and Arrays.asList. The problem asks that I then apply Collections.binarySearch directly to the list object. I know what the problem is (which I have stated through comments in my code) but I don't know how …

Member Avatar for Grn Xtrm
0
234
Member Avatar for Grn Xtrm

Hello, I'm facing another problem with vectors, this time with the problem of converting infix to postfix. The compile process completes, but I recieve an error after I enter the infix expression. Here is the exact error I recieve: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 43 >= 2 at java.util.Vector.removeElementAt(Vector.java:511) at …

Member Avatar for Grn Xtrm
0
142
Member Avatar for Grn Xtrm

Hello, I'm trying to write a program that evaluates a postfix expression using the vector class. I have done this successfully using stacks but I am experiencing trouble with vectors. Here is the error message I am recieving: I:\vector.java:26: type Vector does not take parameters public static int evalPostfix(String str, …

Member Avatar for Grn Xtrm
0
537
Member Avatar for Grn Xtrm

Hello. I'm working on a class hierarchy that starts with an abstract class called GeometricObject. I want to use this class to create classes of different types of triangles. I want to these classes to inherit the perimeter method from the Triangle class. Here's what I have so far. abstract …

Member Avatar for Grn Xtrm
0
914

The End.