15,540 Topics
| |
I am making a C program to send AT commands to a mobile phone from my pc. In that, I want it to dial a number but after a delay of some time say 10 minutes. How should I do this(I am using WriteFile command to send the dial command … | |
sorry, my eng is not good that much I am trying to run this program I am getting a strange result when I press 'a' through keyboard switch is running twice automatically for first time it is going to perfect case then second time it's going to default case [code=c] … | |
when i am entering name and roll no only the last name and rollno is displayed and rest is not....i unable to detect where i went wrong and also ...deletion operation is also not working.........and ya i want to try this using linked list...plz i have to do this ne … | |
Hi, i am little confused in usage of strtok() syntax. Basically , i extracted the source code of a webpage using Java and now i have to remove all the extra tags inside the html page so i can have clear text. For example a simple HTML page is like … | |
Hello, I'm trying to make a code that acts as a simple menu for a number of programs. What I was wondering was how do I include the .ccp files and run them in the menu program. Here's what I have so far: [code] #include <stdio.h> #include <stdlib.h> #include "1.cpp" … | |
Hi All, I am using the message queue (msgsnd() call) in my c program binary to send the message to the parent along with priority. The call hangs in between after I send the message to the parent. I have an error check if the msgsnd call fails. But the … | |
I do not know if this has ever been asked in C before but I have a floating point variable like this: [code] while (fCost <= 0.0) { printf("\n\tKudler Fine Foods 'Sales Tax Calculator'\t\n"); printf("\nPlease enter your sub-total:\n"); //allows customer to enter sub-total scanf("\n%f", &fCost); } [/code] note the variable … | |
Hello. I have been reading this forum for quite some time, and this is my first post. I often have the need to dynamically allocate memory for arrays with multiple dimensions. In my opinion I find it quite ugly to litter the code with multiple for-loops and mallocs every time … | |
Hiya fellas, I just made this Knight's Tour program, and wish to speed it up without making it non-brute force. So it shouldn't have any intelligence. I did most I could, and was wondering if you guys know more ways to speed this program up. First thing I thought about … | |
First of all, thanks! I have a problem about the arrays of structure in C, the following is my codes: #include "system.h" typedef struct { int x, int y, int z; short *velocity ; float *wave ; } Modeldim ; void myfunction(Modeldim *submodel) ; int main(int argc, char *argv[]) { … | |
Here is a quick and dirty tutorial for UNIX sockets. By no means it is complete but after reading it, man pages start making sense. Oops two seconds already wasted lets dive into the topic thanks to Delip Rao......:D:D | |
Hello, i am supposed to solve a problem using this Method. Can anyone pls tell me what this exactly is, and how does it work?Or maybe a link to a source ...? i'd be very thankfuly! Pls this is urgent.It's for my thesis! | |
I have very good ideas about c-programing. But i have just programing simple experimental and ,learning stadge program like some data structures or experimenting codes. I want to know actually how to build a good, working , professional, APPLICATION. Please any one could help me by taking me to a … | |
Hi, I use C-Free 4.0 editor for executing C programs. I have a Treap program that I obtained online which is organized as testtrp.c treap.c treap.h fatal.h When I compile the testtrp.c, which references treap.c it compiles correctly. However when I try to run it I get the undefined reference … | |
Hi, Probably a noob question but How would I find out the length of a file in bytes. within VB there is a LOF() command I can use once the file is opened. Is there an equivilant in C. Thanks for any help. pG | |
i need a complete C program to draw a sin curve without any application and the output should be displayed in dos prompt. can anyone please help me | |
Hey, i'm trying to sort direct in a file. The problem is that when i read the first time an int from it,it works! doh. but when it reads for the second time, it doesn't. ( Neither the swap works. No signs of errors from the compiler. [code=language] FILE *fp=fopen("element.txt","rw+"); … | |
Hey :) Damn I hate pointers in C :P Worse thing possible. Anything I post my code: main.c [code] #include <assert.h> #include <ctype.h> #include <errno.h> #include <float.h> #include <iso646.h> #include <limits.h> #include <locale.h> #include <math.h> #include <setjmp.h> #include <signal.h> #include <stdarg.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include … | |
Helloooo, i want to create a dropdown menu in c, like we hav in windows. Is there any header files available for creating a menu.. | |
Hello , I would request you to give some information regarding the use of LOCATOR/LINKER. With Regards Narendhar.G | |
I allocated memory to a pointer, which i had to return. So I don't know where to free it as its a local variable. I was trying to create an array of variable length (user-specified). I got some help for that in this forum only under this [URL="http://www.daniweb.com/forums/thread129324.html"]thread[/URL] here is … | |
In C,how to define an array which is of a length specified by the user? I tried writing a code, but outputs were strange. Sometimes first two elements are correctly displayed, sometimes only first. Other seems some random values (extremely large sometimes). May be the problem is in initializing the … | |
I am trying to write a shared library using C but need to call some C++ functions. So I have created a shared library containing the required C++ functions. How can I call those function from C code, I tried dlopen() and dlsym() in the C code. It creates handle … | |
Hi there: I am trying to output a single variable to a binary file, but couldn't get it done correctly. [code] result = 17.0; if ((OutFp1 = fopen("myfile.bin", "wb")) == NULL) { Application->MessageBox("File can't open.", NULL, IDOK); return; } fwrite(&result,sizeof(result), 1, OutFp1); fclose(OutFp1); if ((InFp15 = fopen("myfile.bin", "rb")) == NULL) … | |
How does "\b" and "\n" work together when they are placed next to each other in printf. For ex: Printf("\naa\b\n") The solution is "aa". I was wondering if anyone could explain me how/where "\n" is placed. Does the occurence of "\n" just makes the file pointer to transfer to the … | |
Can anybody help me to solve this problem? My program doesn't work as what it is required. Here is the question and my program code. Thanks. [CODE=c] /**Twenty-five numbers are entered from the keyboard into an array. Write a program to find out how many of them are positive, how … | |
program to display 10 multiples of a number [code=c] #include<stdio.h> main() { int m,n,o; m=5; for(n=0;n<11;n=n+1) o=m*n; printf("Multiples are %d",o); }[/code] | |
can anyone please help me write a program to find the size of primitve datatypes in a particular complier and display the same on the screen. | |
Hi all, I have one question regarding pointers.. suppose..I've one pointer tht points to block of data[RAW data - may be sound file]. and i want to copy this data to another location which pointed by another pointer. so plz show me the way ..how to do tht. | |
Hi guys. I cannot figure out how to do next thing. for example i have a little progie like this: [CODE]int myfunction(int argc, char *argv[]){ int i; for(i=0;i<argc;i++) unlink(argv[i]); } int main(int argc, char *argv[]){ myfunction(argc,argv); }[/CODE] works fine, but i'm trying to do that: [CODE]int myfunction(int argc, char *argv[]){ … |
The End.