回复: [c-prog] New Programmer

2008-01-27 Thread changqing zhang
A refrence is another name of the variable, and it is none changeable, but the pointer is a variable, it can be changed any time you want. ☆☆☆ Changqing Zhang CDMA Institute Hisense Mobile Communications Technology co.ltd. Tel: 86-532-86016016-2423 Fax:

Re: [c-prog] Need help sorting an array of structures

2008-01-27 Thread ~Rick
At Friday 1/25/2008 07:55 PM, you wrote: --- ~Rick [EMAIL PROTECTED] escreveu: I am populating a number of entries and want to sort on the field linedata.transferPath. I'm using qsort and have built a comparator function but cannot figure out how to specify the transferPath element.

Re: [c-prog] Need help sorting an array of structures

2008-01-27 Thread ~Rick
At Friday 1/25/2008 07:49 PM, you wrote: ~Rick wrote: All, I have a structure defined below (I've eliminated some of the elements because it's big). It's setup to be part of a single linked list but at the moment I have an array built: struct ENTRYlinedata[MAX_ENTS]; snip Use

[c-prog] unsigned 32-bit characters in gcc linux C/C++

2008-01-27 Thread bootstrap
To port my code, I need to force wide-characters to be some kind of unsigned integer (unsigned long, unsigned int, unsigned long int). Unfortunately, I cannot figure out how to make this happen in gcc. I found a command line argument that makes regular 8-bit characters be unsigned char by

[c-prog] syntax of conversion versus coersion in C --- for various OS

2008-01-27 Thread bootstrap
I have never been entirely clear whether a clear distinction between type-conversion and type-coercion in the C language. What I know is, I have written many programs that appear to work as intended when I adopt the following practice: a = typename(b); // convert a = (typename)b;

Re: [c-prog] problems porting 3D engine from windoze to linux

2008-01-27 Thread bootstrap
No doubt about what you say, but this question remains. If f64 variables are now a structure-type rather than just an alias for double, what happens in the 58493 places where my code passes f64 variables into functions? I am worried about library and system functions that expect conventional

Re: [c-prog] problems porting 3D engine from windoze to linux

2008-01-27 Thread bootstrap
That works, alright. Can you explain what is the purpose of the symbol before the opening brace? I have seen that symbol in about a zillion places, and wonder what is its purpose. Also, I guess I was always confused into thinking the symbol after the closing brace was an instance/variable of

Re: [c-prog] apology - and please explain

2008-01-27 Thread Brett McCoy
On Jan 27, 2008 2:26 PM, bootstrap [EMAIL PROTECTED] wrote: I found this forum a few days ago and started posting messages. However, I am completely confused about the relationship between this nabble forum and the c-prog form at yahoogroups, since some (but not all) messages seem to appear

[c-prog] 64-bit constants

2008-01-27 Thread bootstrap
I am porting a large 3D graphics engine from windoze to linux on eclipse environment, and have a few C syntax problems that are over my head. At the moment I am just compiling the code to make a 32-bit executable, but I assume 64-bit will be the same. - 1: From an original software