473,624 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

posible minour buggs in dick heathfields book

hay, student proggramer 19 yrs old china in computer course
ben doing c proggraming cpl of months from pascal backgrond
enjoyying c unleashed book posible minour buggs found in
dick heathfields data structs cht
buggs not on c unleashed erata witch i looked throughly
grate book lerning lot frmo the c expertts

pg. 348

double Loading[MAX_AGE][NUM_GENDERS] = {0};
//...
void PopulateLoading Array(double **Loading, size_t MaxAge,
size_t NumGenders)
{
size_t Age, Gender;

for(Age = 0; Age < MaxAge; Age++)
{
for(Gender = 0; Gender < NumGenders; Gender++)
{
**(Loading + Age * MaxAge + Gender) = CalcLoading(Age ,
Gender);
cpl qs:

1. why this (Loading + Age * MaxAge + Gender) instead of
(Loading + Age * NumGenders + Gender)?

2. sinze Loading is (double **), does ptr arithmettic
calcullate sizeof(double) elementt or wrong sizeof(double *) elementt,
i not understend? fe. Loading + 1 - this calcullate
Loading + sizeof(double *) .. or Loading + sizeof(double)? ??

pg. 357

}
free;
}

??? this like return(0); can be return; or such
concet... what hapening here pls?

thx for writting book i lerning a lot much it
keep reading it lern a lot much

Oct 27 '08 #1
0 1328

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
74904
by: | last post by:
hey all, i wonder if it is posible to make a A:HOVER without a class defintion.. so <a href="#" style="{color:red;};HOVER{color:blue}">test</a> because i am sending html email in the body and the web interface filters out the classes..
17
2211
by: sophia.agnes | last post by:
Hi , I was going through peter van der linden's book Expert C programming, in this book there is a section named "How and why to cast" the author then says as follows (float) 3 - it's a type conversion and the actual bits change. if you say (float) 3.0 it is a type disambiguation,and the compiler can plant the correct bits in the first place.some people say that
43
1846
by: sophia.agnes | last post by:
Hi, I was going through Mr "Richard heathfields" site , it is written as follows:- Some people think C has no role to play in the modern programming world. I would consider this opinion to have rather more validity if it weren't for the fact that even those who express it use C code on a daily basis (whether they realise it or not). C programs and libraries are woven into the very fabric of the modern programming world, and
3
1757
by: George Orwell | last post by:
hay, Han frm china heer again... ben readin sum more c unleashed book dick heathfields book... still readin dick heathfields data structs cht but jumped ahead to chad dixons cgi proggraming cht out of interest for bit varietty... hard to focuss on length of data structs cht vry drawn out longwindded imho... small robusttness patch for pg. 400 DlExchange() function: int DLExchange(DLLIST *ItemA, DLLIST *ItemB)
8
1507
by: Nomen Nescio | last post by:
Hey, this is Ajun from a Bangladesh outsource company. Han has hired me to do the English writing for his comp.lang.c posts. The subject line has been changed, which may affect archival consistency, so if you're looking for the first two installments of this series, just run a Google Groups search for "posible minour buggs in dick heathfields book". Neither Han nor I expect to win a Pulitzer Prize anytime soon, yet we believe we're in...
4
1476
by: Nomen Nescio | last post by:
No errors to report here. It's hard work taking the nitpick microscope to the CLC Clique's book, but someone has to do it. It's occurred to me I haven't properly introduced myself. /* * 5-1-2-2-3.c * Han from China's hello-CLC program. *
8
1388
by: Borked Pseudo Mailed | last post by:
Richard Heathfield said: <snip> From swab.c: void swab(const void * __restrict from, void * __restrict to, ssize_t len) { unsigned long temp;
1
1417
by: Borked Pseudo Mailed | last post by:
Hey, guys. I'm still plowing through Dick Heathfield's data-structures chapter. It's like reading 100-plus pages on how to core an apple, but I'm getting there, slowly. I'm up to his HTML syntax checker in the stacks section. Noticed a corker of an error in that, but I'll leave that for one of my next posts, at which point I hope to finish up on the Heathfield data-structures chapter. Yes, it was wrong of me to compare Heathfield to...
5
1560
by: Chris M. Thomasson | last post by:
"George Orwell" <nobody@mixmaster.itwrote in message news:c6eb564c3d719950dc8bd7151040c449@mixmaster.it... Do you really think a single book provides enough weight for proper workout paraphernalia? You must be a real weakling; oh well.
0
8621
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8475
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6110
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5563
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4079
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2606
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.