no it is not the case.. as the main are supplied by my lecturer..
can you correct it for me ???? the red section has an error tats why i just got half mark
my implementation code
...
Type: Posts; User: peter_hii
no it is not the case.. as the main are supplied by my lecturer..
can you correct it for me ???? the red section has an error tats why i just got half mark
my implementation code
...
anyone help please
do you mean in
bool IPlist::isPresent(string address) const
function???
can you find any error in the red code?
this is the error but i couldnt wat is wrong with it ,...
=======================================
(spaces,tabs and newlines do not matter)
*******************************************
* FILE...
i show you the preview of the testing
is there any other instead of changing anything in main/// cause tat main.cpp are supply by my lecturer
ok here is my implementation file ..
#include "IPlist.h"
IPlist::IPlist()
// default constructor
// creates a new empty list
please help really urgent..the red colour is the correct output whereas the blue display is my display which has a simple error. please give me advice or help me ....
IP address Count
a 3
b 2
c...
can someone correct this error for me ...
node * IPlist::find (string address) const
// precondition : none
// postcondition : returns a pointer to node containing address or
// ...
wat do you mean by this vart
I suppose the 192.149.089.061 was the first ip entered.
look at my comment about missing else - this will fix 5 to 4
yes the overall output is correct but the last ip address suppose to be 4//...
i mean count 4 instead of 5
do you mean in the default constructor??
so wat you mean is
initialize list in the insertinorder???
where should i initialize count to 0 ???in the private of the class??
thnx, the code is fine.. but the output is like this
IP address count
034.056.078.012 3998072
100.001.004.031 3998073
111.022.033.004 3998074
192.149.089.061 ...
hi Zuk, well is not has to exist.... is <if exist, increment the count .....>
yap i got tat.. erm,, can you check this error for me please..i have two version....
void IPlist::updateCount(string address)
// precondition : address is in list
// postcondition : the count...
hi everyone, i have no idea on how to store values into a link list which data is from IFSTREAM
for example..the data.txt as below
192.149.089.061
100.001.004.031
034.056.078.012...
this list will contain duplicate address. it cannot be change cause is a part of work....
ok here is the explanation of overall work ...
<this program reads these IP addresses from a file and...
anyone please help ....i really need to finsih this up now... h help :(
i think you are right..
so what you mean is that the display function is miss coded right?
i dont know where should i correct it in order to get the output as wat i mention above...
thanks and i will try to explain it clearly ... please check error when u have time alright .. appreciate tat... can you send me ur emaill addresss as i want to send you whole the cpp and it might...
yes, it is requirement. and yes this list will containt duplicate and
for example
input file is
192.149.089.061
100.001.004.031
034.056.078.012
192.149.089.061
100.001.004.031...
i am sorry..
i try to explain...
the updatecount is to update how many duplicate ip address in the list...
tats all it does....
better explanation
u just
here is the class file
#ifndef IPLIST
#define IPLIST
#include <iostream>
#include <cstdlib>