| |
thread by: Paul Jackson |
last post Jun 27 '08 by: Flash Gordon
Here's a brace-enclosed initialiser for a 3D array:
int a4 = {
{ 1, 2, 3, 4, {5, 6, 7 }, },
{ {13, 14, 15 }, 17, 18, 19, 20, {21, 22, 23, 24} }};
gcc produces some warnings when compiling this, but sets a4 to this,
which is what I'd expect:
{ { 1 2 3 4 } { 5 6 7 0 } {0 0 0 0 } }
|
thread by: Richard Heathfield |
last post Jun 27 '08 by: Richard Heathfield
arnuld said:
What do you think that line does? For my own part, I can make no sense
whatsoever out of it.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
|
thread by: Paul |
last post Jun 27 '08 by: CBFalconer
I would like to define a list of parameters, and then pass them to a macro.
However, the compiler (gcc) only sees one parameter, rather than expanding
the definition.
Could anyone suggest a way of making this work (using the preprocessor)?
#define MyList 1,2,3,4
#define Sum(a,b,c,d) a+b+c+d
x = Sum(MyList);
|
thread by: s0suk3 |
last post Jun 27 '08 by: CBFalconer
I'm totally new to C, so this is a question from a total newbie. I
know most people write the names in C with underscores,
as_in_this_name. But... is it also customary to write them in mixed
case, asWithThisName? Or is it a horrible horrible horrible thing to
do??
|
thread by: Taygun Kekec |
last post Jun 27 '08 by: Barry Schwarz
Hello , I have been curious about the speed of 2 version of a matris
filling program and got suprised by the results.
Actually , I am having Data Structures lecture on university though
our professor claimed "using IF structures are costly , so you better
use immediate data addressing " so he gave us the pseudo codes that i
implemented in...
|
thread by: Bob Nelson |
last post Jun 27 '08 by: Bob Nelson
Right next to K&R2 on my bookshelf is _C Programming: A Modern Approach_ by
Professor K.N. King. The second edition of this book is now available. See
this URL for details:
http://knking.com/books/c2/
I don't think I'm alone among c.l.c. participants in recommending this book
(based upon the very good first edition).
|
thread by: gokul |
last post Jun 27 '08 by: Billows
A site for all your C/C++ programming language needs. Find more
details on code implementation, flow chart preparation and many more
http://www.blogonprogramming.blogspot.com
http://www.sqlserversoftware.blogspot.com
|
| |
thread by: NaN |
last post Jun 27 '08 by: Default User
Hi I'm using Dev-C++.
Here is my sourcecode.
/* GETCH.C: This program reads characters from
* the keyboard until it receives a 'Y' or 'y'.
*/
#include <conio.h>
|
thread by: garyjefferson123 |
last post Jun 27 '08 by: lawrence.jones
I'm looking for a library that can handle server-side http aspects
(parsing headers, doing keepalive, basic auth, etc) without relying
too heavily on some underlying event engine -- I want to integrate it
into an existing event framework in c/c++.
Any suggestions? (searching on "http library c" is an exercise in
futility). There must be...
|
thread by: vaib |
last post Jun 27 '08 by: santosh
hi all ,
i am facing a funny problem in C . i am using turbo's compiler - the
16 bit compiler for dos . i made a file maximum.h which contains a
function declaration , and includes files such as stdio.h . i then
made a maximum.c which contains the definition of the function
declared in maximum.h . maximum.c also includes maximum.h . then i...
|
thread by: vgnsh2 |
last post Jun 27 '08 by: s0suk3
C is the best because the hackers is most use the C lang
|
thread by: arnuld |
last post Jun 27 '08 by: Ben Bacarisse
C takes input character by character. I did not find any Standard Library
function that can take a word as input. So I want to write one of my own
to be used with "Self Referential Structures" of section 6.5 of K&R2. K&R2
has their own version of <getwordwhich, I think, is quite different
from what I need:
<getwordwill have following...
|
thread by: prabaindra |
last post Jun 27 '08 by: prabaindra
HELLO FRIEND IAM SHALINI,
DO U WANT TO KNOW ABOUT
SCIENTOLOGY?
PLS LOOK AT THE BELOW
WEBSITE.
www.bigconcern3.blogspot.com
|
thread by: Martin Ambuhl |
last post Jun 27 '08 by: Martin Ambuhl
arnuld wrote:
psnode++ yields a value, and does not represent an object.
I will not try to guess what you meant to say, but note that
*(psnode++) = root_node;
is legal and might be related to your intent.
Note that you also omitted
|
thread by: Noob |
last post Jun 27 '08 by: Noob
Hello,
I've rewritten a function (greater_or_equal) that relies on
implementation-defined behavior and availability of exact-width
integers, with the goal of making the new implementation
(greater_or_equal2) portable across any platform.
What do you think of the new implementation?
(Suggestions and comments are welcome.)
|
| |
thread by: Rahul |
last post Jun 27 '08 by: Chris Thomasson
Hi Everyone,
The following code compiles without any error,
int main()
{
volatile const int a = 10;
return(0);
};
|
thread by: nembo kid |
last post Jun 27 '08 by: Keith Thompson
In the following function, s shouldn't be a pointer costant (array's name)?
So why it is legal its increment? Thanks in advance.
/* Code starts here */
void chartobyte (char *s) {
while (s!=0) {
printf ("%d", *s);
s++;
|
thread by: mam |
last post Jun 27 '08 by: mam
Basic Qualifications:
US Citizen Required onsite Chantilly, VA
*3+ years of Software Testing hands on experience.
*3+ years of QTP automation experince.
*QTP Certification Required for Position
Optional Skills : •Mercury/HP QTP Training a plus.
•Mercury/HP QTP Certification a plus.
Job Description:
|
thread by: mickey333 |
last post Jun 27 '08 by: mickey333
http://www.authspot.com/Short-Stories/Echos.111638
|
thread by: Joakim Hove |
last post Jun 27 '08 by: Richard Tobin
Hello,
I have written a program in C; this programs uses an external
proprietary library. When calling a certain function in the external
library, the particular function writes a message to stdout. I am not
particularly interested in this message, and would like to silence it
- however I do not know how to do it. (I stdout and stderr my...
|
thread by: arnuld |
last post Jun 27 '08 by: Ben Bacarisse
PURPOSE :: see statement in comments
GOT: Segmentation Fault
I guess the segfault is sourced in the compile-time warning but I am
giving a char* to the function already.
|
thread by: Ix |
last post Jun 27 '08 by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?=
It seems not remember how to compile with gcc a C program in linux (ubuntu)
how i have to compile this programme?
It seems gcc doesn't find stdio.h..
why is all antiintuitive?
Thank you and Good Morning
---------------------------------------------------
|
thread by: pradeep |
last post Jun 27 '08 by: Jim Langston
Hello friends:
I know some people here don't like to answer C++ questions, but I
believe this is really about the underlying C code. Anyway I have posted
as well to the other group someone suggested ("comp.lang.c++") just in
case.
I think the problem is that in my C++ class, we were taught to use cin,
cout etc. but now I need to use the...
|
| |
thread by: Francois Grieu |
last post Jun 27 '08 by: Francois Grieu
Hello,
one of my C compiler (Keil C51) evaluates the constant expression
1<<(1?1:1) < 0x9999
to the value 1.
// this returns 0, much to my surprise
unsigned char bug4_a(void)
{
return 1<<(1?1:1) < 0x9999;
|
thread by: Ubersite |
last post Jun 27 '08 by: Ubersite
www.ubersite.com - Future of media
get the latest news on open source
this is a post by the users of ubersite so we cannot be held liable or
to blame.
-ubersite
|