Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 29th, 2008, 05:22 PM
Newbie
 
Join Date: Mar 2007
Posts: 29
Default 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
Reply
  #2  
Old August 29th, 2008, 06:56 PM
Moderator
 
Join Date: Mar 2007
Location: North Bend Washington USA
Age: 68
Posts: 4,875
Default

Please supply code that will compile and link. I can help you then.
Reply
  #3  
Old August 30th, 2008, 03:54 PM
Newbie
 
Join Date: Mar 2007
Posts: 29
Default

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....
Reply
  #4  
Old August 30th, 2008, 03:59 PM
Member
 
Join Date: Nov 2007
Posts: 68
Default

Can you actually put each seperate header and cpp file that you wrote between CODE tags, because your code is unreadable at the moment
Reply
  #5  
Old August 30th, 2008, 04:30 PM
Newbie
 
Join Date: Mar 2007
Posts: 29
Default

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
Reply
  #6  
Old August 30th, 2008, 04:47 PM
Expert
 
Join Date: Sep 2007
Posts: 848
Default

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.
Reply
  #7  
Old August 30th, 2008, 05:06 PM
Newbie
 
Join Date: Mar 2007
Posts: 29
Default

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..
Reply
  #8  
Old August 30th, 2008, 05:34 PM
Member
 
Join Date: Nov 2007
Posts: 68
Default

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.
Reply
  #9  
Old August 30th, 2008, 05:38 PM
Newbie
 
Join Date: Mar 2007
Posts: 29
Default

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
Reply
  #10  
Old August 30th, 2008, 05:39 PM
Moderator
 
Join Date: Mar 2007
Location: North Bend Washington USA
Age: 68
Posts: 4,875
Default

So how is this compiling?
Expand|Select|Wrap|Line Numbers
  1.  
  2. Node=&head; // it point to the head of the list or to the begining of the list;
  3. // empolyee_count=108;
  4. do
  5. {
  6. //h
  7.  
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?
Reply
  #11  
Old August 30th, 2008, 05:49 PM
Newbie
 
Join Date: Mar 2007
Posts: 29
Default

Quote:
Originally Posted by weaknessforcats
So how is this compiling?
Expand|Select|Wrap|Line Numbers
  1.  
  2. Node=&head; // it point to the head of the list or to the begining of the list;
  3. // empolyee_count=108;
  4. do
  5. {
  6. //h
  7.  
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
Reply
  #12  
Old August 31st, 2008, 04:49 AM
Newbie
 
Join Date: Mar 2007
Posts: 29
Default

hello.. anybody can do a little help...



any ?
Reply
  #13  
Old August 31st, 2008, 09:50 AM
Familiar Sight
 
Join Date: Jul 2008
Posts: 152
Default

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
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 network members.
Post your question now . . .
It's fast and it's free

Popular Articles