comp.lang.c
http://groups-beta.google.com/group/comp.lang.cToday's most active topics: * speed of int vs bool for large matrix - 13 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cb38beb7c98d9c19 * Performance Programming - 9 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/bccd33b9dff2397f * C 99 compiler access - 7 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6ab6fa86dd3e2204 * Pointer arithmetic involving NULL pointers - 4 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ef9a1260c87b6bfc * Need help for optimising nested ifs-help me plz panic situation!!! - 3 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2e202f66bac06055 Active Topics ============= Need help for optimising nested ifs-help me plz panic situation!!! - 3 new ---------------------------------- "s.subbarayan" wrote ... same function. Each function should do one clearly defined thing, whether that is high level (steer spaceship to Mars), medium level (calculate distance from destination), or low level (square root). You will probably find that the conditionals boil down to a few tests. For instance if( employee.status == salesman) { if(sales > target) dobonus() ; ... { if(shareprice > target) ... This could be consolidated if( bonuspayable(&employee)) dobonus(); with the logic put into the bonuspayable()... - Sat, Sep 11 2004 1:09 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2e202f66bac06055 C 99 compiler access - 7 new ---------------------------------- In article , Richard Kettlewell writes ... batteries) has an MCU these days and 80% of them are programmed in C (the rest is assembler with about 3% being C++). Embedded systems are not small with a few lines of code. These days car radios have about 1,000,000 lines of code in them. (It came as a surprise to me too), Telecoms systems are vast, medical equipment, controlsystems, ( lifts, production lines robitocs) etc it goes on and on. The use of embedded systems (and C) is... - Sat, Sep 11 2004 12:58 am 7 messages, 5 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/6ab6fa86dd3e2204 Performance Programming - 9 new ---------------------------------- In article , ... That's really clever. You switch from Java to C to make programs faster, but you have no idea how to make them faster? How about asking in comp.lang.java for techniques that boost performance in Java? ... - Sat, Sep 11 2004 1:09 am 9 messages, 7 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/bccd33b9dff2397f malloc and free - 3 new ---------------------------------- "Gordon Burditt" wrote ... term for murder under gross provocation, or accidental murder". ... - Sat, Sep 11 2004 1:22 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9dc6bf671c014afb Wide string initializer syntax - 2 new ---------------------------------- ... Are you shure that wchar_t is a build-in TYpe for C? I don't know about C 99, but in C90 ther is defently no wchar_t build-in type! Kind regards, Nicolas ... - Sat, Sep 11 2004 3:16 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2cdb63f40db2686f Pointer arithmetic involving NULL pointers - 4 new ---------------------------------- ... I'm sorry. The compiler I use, gcc 3.3.4, defines NULL as (void*)0. Also, gcc can use mathematic expressions on it, although some things will need some changes. So I assumed this was just a standard. Well, I never read about any standards, and I basically learned C by trying things, and by reading. But I never really learned about other compilers than gcc. Might be a good idea to do it sometime. -- This message has been sent using the astalavista.net newsreader webinterface. http://www.astalavista.net/ ... - Sat, Sep 11 2004 3:37 am 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ef9a1260c87b6bfc speed of int vs bool for large matrix - 13 new ---------------------------------- Hi, I saw it mentioned that "int" is the fastest data-type for use in C ,that is data storage/retrieval would be the fastest if I use int among the following 4 situations in a 32 bit machine with 4-byte ints: int m[1000][1000] ; bool m[1000][1000]; // assuming I use C++ char m[1000][1000]; unsigned char m[1000][1000]; I need to know if this statement is true. Also, if int is indeed the fastest, in practice, how slower would the bool matrix be ? What if I had to dynamically allocate all the 4 cases above - would the same... - Sat, Sep 11 2004 4:17 am 13 messages, 9 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cb38beb7c98d9c19 turbo assembler - all new ---------------------------------- ... MASM is OT for Questions in this newsgroup about Turbo Assembler (TASM). TASM is OT in the newsgroup as well, but please don't be doubly OT. My new symbol: **OT (pointer to a pointer that is Off Topic)! ...... - Sat, Sep 11 2004 4:14 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/be75550c031ac7e1 parsing in C - all new ---------------------------------- Op Fri, 10 Sep 2004 15:45:16 -0600 schreef Chris Barts: ... <OT> I am ;-( Forth does not have c.q. need an expression parser, let alone a recursive descent one. Al it has to do is read white space delimited tokens (numbers and operators) and place the results on the stack. It's relatively easy to write an infix parser in this language, but it is not of much help. </OT>You might use C instead.... - Sat, Sep 11 2004 8:37 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e604398031a98a42 Church's lambda calculus - 3 new ---------------------------------- ... Make sure you click on the "search only in comp.lang.c.*" button before doing your search, otherwise it will search all newsgroups. ... - Sat, Sep 11 2004 9:11 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/210b76dfb4421714 JAMES LEHRER AND AL JEROME HAVE RUINED THE PUBLIC TV STANDARDS OF JOURNALISM - all new ---------------------------------- THE MEENA BOSE (on the republican convention) GAME MEENA BOSE - A CONVENIENT BAIT OF DECEPTION WITH NO USEFUL OPINIONS Unless you are in your 50s and have been living in the US for more than 30 years, you will not know the game that is going on. Even then you will not know the game, unless you have a good memory of the past and analytical mind. As we have evolved and learnt, so have our enemies and colonizers from the english race and the followers of the terrorist mission of Jesus as described in Matthew verse... - Sat, Sep 11 2004 9:45 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/575229d55094c507 int to string - 2 new ---------------------------------- Hello, I have an int I need to concatenate into a string. I am trying to make a string out of (string + int), but I haven't been able to figure out how to convert that int into a string. Any suggestions? Thanks a bunch! John . .. - Sat, Sep 11 2004 11:59 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ab97f9883330f7d4 meaning of dialet or implementation of a programming language - 3 new ---------------------------------- I always heard dialet of programming language. For example, Objective-C is a dialet of C programming language. What does it really mean? C is already standardize, why there are dialets? Or when people say implementation of a programming language. please advise. thanks!! ... - Sat, Sep 11 2004 12: 41 pm 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c4b5ba9feb62102e Postfix / Prefix Operators on array / pointer, search key word wanted [OT] - all new ---------------------------------- ... You're not really using an assignment operator (there's more than one) when initialising. Although "...the same type constraints and conversions as for simple assignment apply," you're assigning values to elements of the array, not the array 'as a whole'. A simple assignment on an array violates the contraint of 6.5.16.1. -- Peter ... - Sat, Sep 11 2004 5:36 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ec29e483cf1f1ce9 ======================================================================= You received this message because you are subscribed to the Google Groups "comp.lang.c". comp.lang.c http://groups-beta.google.com/group/comp.lang.c Change your subscription type & other preferences: * click http://groups-beta.google.com/group/comp.lang.c/subscribe Report abuse: * send email explaining the problem to [EMAIL PROTECTED] Unsubscribe: * click http://groups-beta.google.com/group/comp.lang.c/subscribe ======================================================================= Google Groups: http://groups-beta.google.com ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/BCfwlB/TM --------------------------------------------------------------------~-> <a href=http://English-12948197573.SpamPoison.com>Fight Spam! Click Here!</a> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/kumpulan/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
