C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 13th, 2008, 07:47 PM
racerday182 racerday182 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2008
Posts: 2 racerday182 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 23 m 28 sec
Reputation Power: 0
Thumbs up Packets C Programming Question

Comments on this post
sizablegrin disagrees: Tsk, tsk. We really don't want you to show up in the workforce if we have to do your work as well
as ours.
Muzza disagrees: If your post is anything to go by your primary result for the subject will be: FAIL

Reply With Quote
  #2  
Old November 13th, 2008, 07:57 PM
Muzza's Avatar
Muzza Muzza is offline
/usr/bin/drinking
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2004
Posts: 690 Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level)Muzza User rank is General 9th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 16 h 25 sec
Reputation Power: 1585
Tell us what is your lecturer's name and email address is then we might be able to offer some help!

Reply With Quote
  #3  
Old November 13th, 2008, 07:59 PM
dwise1_aol's Avatar
dwise1_aol dwise1_aol is offline
Contributing User
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 4,503 dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 3rd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 12 h 57 m 35 sec
Reputation Power: 1165
Certainly. Start working on it as soon as you can. Refer back to your lecture notes and the textbook to ensure that you understand the concepts. Apply the "divide and conquer" approach of dividing the large task into several small tasks, each of which is relatively easy to do. In order to accomplish that, you may look at the entire task at a higher, more abstract level so that you can identify functional sections and the flow of data between them (that will both help to identify what those functional sections will need to do as well as the form/format of the data at each stage).

If you have specific questions about specific problems that you encounter (ie, no more of this plopping the entire assignment in our laps and expecting us to jump eagerly at doing your homework for you), then post such specific questions and we will try to help you.


In case it hasn't sunk in yet: we do not do your homework for you. In fact, teachers have started visiting our forum looking for their students who have plopped the entire assignment in our laps wanting us to do their homework for them.

So then turn to, laddie! Lay yer back into it!
Comments on this post
sizablegrin agrees!
Muzza agrees!

Reply With Quote
  #4  
Old November 14th, 2008, 12:32 AM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 8,504 Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 27th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 6 Days 15 h 38 m 6 sec
Reputation Power: 2790
Well, we could be generous and give him/her a little headstart:
Code:
#include <stdio.h>

typedef struct {
    int ch;
    int count;
} star_t;

int main(void) {
    star_t foo[] = {
{32, 21}, {47, 1}, {34, 1}, {92, 1}, {'\n', 1}, 
{32, 20}, {124, 1}, {92, 1}, {46, 1}, {47, 1}, {124, 1}, {'\n', 1}, 
{32, 20}, {124, 1}, {32, 3}, {124, 1}, {'\n', 1}, 
{32, 20}, {124, 1}, {32, 3}, {124, 1}, {'\n', 1}, 
{32, 20}, {124, 1}, {62, 1}, {126, 1}, {60, 1}, {124, 1}, {'\n', 1}, 
{32, 20}, {124, 1}, {32, 3}, {124, 1}, {'\n', 1}, 
{32, 17}, {47, 1}, {39, 1}, {92, 1}, {124, 1}, {32, 3}, {124, 1}, {47, 1}, {39, 1}, {92, 1}, {46, 2}, {'\n', 1}, 
{32, 13}, {47, 1}, {126, 1}, {92, 1}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {32, 1}, {92, 1}, {'\n', 1}, 
{32, 12}, {124, 1}, {32, 3}, {61, 1}, {91, 1}, {64, 1}, {93, 1}, {61, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {32, 2}, {92, 1}, {'\n', 1}, 
{32, 12}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {92, 1}, {'\n', 1}, 
{32, 12}, {124, 1}, {32, 1}, {126, 1}, {32, 3}, {126, 1}, {32, 3}, {126, 1}, {32, 3}, {126, 1}, {32, 1}, {124, 1}, {96, 1}, {32, 3}, {41, 1}, {'\n', 1}, 
{32, 12}, {124, 1}, {32, 19}, {47, 1}, {'\n', 1}, 
{32, 13}, {92, 1}, {32, 17}, {47, 1}, {'\n', 1}, 
{32, 14}, {92, 1}, {32, 15}, {47, 1}, {'\n', 1}, 
{32, 15}, {92, 1}, {32, 4}, {95, 5}, {32, 4}, {47, 1}, {'\n', 1}, 
{32, 16}, {124, 1}, {45, 2}, {47, 2}, {39, 2}, {96, 1}, {92, 1}, {45, 2}, {124, 1}, {'\n', 1}, 
{32, 16}, {124, 1}, {32, 1}, {40, 2}, {32, 1}, {43, 1}, {61, 2}, {41, 2}, {32, 1}, {124, 1}, {'\n', 1}, 
{32, 16}, {124, 1}, {45, 2}, {92, 1}, {95, 1}, {124, 1}, {95, 1}, {47, 2}, {45, 2}, {124, 1}, {'\n', 1}
    };
    int i, j;
    for (i = 0; i < sizeof(foo) / sizeof(foo[0]); i++) {
        star_t bar = foo[i];
        for (j = 0; j < bar.count; j++) {
            printf("%c", (char)bar.ch);
        }
    }
    return 0;
}
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by Nyan, lackoblacko and jwdonahue, superior C programmers of the month

Reply With Quote
  #5  
Old November 14th, 2008, 04:55 AM
clifford's Avatar
clifford clifford is offline
Contributing User
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 3,891 clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level)clifford User rank is General 4th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 6 h 57 m 32 sec
Reputation Power: 1216
By posting your assignment verbatim, you are making it very easy for your tutor to discover your attempt to cheat. It has happened recently. Be warned. You won't get any help on that basis, so your best bet is probably to edit your post and remove the text. You might at least regain some credibility and get more cooperation when you conform to the forums rules.

Reply With Quote
  #6  
Old November 14th, 2008, 02:57 PM
racerday182 racerday182 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2008
Posts: 2 racerday182 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 23 m 28 sec
Reputation Power: 0
Red face

thanks for the headstart and all the tips, that's basically what I was looking for, a starting off point. I will make sure not to abuse the forums again and only ask if I have specific questions.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Packets C Programming Question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek