Showing results 1 to 17 of 17
Search took 0.01 seconds.
Posts Made By: lmastex
Forum: C++ 25 Days Ago
Replies: 4
Views: 189
Posted By lmastex
Re: Question (linked lists)

No, I am not lazy, I was just making sure, what if it "was not possible" :) ... thanks ;)
Forum: C++ 26 Days Ago
Replies: 4
Views: 189
Posted By lmastex
Question (linked lists)

Hey guys. Just a question.
Is it possible to use a stack class and a link list class in the same program so for example if I decide to create a list (using the link list class) and then from this...
Forum: C++ Dec 4th, 2008
Replies: 11
Views: 309
Posted By lmastex
Re: Not repeated elements in link list (help)

I replaced it to:
while( Ptr != 0)
But I still have the same problem.
I think I have to replace if(Ptr->Info.Age == Ptr->Next)
but I don't find the right way.
Forum: C++ Dec 4th, 2008
Replies: 11
Views: 309
Posted By lmastex
Re: Not repeated elements in link list (help)

Oh ok I see. I don't know why but when I add an element (using this code) and press Enter, a windows error occur and the terminal closes. Any ideas?
Forum: C++ Dec 4th, 2008
Replies: 11
Views: 309
Posted By lmastex
Re: Not repeated elements in link list (help)

If there is a break in line 23 to stop the element to be added, then why is line 34 is a deletion?

(Im having problems with the code "cpp Syntax" changed)
Forum: C++ Dec 4th, 2008
Replies: 11
Views: 309
Posted By lmastex
Re: Not repeated elements in link list (help)

Sorry I forgot ( I remember I used them though) Anyways.
The problem is that when I make an insertion of an element, I don't want to insert a repeated element, so if I inserted (Age = 20) and then If...
Forum: C++ Dec 4th, 2008
Replies: 11
Views: 309
Posted By lmastex
Not repeated elements in link list (help)

Hi.

I want my Insertion method in my link list class not to insert repeated elements. I have tried several ways but I have seriously ugly bugs in my code:


template <typename ListElement>
void List...
Forum: C++ Dec 4th, 2008
Replies: 4
Views: 139
Posted By lmastex
Re: Help (link lists referent)

Ok my mistake. I fixed it, sorry :P
Forum: C++ Dec 4th, 2008
Replies: 4
Views: 139
Posted By lmastex
Re: Help (link lists referent)

Hey again. I edited the code and it gives me an error.



template <typename ListElement>
void List <ListElement>::order()


{
Forum: C++ Dec 4th, 2008
Replies: 4
Views: 139
Posted By lmastex
Re: Help (link lists referent)

many thanks! I will try this logic in my insert method (which does not have to insert repeated elements) I hope to get it right! :)
Forum: C++ Dec 4th, 2008
Replies: 4
Views: 139
Posted By lmastex
Help (link lists referent)

Hi. Can you guys help me out with this link list method. The method issuppose to say if a list is in ascendent order or descendent order. I have this right now:


template <typename ListElement>
int...
Forum: C++ Sep 29th, 2008
Replies: 7
Views: 373
Posted By lmastex
Re: help with stream files

hehe right! Thanks man! ;)
Forum: C++ Sep 29th, 2008
Replies: 7
Views: 373
Posted By lmastex
Re: help with stream files

Ok, I replaced the code with the one you gave me. I have this now:


#include <fstream>
#include <iostream>
#include <string>


using namespace std;
Forum: C++ Sep 28th, 2008
Replies: 7
Views: 373
Posted By lmastex
Re: help with stream files

You mean I need to replace this with the whole read loop? And what about the dato and dato2
int variables? I want them to read them (the numbers in the file) and save them into these variables.
Forum: C++ Sep 26th, 2008
Replies: 7
Views: 373
Posted By lmastex
help with stream files

Hey again! ;)

This time I have this program which is supposed to read some stream file called "numbers.dat" which has the numbers 1 up to 10.
I get the reading, but the thing is in the for loop I...
Forum: C++ Sep 1st, 2008
Replies: 1
Views: 138
Posted By lmastex
help please

Hey guys. I'm just trying out something with the fstream library. In the next code, I'm trying to read from the beginning of the array (num1) and from the end of the array (num2) the file I have as...
Forum: C++ Jan 28th, 2008
Replies: 1
Views: 849
Posted By lmastex
decrypt/encrypt program

Hello guys! Im new in this forum and I hope to say for a long time since I'm new im programming right now.
Anyways, I have a big doubt on one assigment I have. I am not going to ask you to do it for...
Showing results 1 to 17 of 17

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 9:31 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC