gud day experts! i'm studying file i/o in C and now i'm in fread, fseek and fwrite topic. I find the topic difficult and I don't have many sample's here. Can anyone recommend a site or give...
I have tried writing code for one pass and two pass assembler but in vain.Please help me by providing a source code.Urgent!!
I have two files - client and server. I can get them to connect using tcp sockets but need to know once a connection is established how can i then have the client send a message to the server ...
Hi,
Is there any way I can reverse a string without using a temporary variable ?
Thanks,
Parag.
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...
C Programming Quiz
This quiz consists of 20 multiple-choice questions. Please use the answer sheet at the end to enter the appropriate answer for each question (T, F, A, B, C etc).
...
Hi, I have an assignment to make a program which list files and directories in the current directory (a simple version of ls). I can not finure out how to convert structures in the stat type ...
Dear all,
Please provide solution for the below question:
Implement Breadth First Search and Depth First Search with a given graph.
Thank you
Hey guys... I need a way to sort a linked list into decending order.
i have:
typedef struct person{
char name[20];
int age;
char sex;
int birthday;
struct person *next;
}p;
I...
How can i convert a char to hex?
this is what i have done so far:
int main()
{
char data[15];
scanf("%s", &data);
printf("%x\n", &data);
system("PAUSE");
re...
hi, I am doing a simple circular queue program. below is waht I did so far. I have some question about this program.
1. there is a compile error after I add disp() function (like the code b...
when I edit any c program in turbo c 2.0 ,these program can be successfully complied but can't be linked . It display "link error:Unable to open input file 'COS.OBJ'".why?even like the flowing...
you guys know that:
e^x = 1+x+ (x^2/2!) + (x^3/3!) +.......+ (x^n/n!)
the more terms that are added to this , the more accurate become the infinite series approximation to the exponential ...
Hello!
I want to write programm in C that will print on the screen IP address I got when I connected to the internet.
And I need help.
When I tryed with gethostname and gethostbyname it pr...
Hi. I am a beginner of assembly language.
I am so confused on this problem.
I need to write an assembly language program (inline assembler) to add 2, 100 digit-long number each. The same p...
I have an example from Bloomberg that compiles fine in Visual Studio 2003 but gives an error in VS 2008 ORCAS Beta 1. The only changes I made is made it a .cpp instead of a .c and put in plac...
Hi,
I got a sample of code to bind ip address :
bzero(&sin,sizeof(sin));
sin.sin_family=AF_INET;
sin.sin_addr.s_addr=INADDR_ANY;
sin.sin_port=htons(PORT);
bind(sock_d...
I had set socket buffer like this..
buf_size =16*1024;
err = setsockopt( m_hSock, SOL_SOCKET, SO_SNDBUF, (char *)&buf_size, sizeof(buf_size));
Everything ok while sending data to clie...
Hi,
How do I convert an integer to a string? Easiest coded example will be awarded.
I have an integer, p
want to convert p to string and send it using the following send command:
...
How can you clear a character string in C?
Equivalent C++ code would be:
string mystring = "";
Hi
Im totally new to image processing. I was hoping if somebody could tell me how to calculate the histogram (HSV nad RGB) of an image in C without using the built in library function of O...
I need to write and run a program that constructs the pascal triangle using factorials. I've written a function that calculates the nth factorial and then wrote a recursive function that calls...
The input is an arithmetic expression string ((2+3.5)*2)/4+2
How do we convert this to postfix (i mean about 3.5)
How do we evaluate the postfix expression?
And finally what do we do in...
Is this initialization correct ?
char sqID_split[5][15] = {""};
How do I merge 2 sorted singly linked lists ?
Thanks,
Parag.