Click here to Skip to main content
16,005,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Windows Socket Link error Pin
Programm3r17-Apr-07 20:20
Programm3r17-Apr-07 20:20 
GeneralRe: Windows Socket Link error Pin
Syamlal S Nair17-Apr-07 20:26
Syamlal S Nair17-Apr-07 20:26 
GeneralRe: Windows Socket Link error Pin
Programm3r17-Apr-07 20:30
Programm3r17-Apr-07 20:30 
AnswerRe: Windows Socket Link error Pin
Paresh Chitte17-Apr-07 20:20
Paresh Chitte17-Apr-07 20:20 
AnswerRe: Windows Socket Link error Pin
prasad_som17-Apr-07 20:21
prasad_som17-Apr-07 20:21 
QuestionWin32 GUI Components Pin
Programm3r17-Apr-07 20:15
Programm3r17-Apr-07 20:15 
AnswerRe: Win32 GUI Components Pin
Michael Dunn18-Apr-07 5:45
sitebuilderMichael Dunn18-Apr-07 5:45 
QuestionLinked List Pin
Cmania17-Apr-07 19:45
Cmania17-Apr-07 19:45 
Well Im a student and yesterday appeared in external examination (Lab Test)for "Data Structure Using C".
I was asked to write a program to do following thing :
1.Read Unsorted data(Rno & Marks)from an existing data file.
2.Display Unsorted data.
3.Using Linked list, sort the data on the basis of Rno.
4.Display Sorted data in increasing order.
5.Display same sorted data in decreasing order.
6.Search a particular record on the basis of some key(Rno).

In response what i did was
1.Make a write() and read() function in C using fopen() and fread() and fwrite().
2.Create a singly Linked list and while reading data in read() it used to fill it in the same way as it was stored on file.
3.Display the unsorted list.
4.Use bubble sort to sort the list and display it in Increasing order.
5.Searching on the basis of Rno.


Sorry for posting such a huge amount of text but i wanna make things clear.
My teacher told me that I should have put data into linked list in ordered manner while reading from file i.e. somewhat Insertion sort. I agreed but argued on the fact that question paper didnt mention to force me to use the best technique so i was free to use any sort.
But the nutshell was that i was failed and was told to appear again for the test next year.
Can any tell whether im right or wrong so that i can go to my HOD for the same.

Spread wat u Know!

AnswerRe: Linked List Pin
Michael Dunn18-Apr-07 5:48
sitebuilderMichael Dunn18-Apr-07 5:48 
AnswerRe: Linked List Pin
Blake Miller18-Apr-07 8:38
Blake Miller18-Apr-07 8:38 
QuestionCalling Conventions Demystified Pin
Cmania17-Apr-07 19:28
Cmania17-Apr-07 19:28 
AnswerRe: Calling Conventions Demystified Pin
Daniel Grunwald17-Apr-07 23:11
Daniel Grunwald17-Apr-07 23:11 
Questionhow to load gif image under winCE?? Pin
goolie8317-Apr-07 19:00
goolie8317-Apr-07 19:00 
AnswerRe: how to load gif image under winCE?? Pin
Dmitry Khudorozhkov17-Apr-07 19:51
Dmitry Khudorozhkov17-Apr-07 19:51 
GeneralRe: how to load gif image under winCE?? Pin
goolie8317-Apr-07 20:21
goolie8317-Apr-07 20:21 
GeneralRe: how to load gif image under winCE?? Pin
Dmitry Khudorozhkov17-Apr-07 20:56
Dmitry Khudorozhkov17-Apr-07 20:56 
GeneralRe: how to load gif image under winCE?? Pin
goolie8317-Apr-07 21:51
goolie8317-Apr-07 21:51 
GeneralRe: how to load gif image under winCE?? Pin
Dmitry Khudorozhkov18-Apr-07 1:52
Dmitry Khudorozhkov18-Apr-07 1:52 
GeneralRe: how to load gif image under winCE?? Pin
goolie8318-Apr-07 16:46
goolie8318-Apr-07 16:46 
Questioncan these code fragments lead to a memory leak Pin
jossion17-Apr-07 18:38
jossion17-Apr-07 18:38 
AnswerRe: can these code fragments lead to a memory leak Pin
Stephen Hewitt17-Apr-07 18:42
Stephen Hewitt17-Apr-07 18:42 
AnswerRe: can these code fragments lead to a memory leak Pin
StevenWh17-Apr-07 20:06
StevenWh17-Apr-07 20:06 
QuestionHow to parse a file and to create a tree view from it??? Pin
syampj17-Apr-07 18:34
syampj17-Apr-07 18:34 
QuestionRe: How to parse a file and to create a tree view from it??? Pin
Hamid_RT17-Apr-07 22:04
Hamid_RT17-Apr-07 22:04 
AnswerRe: How to parse a file and to create a tree view from it??? Pin
syampj18-Apr-07 1:06
syampj18-Apr-07 1:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.