Search:

Type: Posts; User: slapgun87

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,181

    Thanks! I got it now! Ctrl Z works wonders!

    Thanks! I got it now! Ctrl Z works wonders!
  2. Replies
    4
    Views
    1,181

    Edited

    I've set the size to 10 but if I enter "EOF" I get a continuous loop. What else do I need to do to terminate the program?

    Thanks!
  3. Replies
    4
    Views
    1,181

    Input Problem

    I need a little help here please. I'm having the user input integers until EOF is indicated.

    So here's my error:

    ------ Build started: Project: Project10, Configuration: Debug Win32 ------...
  4. Replies
    2
    Views
    922

    Headed down the wrong path...

    I can tell I'm headed down the wrong path... can someone please help me set this up correctly?

    Thanks!



    /*Page 270 #17 (Chapter 4)
    "Write a program that prompts for and accepts input of...
  5. Replies
    3
    Views
    1,111

    Thank you for bearing with me. I have refined it...

    Thank you for bearing with me. I have refined it more and here is my exact problem:

    It will not write to file nor display text in command window.

    Actually, if I add getchar() in the first if...
  6. Replies
    3
    Views
    1,111

    Opening and Writing New File

    I need some help here... I got this far... but i'm unsure how to do the rest. I need to open a file named users, a file named passwords, and match the user and passwords together.

    1) Add a third...
  7. Replies
    8
    Views
    1,427

    The error occurs at: int calc_total_profit(int...

    The error occurs at:

    int calc_total_profit(int ip[4])
    {
    int item;
    int tp;

    for(item=0; item<=3; item++) {
    tp+=ip[item];
    }
  8. Replies
    8
    Views
    1,427

    Sorry about that, my error. The program will...

    Sorry about that, my error. The program will accept the first profit margin (pm) from the for loop but then spit out the run-time error and won't allow me to input the (pm) for items 2, 3, 4. What...
  9. Replies
    8
    Views
    1,427

    Newbie Help ASAP

    I keep running into a run-time error... and it says that "tp" is uninitialized... what am I missing here?


    #include <stdio.h>
    #pragma warning(disable:4996)

    void input_sales(int [3][4]); ...
Results 1 to 9 of 9