C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.


Tutorials
| Forums

Download to Enter
| Contest Rules

DOWNLOAD INTEL® GPA FOR FREE

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) Click here for more information
 
Join Date: Jul 2004
Posts: 718 Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level)Muzza User rank is General 14th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 17 h 23 m 48 sec
Reputation Power: 1883
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 God (5000 - 5499 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 5,252 dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 9th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 1 Day 4 h 58 m
Reputation Power: 1576
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: Woodland Hills, Los Angeles County, California, USA
Posts: 8,974 Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 39th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 6 Days 20 h 30 m 9 sec
Reputation Power: 3561
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

Diary of a first time dog owner <-- my cousin's blog

Reply With Quote
  #5  
Old November 14th, 2008, 04:55 AM
clifford's Avatar
clifford clifford is offline
Contributing User
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 4,405 clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 9 h 39 m 6 sec
Reputation Power: 1719
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

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


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 1 - Follow our Sitemap