2000 organizations, including eBay, Ericsson, and Lockheed Martin, now work smarter with Corporate Accounts. Save over 36%!

 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested C Solutions: 76 - 100 of 2136
 
I have this code in C: How do I code a part to find the string "Sending boot event"  that is contained in the BlackHostLog.txt  and report a message saying passed to the status file? #includ...
Hi, I did a small code so that return type is of pointer..but I am getting error: return makes pointer from integer without a cast . int *add(int *,int*); int main() {  int *a=10, *b=...
Hi there, I have a problem trying to generate the pyramid below using nested loops: ----------1 ---------232 --------34543 -------4567654 ------567898765 -----67890109876 ----789012...
Hey, I'm trying to use the stat function to get the time a file was modified, I've been using these two websites as references: http://www.opengroup.org/onlinepubs/000095399/functions/stat.ht...
I have the following Producer/Consumer program that works well using pthreads, buffer and semaphores. I want to write the same exact program using fork() (instead of pthreads), shared memory, ...
When should I use fopen vs open? Why does the standard have two sets of functions to handle files?
our specific interest will be in conversion from infix to postfix notation or reverse polish notation.Thus we shall be starting with an infix expression which is valid or not(in accordance wit...
I need to understand the following code that calculates a CRC-8. I'm not a C programmer (Java and GUIs are my stuff) so the logic of the program escapes me. I can calculate CRC's by hand but I...
hi here is my code #include<stdlib.h> #include<pthread.h> #include<string.h> #include<stdio.h>     struct info{           int id;        char name[20];        int port;         }; ...
Hello, I am new to C programming and need some help on figuring out whats going on inside the following Nested loops.  Thanks for any help. - I know the first nested while loop prints (1 2 ...
I know how these method works, but I'm woundering, if the request queue is like this: 15, 33, 45, 8, 10, 75, 15, 33 diskhead: 30 So if 50% of the request are for the fixed cylinders, which...
HI everyone, I have a  service written in PRO C that is doing a simple Select from a table.  I have debugged it to make sure that the parameters that are being passed are correct.  I get a ...
Hi I need two simple functions: 1 - Convert Binary to Decimal and returns this value 2-  Convert Decimal to Binary and returns this value Thanks
Dear All, I have developed a simple client server application, the server needs to send around 1.5 MB of data to the client for each transaction continously. But the server is only able to ...
I am looking for a assembly code  / algorithm for finding out the square root of a number. I am working on Intel 80196 Microcontroller. Assembly language program for any other processor will a...
hello experts, a small problem in following simple c program. i am sending a pointer to a function(call by reference) and changing its value in function and expecting new value in main. but ...
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...
I'm getting a bogus result when I print 64 bit long int (in my case jlong type within Java JNI module). What is the right format specifier for Windows and Linux?  I tried %l64 which didn't wo...
I am trying to load a PNG file at runtime into a dialog.  I read that VS 2008 is able to do this, but must be done programmatically.  I have the file in the resource editor, IDB_IMAGE and the ...
How to code the Shortest Remaining Time First(SRTF)? I'm having a hard time on coding the pre-emptive part of the algorithm. Thanks a lot.
i'm  having problem with the folowing piece of code -- it's allocating memory , but while filling up the memory it's failing -- i think the problem is with initializing the double pointer to t...
hi, i have a working code here, but my problem is that i'm doing "void SORTIT(char* aWords[][MAX_STRING_LENGTH]);" but the question asks us to do with "void SORTIT(char *array[])" i ...
How can i compile and run a c and c++ source code in linux mandrake 10.1?When i compile the program with gcc ,it compiled successfully and it creates default a.out file but when i type a.out a...
Hi,   While building a static library using visualstudio I am getting the following error warning C4013: 'ASSERT' undefined; assuming extern returning int "ASSERT" is #defined in one...
In C, you can declare an array like this:        int array[4] = {5, 10, 15, 20}; How do you fill the array after it is declared, without filling each one at a time. After it is declared, I ...