 | 
August 29th, 2008, 05:22 PM
| | Newbie | | Join Date: Mar 2007
Posts: 29
| | problems with list link..
i have wrote a program which consist of three parts. list.cpp, list.h. and company.cpp
i tried to figre it out but i couldn't. the problem is i can not input into the file, i gives me white message.. which is logical errors, i couldn't figure it out... anybody there can help...
please help
this is assignment.cpp
Full code removed per posting guidelines
| 
August 29th, 2008, 06:56 PM
| | Moderator | | Join Date: Mar 2007 Location: North Bend Washington USA Age: 68
Posts: 4,928
| |
Please supply code that will compile and link. I can help you then.
| 
August 30th, 2008, 03:54 PM
| | Newbie | | Join Date: Mar 2007
Posts: 29
| | Quote: |
Originally Posted by weaknessforcats Please supply code that will compile and link. I can help you then. |
actually the code is all there.. the main program and the list.h and the assignment...
i wish u can copy and paste the whole programs and make them in one project because i am using Dev++...
thanks
anybody there can help...
why people here don't help...
why....
| 
August 30th, 2008, 03:59 PM
| | Member | | Join Date: Nov 2007
Posts: 68
| |
Can you actually put each seperate header and cpp file that you wrote between CODE tags, because your code is unreadable at the moment
| 
August 30th, 2008, 04:30 PM
| | Newbie | | Join Date: Mar 2007
Posts: 29
| | Quote: |
Originally Posted by Airslash Can you actually put each seperate header and cpp file that you wrote between CODE tags, because your code is unreadable at the moment |
actually the companyt.ccp is the first one
i will make them bold is it okey? please look at it clearly
thank for your response.. i really really appreciate it
Bold means each file and header cpp
Full code removed per posting guidelines
| 
August 30th, 2008, 04:47 PM
| | Expert | | Join Date: Sep 2007
Posts: 853
| |
When writing code on these forums, please surround it with [code] tags. It makes your code far more readable for everyone. You're a Member now, you're expected to know this.
| 
August 30th, 2008, 05:06 PM
| | Newbie | | Join Date: Mar 2007
Posts: 29
| | Quote: |
Originally Posted by Laharl When writing code on these forums, please surround it with [code] tags. It makes your code far more readable for everyone. You're a Member now, you're expected to know this. |
i know.. but not really familiar with it.. i tried the last time but it looked messy..
thank you anyways for reminding me...
Can you try to help with that..
i will really appreciate your help if you can help..
| 
August 30th, 2008, 05:34 PM
| | Member | | Join Date: Nov 2007
Posts: 68
| |
I think you're just using your files wrong...
List.h : define your List class in here,
List.cpp : give meaning to your functions: add the code for the methods
Company.cpp : put here your main.cpp and functions to run the program
because it looks like you're mixing up stuff in your files.
| 
August 30th, 2008, 05:38 PM
| | Newbie | | Join Date: Mar 2007
Posts: 29
| | Quote: |
Originally Posted by Airslash I think you're just using your files wrong...
List.h : define your List class in here,
List.cpp : give meaning to your functions: add the code for the methods
Company.cpp : put here your main.cpp and functions to run the program
because it looks like you're mixing up stuff in your files. |
that what i did but when i try to input to the file, i coudn't input to the file, it give white message?
can u try to compile it and tell me the error please
i really need your help urgently
thank you very much
Sami Alkindi
| 
August 30th, 2008, 05:39 PM
| | Moderator | | Join Date: Mar 2007 Location: North Bend Washington USA Age: 68
Posts: 4,928
| |
So how is this compiling? -
-
Node=&head; // it point to the head of the list or to the begining of the list;
-
// empolyee_count=108;
-
do
-
{
-
//h
-
Node is a node* and head is a node* That makes &head a node**. You can't assign a node** to a node*.
What gives here?
| 
August 30th, 2008, 05:49 PM
| | Newbie | | Join Date: Mar 2007
Posts: 29
| | Quote: |
Originally Posted by weaknessforcats So how is this compiling? -
-
Node=&head; // it point to the head of the list or to the begining of the list;
-
// empolyee_count=108;
-
do
-
{
-
//h
-
Node is a node* and head is a node* That makes &head a node**. You can't assign a node** to a node*.
What gives here? |
then tell me please how to figure it out...
i tried to make it
Node=head->next; it also the same
please help me
| 
August 31st, 2008, 04:49 AM
| | Newbie | | Join Date: Mar 2007
Posts: 29
| |
hello.. anybody can do a little help...
any ?
| 
August 31st, 2008, 09:50 AM
| | Familiar Sight | | Join Date: Jul 2008
Posts: 165
| | Quote: |
Originally Posted by samimmu Node=head->next; it also the same | What is the same? Compiler error? Wrong program behavior? Did you try do debug it?
did you try no isolate the pro.. oh well never mind
|  | | Thread Tools | Search this Thread | | | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 204,687 network members.
|