C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-05-2009, 01:59 AM   #1
Registered User
 
Join Date: Sep 2009
Posts: 4
Unhappy Binary File handling

Hi guys i need some help.

Program is as follows -

Create a structure stud(roll no, name, perc). write a menu driven prog to perform funtion on a binary file "student.dat". functions are -
a) add a student
b)search (by name n by roll no)
c) display

Please guys i need it urgently. HAALP!
codec_supreme is offline   Reply With Quote
Old 11-05-2009, 02:05 AM   #2
+++ OK NO CARRIER
 
quzah's Avatar
 
Join Date: Oct 2001
Posts: 10,262
Ok, first, you should create a structure named stud with some members, such as roll no, maybe a name, and possibly a perc member. Once you have that done, you should write a menu driven program to perform functions on a file ... maybe call it student.dat. You could have menu choices such as add student, search ... maybe by a couple of ways, such as by name or roll no? Oh, and something to display something also would be good.

Glad to be of assistance!

Quzah.
__________________
Hundreds of thousands of dipshits can't be wrong.


Are you up for the suck?
quzah is offline   Reply With Quote
Old 11-05-2009, 02:09 AM   #3
Registered User
 
Join Date: Oct 2009
Location: While(1)
Posts: 316
Try to write it man what are you waitin for that somebody will write for you what kind of person you are
RockyMarrone is offline   Reply With Quote
Old 11-05-2009, 02:11 AM   #4
Registered User
 
Join Date: Sep 2009
Posts: 4
Dudes, i need the code.
codec_supreme is offline   Reply With Quote
Old 11-05-2009, 02:11 AM   #5
+++ OK NO CARRIER
 
quzah's Avatar
 
Join Date: Oct 2001
Posts: 10,262
Tough ......... Get your ass to work.


Quzah.
__________________
Hundreds of thousands of dipshits can't be wrong.


Are you up for the suck?
quzah is offline   Reply With Quote
Old 11-05-2009, 02:12 AM   #6
Registered User
 
Join Date: Sep 2009
Posts: 4
Don't try to act smart. I am in dire need of the code.
codec_supreme is offline   Reply With Quote
Old 11-05-2009, 02:13 AM   #7
+++ OK NO CARRIER
 
quzah's Avatar
 
Join Date: Oct 2001
Posts: 10,262
No one cares. We're not here to do your work for you. If you aren't making an effort, get off of the forums.


Quzah.
__________________
Hundreds of thousands of dipshits can't be wrong.


Are you up for the suck?
quzah is offline   Reply With Quote
Old 11-05-2009, 02:15 AM   #8
Registered User
 
Join Date: Oct 2009
Location: While(1)
Posts: 316
What you can do Mr. codec_supreme that pay 100 $ to Mr quzah or any of the forum member then you will get help

and on your situation what i can just say simply
haaaaaaaaa haaaaaaaaaaaaaaaaa haaaaaaaaaaaaaaaaaaa haaaaaaaaaaaaaa
RockyMarrone is offline   Reply With Quote
Old 11-05-2009, 02:15 AM   #9
Registered User
 
Join Date: Sep 2009
Posts: 4
Ok how can i use fstream?
codec_supreme is offline   Reply With Quote
Old 11-05-2009, 02:16 AM   #10
+++ OK NO CARRIER
 
quzah's Avatar
 
Join Date: Oct 2001
Posts: 10,262
fstream is C++. I assume, that since you have an assignment, that you have a book? You should consider reading it.


Quzah.
__________________
Hundreds of thousands of dipshits can't be wrong.


Are you up for the suck?
quzah is offline   Reply With Quote
Old 11-05-2009, 02:22 AM   #11
Registered User
 
Join Date: Sep 2006
Posts: 2,517
You're in the wrong forum, codec-supreme.

fstream is part of C++, not C. If you want to write it in C, you may need to set your compiler or IDE options to use the C compiler, instead of the C++ compiler (and help maybe, also).

Your filename also needs to have the dot c extension on it, not dot cpp.

For C, you'll want fopen() and fread and fwrite.

Is your class in C or C++ ? Both languages can do this assignment, easily.
Adak is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie homework help fossage C Programming 3 04-30-2009 04:27 PM
Memory Address kevinawad C++ Programming 18 10-19-2008 10:27 AM
Dikumud maxorator C++ Programming 1 10-01-2005 06:39 AM
Binary Search Trees Part III Prelude A Brief History of Cprogramming.com 16 10-02-2004 03:00 PM
what does this mean to you? pkananen C++ Programming 8 02-04-2002 03:58 PM


All times are GMT -6. The time now is 03:39 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22