Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: FURY
  • Order by date
  1. FURY

    Capturing DOS program output into a text box in VB6

    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 >...
  2. FURY

    help with code

    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...
  3. FURY

    help with code

    ok it kicks up errors with the loop when compiling
  4. FURY

    help with code

    ok thanks
  5. FURY

    help with code

    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...
  6. FURY

    help with code

    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)
  7. FURY

    help with code

    i know but this is my first c program and i havnt a clue what im doing forgive my stupidity
  8. FURY

    help with code

    the problem is the total ordtotal doesnt work just gives me 0 and when it returns the the main menu the program exits
  9. FURY

    help with code

    was that a bad reply then :)
  10. FURY

    help with code

    can someone tell me why this code doesnt work? #include <stdio.h> #include <conio.h> #include <ctype.h> int main(void) { char c; char option; printf(&quot;\nMAIN MENU\n&quot;); printf(&quot;\n1. Add Order\n&quot;); printf(&quot;2. Chart\n&quot;)...
  11. FURY

    exiting a dos based program?

    ok thanks :)
  12. FURY

    exiting a dos based program?

    ok u stated &quot;you need to include the file that exit() is defined in...&quot; can u give me an example
  13. FURY

    exiting a dos based program?

    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
  14. FURY

    arrays

    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...
  15. FURY

    exiting a dos based program?

    ok if u making a program that just displays text in a dos window what code do u use say if u wanted a option on a menu for exit?
  16. FURY

    arrays

    thanks ill try that out in a min, :)
  17. FURY

    arrays

    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...

Part and Inventory Search

Back
Top