Have the written this one program & unsure of how to reverse it so that it will have a sum check for the reciever & then sum check for sender and compare the 2 sum that will return zero.
...
Type: Posts; User: silhoutte75
Have the written this one program & unsure of how to reverse it so that it will have a sum check for the reciever & then sum check for sender and compare the 2 sum that will return zero.
...
I deleted the line of code recompiled then debugged. I am still recieving the error message.
INV_REC getDataB (FILE *binOutFile)
{
//Local declarations
int ioResult;
INV_REC...
No problem. I just appreciate the help. I have been working on this code for a while and I thought I had it then when I open the report it was empty. It was kind of like starting over from the start....
I corrected the merge problem but now there is a read problem with my binOutFile.
this part of the code is to read the merged bin file and prepare it to be printed. Here is the code.
...
I really appreciate your explianation. I now see the problem and I appreciate your help. It have a few bugs to work out of the rest of the program but that was the biggie.
Thank you again. If I...
I tried eliminating the while statement. This created many more problems. So I put it back in but how do I get my while statement to do what it is I want it to do. I understand the fgets reads a...
if(fread(&itemM1, sizeof(itemM1), 1, binFile1) == 1);
if(feof(binFile1))
itemM1 = sentinel;
if(fread(&itemM2, sizeof (itemM2), 1, binFile2)== 1);
if(feof(binFile2))
...
changes || to &&
while((fgets(&itemM1, sizeof(INV_REC), binFile1) != NULL) &&
(fgets(&itemM2, sizeof(INV_REC), binFile2) != NULL))
reran compiler.
These are errors I get now.
I have 2 txt files that I have converted to binary files. I need to take these two binary files merge them into one. The attempt I have made using a while loop created an endless loop. A fellow...
I have wriiten some code and I can't seem to figure out why the while the loop will not break. It just keeps looping in both the if statement and else statement. Could someone please help hash out...
I been working on a sample problem from our text book and I can't open the files I'm referencing can some help me, and explain what it is I need to do to be able to run this program.
Thank you in...
Creating a national seal was a more difficult task then our founding fathers
believed it would be. The idea was to create a national seal that would
illustrate the principles and ideals of our...
c:\documents and settings\administrator.home-inceydwazx\my documents\visual studio 2005\projects\11chapter\11chapter\chapter11assign-45.cpp(45) : error C2664: 'sscanf' : cannot convert parameter 1...
Would you be so kind as to help. I need help please...
Code it so that it prints not each character but each word separtely.
Ok did you suggestion and it is still getting hung up there at the initializer. I am stuck still.
I have been unable to figure out the problem with the initialization code.
int wordIndex = 100;
initialize(wordIndex, *(strng));
system("PAUSE");
Run-Time Check Failure #3 - The variable 'wordIndex' is being used without being initialized.
Ok added back in the line for initialization, made the changes as suggested and they worked perfectly....
Ok started over with my code. First trying to make it easier to read.
Second was hard to read so I goot confused. Now I am trying to separate my project into proper function calls. I need my program...
I see how this would help, however I'm not sure where I would put this statement? I was trying to determine it but it's all running together I can't seem to make heads or tails of anything right now....
I'm at a loss I'm not sure if I understand. where would I place code like this? Would I be using it after I've allocated the memory or throughtoutt he program? I'm sorry if I'm dumb tonight I'm...
Would I use a str to str comparison for that? I think I'm running into a problem. Could you help.
Your advice worked and I see what you mean. Thank you. Now I'm trying to get the program to print individual non repeat of the words. It's printing full sentences. Can you help. Could you advise me...
I am sorry what do you mean by rewind the file pointer. And where would I do this? I appreciate you help but I'm lost. Could you explain more.
Thank you.
ok. I've casted the type so that calloc to take care of the type casting of void to char. However then I get the error can't convert from char to char** I have tried dereferencing the char and other...