hi expert!!!
i have to create a timer for a particular time,and have to set that.
and after using it ,have to kill that!!!
how to do it in " c ".
please provide the solution as soon...
Hi,
To use mod in C, i use %
num1=9%7=2
how do i do a negative number ?
num2= -9%7 ?
Thanks
Hi,
How to list files in a directory using a C Program ?
Thanks
Praveen Parmar
In C, what's the difference between a typedef and a macro? I mean, what difference will it make if we use a #define to define a user data type instead of a typedef statement?
I have some low level drivers I'm working on which require the use of bitfields for hardware registers. I'm writing the drivers to be platform independant.
Presently, I've taken care of En...
hi,
is it better to use malloc or calloc. The only downfall i see with calloc is the work associated to initialize the string to zero.
Pls clarify. thanks.zizi
Hi All,
I am actually doing a robot.The robot can be moved at a number of positions,torso, shoulder, elbow, waist, hips and knees. I should use the following keys presses to facilitate thes...
The technique used to be big to prevent assembly programs being hacked.
Can/Has this been done for C?
Just a link or two :)
hello guys this is my program and this simply converts
int to binary however I could not understand
printf( " %i ", (arg1 & 1 << x ) > 0 ? 1 : 0 );
the 1 near arg1 , what is this 1 do...
I want to use a Progress bar in my app. I know I need to add the comctl32.lib.
How do I add this to my linker options in Visual Studio 2005?
Thanks.
hi i; have met a function declaration. like below;
void asdf(int a, int d, ...){}
here as we can easily understand "..." means function can take more than two parameters.
my question for ...
hai ,
could anyone suggest me how to convert binary file to text file without loosing information.
is theire any function in C to convert each byte to ASCII format.
i want load all binary fil...
This question relates to programming for Linux. I understand that all programs which run under a bash terminal will exit when the terminal closes, unless they are run in the background by app...
there are some variables that have some leading underscores (_) or (__) infront of a variable...does that mean anything?
I am not looking for answers like, leading underscores for a variabl...
hi all,
how to calculate the intersection of 2 rectangle?
a rectangle is the following:
Rectangle makeRectangle (Point lowerLeft, Point upperRight) {
Rectangle r;
r.pt1 = low...
Write a C program that create a tax calculation program for food stores. Some food items and all non-food items are subject to a stae wide sales tax and local district taxes. Due to differen...
Hi,
When i compiled my program, i got this following errors:
In file included from test.c:4:
test.h:5: error: array type has incomplete element type
test.c: In function 'main':
test....
Hi!
I am currently getting frustrated about a problem I have been thinking about for ages.
If I have a function:
void in_array_cp(char *haystack[],char *needle)
{
...
}
which is...
Please consider following code Snippet:
typedef struct customer_no_type_s
{
unsigned len ;
unsigned char str[30];
} customer_no_type;
customer_no_type get_customer_pn(void)
{...
Hi,
I have a problem reading floats that have been written to a binary file on a little endian machine (x86). When I try to read the file on a big endian machine (PPC), the floats get read ...
HI,
I'm trying to create an array to calculate the class grade average. I only want to return the answer for grades[4]. I haven't been shown how to pass one element.
#include <iostream>
...
Hello,
I am trying to figure out the do/while loop scenario. Let's say that I have code:
/* Example Case using C */
#include <stdio.h>
#include <ctype.h>
int main(void)
{
do{
ch...
I obtain the error message 'X connection to :0.0 broken (explicit kill or server shutdown)' when I close an X graphical window using the window manager close button.
The graphical applicati...
Hi,
I have a (C) program which reads a stream of characters from a file into an array of data, currently structured as
char data[num][len];
where num is relatively small (< 100) and ...