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: 1 - 25 of 2136
 
How to get substring in C
I have a program that is intended to be a spell checker and I am trying to get it to read one line at time so that the output for the program is correct. It does read the file properly and ret...
Dear All, I am developing an application that reads XML file tags. I have a tag e.g <small>rohit</small> the application  reads fine, i.e gives "rohit" as output. But I want to ch...
how to find square root of a number without using sqrt function
Hi there! Please this is really important, I need to know the program (codes) to be used in converting Infix to Posttfix and also how to code the needed data for its solution (specially its ev...
As I am  working in Java since 5 years, I started forgetting the concepts of C :(. I am not able to read the binary files such as Word Documents and PDFs into my buffer . I used fopen ...
Hi ... I'm having problems dealing with floating point numbers in C. The app we're developing requires great precision (sometimes to the 20th decimal point). Problem is: When I d...
I will have 2 machines hooked up via the COM1 ports. 1 machine running windows having a hyperterminal session opened and the other machine running Linux having my program running. I want to ...
where is the error?
I am looking into building a program which can perform varying matrix manipulations and calculations as well as function as a sort of matrix calculator, at this time I am looking into the best...
I am trying to get this spell check program that I have done so far with a little help. It is not compiling and I need to get it working. can you please take a look and give me any pointers th...
Hi,    Please provide me the ftp or web site names which offer free  ebooks 'C', 'Data Structure', 'Graphics in C', 'Assignments', 'Socket programming in C on unix/Linux', etc. thanks & ...
Before you ask.  This is school work, saying that I don't want the answer.  I would however like some help in solving my problem.  I know how to convert binary to decimal on paper.  Meaning I ...
How to printf integer, byte etc in their binary format?
I was using fscanf to read in a file and examine each token of this complete file one at a time for the the occurence of a specific keyword.  However I want to read one line from the file. Exa...
/*     Simple, simple pipe() sample.     Main program stdout -> child stdin -> chile stdout -> Main program stdout     cc spipe.c -o spipe     To run     >./spipe     any text     any...
Hello experts, I'm new to C programming and have minimal experience with the fread and fwrite functions. I'm hoping someone out there can help me to see clearly how they work. Suppose I ha...
Dear All, I'm trying to find out file size for my input text files.Here are steps that I followed. Inputs- 1. A text file at location c:\temp\input_files.txt , this file has list of fil...
Hi guys, something i couldn't figure out.... Write a function to reverse the order of words Given a sentence of words in a character array, write a C function to reverse the order of wor...
Can you initialize a multi-dimensional C string array in one statement? Like: char* names[] = {  {"Bob","John","Jim" } , {"Smith","Doe","Johnson" }  }; I've seen a few websites that d...
Guys (and girls), Two questions.  Basically, I want to design an array of structs in C.  And in these structs I want dynamic string allocation.  I'm having major problems implementing this ...
All of a sudden, I can't open any PowerPoint files on my computer or flash drive.  Error states that PowerPoint can't read the outline, no text converter is installed for this type. I have Off...
How can i get the ascii value of any key such as up and down arrow keys or esc key etc. in c language.
hi all   i have some conceptual difficulty  on AVL tree. suppose initially tree is balanced. if after insertion any node shows balance factor other than -1,0,+1 then tree becomes unbalaned....
Hi I have a little problem, I read in a float  - using basic - scanf("%f",&myFloat);  //example: 0.7 But when I do printf("%f",myFloat); // I get 0.700000 Its there a way I can ro...