Forum: C++ Dec 14th, 2008 |
| Replies: 4 Views: 417 No, I am not lazy, I was just making sure, what if it "was not possible" :) ... thanks ;) |
Forum: C++ Dec 13th, 2008 |
| Replies: 4 Views: 417 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: 723 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: 723 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: 723 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: 723 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... |
Forum: C++ Dec 4th, 2008 |
| Replies: 11 Views: 723 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>... |
Forum: C++ Dec 4th, 2008 |
| Replies: 4 Views: 296 Ok my mistake. I fixed it, sorry :P |
Forum: C++ Dec 4th, 2008 |
| Replies: 4 Views: 296 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: 296 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: 296 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>... |
Forum: C++ Sep 29th, 2008 |
| Replies: 7 Views: 583 hehe right! Thanks man! ;) |
Forum: C++ Sep 29th, 2008 |
| Replies: 7 Views: 583 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: 583 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: 583 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... |
Forum: C++ Sep 1st, 2008 |
| Replies: 1 Views: 284 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: 1,245 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... |