|
Hi all,
I am starting with a contact manager application. And for this i need to have a double link list to get the data from the csv file.
So that i can add new contact, delete contacts, update contact and save contact.
Is linklist and node class already there in C++.NET
or do i have to create one.
And one more thing i would like to ask is do i have to sort the list before i can read it (using doubly linked list). I mean do i have to write a sort function. Which sort method would be best for this application ?
Thanks a lot
|
|
|
|
|
Why use such an antiquated structure ? simply use STL lists ( or vector ) or some .net collection classes.
Software_Specialist wrote: I mean do i have to write a sort function.
yes, or minimally, depending on your data structure, a compare function ( can be used to sort ) when inserting.
Software_Specialist wrote: Which sort method would be best for this application ?
The quicksort, or use the one that is used when sorting with the data structure you are using.
|
|
|
|
|
Maximilien wrote: Why use such an antiquated structure ? simply use STL lists ( or vector ) or some .net collection classes.
What do you mean by this. Well i am bit new in C++.Net(windows programming).
So by STL lists or .net collection classes we can perform the doubly linked list functionality or what ?
Is there any good link to learn all this..
Thanks for your reply
|
|
|
|
|
IMO, there are no valid reasons in 2007 to use a double linked list.
STL and .net collection classes hide the internal technicality, you only need to concentrate on the functionality of your task at hand; you don't need to know how the std::list or the System.Collections.SortedList are implemented.
|
|
|
|
|
Maximilien wrote: IMO, there are no valid reasons in 2007 to use a double linked list.
There is a reason to use a double linked list in 2007.
There is no need to reinvent the wheel by coding the double linked list by hand
-------------------------
Don't worry, be happy )
|
|
|
|
|
Software_Specialist wrote: I am starting with a contact manager application. And for this i need to have a double link list to get the data from the csv file.
Sounds like an appropriate application for a database.
led mike
|
|
|
|
|
In the System::Collections::Generic namespace, there is a doubly linked list called LinkList . However, as far as I know, you have to write your own sort.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
You might want to consider looking at the C5 Generic Collection Library:
http://www.itu.dk/research/c5/[^]
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
3. Write a program which outputs frequency of digits in a given integer. For example, if the number is 12424329, output will be
Number Frequency
1 (space) 1
2 (space) 3
3 (space) 1
4 (space) 2
9 (space) 1
Use a switch statement to obtain frequency of the digits.
This means nothing (space) i just put in so the numbers would line up
|
|
|
|
|
Big Timer? Big timers dont need help with their home work. Big timers dont cross post to multiple forums. Big timers dont post things to unrelated forums. More than anything, big timers dont call themselves big timers
How much are you willing to pay to have your homework done for you?
System.IO.Path.IsPathRooted() does not behave as I would expect
|
|
|
|
|
well its due tomorrow and i don't know how to do it so...
|
|
|
|
|
bigtimer1022 wrote: well its due tomorrow and i don't know how to do it so...
...so why did you leave it till now?
System.IO.Path.IsPathRooted() does not behave as I would expect
|
|
|
|
|
By the time I saw this, you had failed your assignment. One would hope that you learned from this to do your own work, instead of drinking and posting the question online at the last minute. If you do try to do your own homework in future, you'll find we'd love to help if you get stuck. Just not when you post a (trivial) question and show no sign of having made any attempt to solve it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi all,
I have a form that contains one button and one textbox, the textbox will take a number that will be passed to another form. I have done this successfully.
The thing is that I need the second form to create a number of pictureboxes = the number received from the first form.
Any ideas?
|
|
|
|
|
call:
gcnew PictureBox()
for each. Then set the Image and other properties as desired.
|
|
|
|
|
Hi kilroytrout,
I have done this in the Form_load as follows:
<br />
pictureBoxX = gcnew System::Windows::Forms::PictureBox();<br />
pictureBoxX->Location = System::Drawing::Point(24, 262);<br />
pictureBoxX->Name = L"pictureBoxX";<br />
pictureBoxX->Size = System::Drawing::Size(45, 49);<br />
pictureBoxX->SizeMode = System::Windows::Forms::PictureBoxSizeMode::Zoom;<br />
pictureBoxX->Image = Drawing::Image::FromFile("avg.jpg");
but nothing appears in the form
|
|
|
|
|
Did you add each PictureBox to the form's control collection?
form->Controls->Add(pictureBoxX);
|
|
|
|
|
Hi kilroytrout,
you helped alot
thanks,
|
|
|
|
|
Excuse me, if anybody has source code and document about Image Digitalizing then take them to me, please
|
|
|
|
|
You want source code in C++/CI ? What do you mean by digitalizing ? I have an article on this site for capturing images from a Canon camera, and a series on image processing. They are in C#, but you can obviously call those from C++/CLI ( but not from C++ )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I need to get the MicroSoft Cluster Solutions Internal IP and External IP.
are there any APIs provided by Microsoft to get the Cluster IP ??
|
|
|
|
|
If it is not related to managed C++, why dont you ask this question in VC++[^] forum ?
|
|
|
|
|
Thanks,
I will do that....
|
|
|
|
|
Hi,
I am trying to get the Cluster version and vendor id installed in the current machine.
I am using GetClusterInformation API for this...but i am getting "unhandled exception " problem for this..Please help me this.
Thanks in advacnce.
part of the code:
const int BufferLength=55345;
char Namme[BufferLength];
DWORD length = BufferLength;
LPCLUSTERVERSIONINFO lpClusterInfo;
lpClusterInfo->dwVersionInfoSize=sizeof(CLUSTERVERSIONINFO);
DWORD retVal = GetClusterInformation(cluster, name, &length, lpClusterInfo);
if i am using only GetClusterInformation(cluster, name, &length, NULL); this gives me the name of the cluster correctly.
|
|
|
|
|
programvinod wrote: LPCLUSTERVERSIONINFO lpClusterInfo;
lpClusterInfo->dwVersionInfoSize=sizeof(CLUSTERVERSIONINFO);
You are using uninitialized pointer.
You need to modify to ,
CLUSTERVERSIONINFO ClusterInfo;
ClusterInfo.dwVersionInfoSize=sizeof(CLUSTERVERSIONINFO);
DWORD retVal = GetClusterInformation(cluster, name, &length, &ClusterInfo);
p.s. Please read forum guidelines, such questions should be asked in VC++ forum.
|
|
|
|