Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
Intro Physics Homework Help
Advanced Physics Homework Help
Precalculus Homework Help
Calculus Homework Help
Bio/Chem Homework Help
Engineering Homework Help
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
Intro Physics Homework Help
Advanced Physics Homework Help
Precalculus Homework Help
Calculus Homework Help
Bio/Chem Homework Help
Engineering Homework Help
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Homework Help
Engineering and Comp Sci Homework Help
C: Sorting and searching data from separated files
Reply to thread
Message
[QUOTE="FactChecker, post: 5323485, member: 500115"] [COLOR=#0000ff][B]Mod note[/B]: Added code tags and fixed unwanted italics problem.[/COLOR] The first error message says that there is an error on line 37 where you are trying to set the values of an entire array of employees to the values of a single employee. [B]|37|error: incompatible types when assigning to type 'struct EMPLOYEE[1000]' from type 'EMPLOYEE'|[/B] Here is your code. x is an array of 1000 employees and you are trying to set it equal to a single employee, arr[ i ]. [code=c] EMPLOYEE x[1000]; for(i=0; i != EOF; i++) { x=arr[ i ] ;[/code] Another possible problem is that assignments of structures like EMPLOYEE can not copy values. You must copy the information part-by-part or use a pointer. Another problem is the test if i != EOF. I don't think that makes sense. [/QUOTE]
Insert quotes…
Post reply
Forums
Homework Help
Engineering and Comp Sci Homework Help
C: Sorting and searching data from separated files
Back
Top