2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by lochnessmonster
0

Well first things first...This is C++ and not C, just look at your for statements and your includes.

Edited by gerard4143: n/a

0

thanks....but anyone happen to know what i am doing wrong with my pointer? and dynamically allocated memory for the linked list?

0

You have to understand, we can't even imagine why you have conditions like so

while(!( (scanRet != EOF && scanRet != 0) && (ptr[i].ssContrib >= 0 && ptr[i].ssContrib <= 8000) ) );

You have comments explaining why your including this library or that one but no comments as to why you have these gargantuan conditionals...If you look at most code. you'll find that simplicity rules.

0
do
		{
		flushall();
		printf("\nEnter ID: ");
		scanRet = scanf("%d", ptr[i].idNum);
		}while(!(scanRet != EOF && scanRet != 0));

i can find where is crashing when a value gets assigned to ptridNum; but im not sure why tho...

And sorry for the huge conditional. I'm not sure how i could simplify this conditional to be honest

Edited by lochnessmonster: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.