15,917,953 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by 5fox (Top 9 by date)
5fox
24-Apr-12 11:12am
View
it's ok
thanks for your help!
5fox
24-Apr-12 7:25am
View
I use visual studio 2008 team system
5fox
23-Apr-12 11:15am
View
according to you, use list in list STL is better
5fox
23-Apr-12 11:04am
View
readfile function in #3 is not mine, so i can't understand it clearly!
5fox
23-Apr-12 10:03am
View
thank you!
5fox
23-Apr-12 9:15am
View
it still is. but the error is "an unhandled win32 exception occurred in filename.exe [1336].
if i have greater than 2 books, i think your readfile function can't add it to the list. This is my opinion, what do you think?
5fox
23-Apr-12 9:10am
View
can you explain clearly? I don't understand much, the syntax of write is char*
5fox
22-Apr-12 4:43am
View
Here is the detail:
struct USER
{
//.....
};
struct BOOK
{
//.....
};
struct Node
{
BOOK data;
Node* pNext;
};
int ReadFile(char* fname, Node* head)
{
//read data in binary file and add into linked list
}
int WriteFile(char* fname, Node* head)
{
//write data from linked list and write to binary file to store
}
void InsertAtE(Node* head)
{
//insert a new Node at end of the list
}
etc...
problem is:
with 1 linked list as mentioned above, I only process the BOOK list, I can't process the USER list unless I create an another linked list (struct NodeUser - with data field is USER - and create another function to process with NodeUser )
p/s: how to put code into tag c++ in comment box.
5fox
20-Apr-12 11:27am
View
Deleted
Can I use template<class t=""> to do it?
T represents structs
Show More