Hi I am building a GUI for a java compiler, and I am wanting the output of a shelled program to go straight into a textbox on my form instead of only outputting into the console window.
Anyone have any ideas??
I have tried the redirection command in a batch file
eg javac C:\text.java >...
ok forgetting everything else why doesnt the add bit work its the main thing i need to get working, it adds the main meal as 1.5000 and nothing for the side it doesnt multiply by the portions and its driving me mad heres the code
int addorder()
{
char option;
char state;
char meal...
ok well this may be a dumb idea but i thought i try and replace all the if and else statements with 2 switches one to represent the meal and one for the side order, but the 2 switches dont seem to like each other as the code i post below has it so the main meal works but the side order always...
ok i posted sort of the wrong code the prices were supposed to be different but i copied the ones b4 i changed it foolish me i know :-) thx for all the help ill have another try, and havent u ever wanted to order nothing ;-) (its not me that wants the none as a option)
can u tell me why i keep getting this error im really new to c, also im trying to call a function from a switch statement to display another menu can u help
Call to function 'exit' with no prototype in function main
ok my first post didnt really describe the problem propely as i didnt understand it myself, the kind of thing i need to do is as follows which im told needs to use a 2dimentional array, im really stuck now
e.g.
1.Beef Burger @£1.50 A. Chips @£1.50
2.Chicken Bites @£1.60 B. Salad...
i know its basic stuff but im a beginner and i need to make a program that is a basic resturant/food ordering program. i have worked out the switches to move between menus but im supposed to use a 2 dimentional array (whatever that is) to store the meals and there prices so the user can just...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.