ok nevermind, I fixed some of the compiler errors but right know I have too much on my plate to work on this. Thanks all for help and feel free to delete the thread.
Type: Posts; User: DeathEvil
ok nevermind, I fixed some of the compiler errors but right know I have too much on my plate to work on this. Thanks all for help and feel free to delete the thread.
thanks I will review it in a sec. Like I mentioned, there are no definitions because we won't write them (it would take way too long to write the whole program). as for gcc, my virtual machine with...
I cannot compile it because I'm missing definitions:) see this is just a review question for the final. I don't have time to write definitions as I'm studying few different things at the moment.
can...
I have an final today (5PM) and I was working through the review questions. The problem is:
A text file (A:\INV.DAT) contains 100 lines of inventory data formatted (C40, REAL, INT) for...
Update, as it turns out the validation of hours, pay_rate, and deferred is working now but the first and last name does not. What happens is, whatever I input it says it's too long (even when I type...
Erased
it worked!!! I swear I tried that yesterday and it was crashing in the middle...
anyways, now if I could only validate those damn strings... anyone?
well... I'm not sure how to validate first and last name, and validating hours, pay_rate, and deferred fails (no matter what I input, it accepts it)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void Input_Employee(char*, char*, char*, float*, float*, float*); //prototype
int main(void)
{
#define MAXFL 10 /*Maximum # of...
so that function should do the trick and be supported with ANSI C?
void flush(void)
{
int ch;
do
ch = getchar();
while (ch != EOF && ch != '\n');
clearerr(stdin);
ok thanks, will try that, and argue with him about fflush:D
Appreciate all the help
what is wrong with this first line?
fflush what my proff want us to use, that's what I meant by requirement
where did you found that first line in my code?
fflush is a requirement...
can somebody compile it and tell me what's wrong? pretty please?
this is only a fragment of the program so to eliminate confusion I made this part as the whole thing:
#include <stdio.h>
/********************************** Constants...
Thanks for the replies; unfortunately, the problem still exists.
when the user inputs first code number (10digit), I'm getting the results I want (code, remainder, pairsum, and encryption scheme...
Hi, that's a small part of my code
#define PAIRSUM(d1, d2) (d1-48)*10+(d2-48) //macro at the top
while (element < 3)
{
printf("Please enter number your credit card number ");
...