Forum: C++ 25 Days Ago |
| Replies: 4 Views: 189 |
Forum: C++ 26 Days Ago |
| Replies: 4 Views: 189 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 |
Forum: C++ Dec 4th, 2008 |
| Replies: 11 Views: 309 |
Forum: C++ Dec 4th, 2008 |
| Replies: 11 Views: 309 |
Forum: C++ Dec 4th, 2008 |
| Replies: 11 Views: 309 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 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 |
Forum: C++ Dec 4th, 2008 |
| Replies: 4 Views: 139 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 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 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 |
Forum: C++ Sep 29th, 2008 |
| Replies: 7 Views: 373 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 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 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 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 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... |