Thanks! I got it now! Ctrl Z works wonders!
Type: Posts; User: slapgun87
Thanks! I got it now! Ctrl Z works wonders!
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!
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 ------...
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...
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...
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...
The error occurs at:
int calc_total_profit(int ip[4])
{
int item;
int tp;
for(item=0; item<=3; item++) {
tp+=ip[item];
}
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...
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]); ...