15,540 Topics

Member Avatar for
Member Avatar for champnim

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 …

Member Avatar for champnim
0
274
Member Avatar for sambafriends

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] …

Member Avatar for manavsm
0
161
Member Avatar for manavsm

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 …

Member Avatar for jephthah
0
107
Member Avatar for Software guy

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 …

Member Avatar for Software guy
0
207
Member Avatar for Utter_iMADNESS

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" …

Member Avatar for Utter_iMADNESS
0
94
Member Avatar for amarforum12

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 …

0
41
Member Avatar for moogle1979

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 …

Member Avatar for moogle1979
0
221
Member Avatar for vidaj

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 …

Member Avatar for jephthah
0
262
Member Avatar for Clockowl

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 …

Member Avatar for Jishnu
0
154
Member Avatar for fishwater00

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[]) { …

Member Avatar for jephthah
0
118
Member Avatar for meabed

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

Member Avatar for ckb4u
0
74
Member Avatar for Alex_

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!

Member Avatar for Alex_
0
95
Member Avatar for rraj.be

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 …

Member Avatar for Jishnu
0
110
Member Avatar for asana.iyer

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 …

Member Avatar for Salem
0
116
Member Avatar for purplegerbil

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

Member Avatar for Salem
0
99
Member Avatar for kamal85

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

Member Avatar for Nick Evan
0
259
Member Avatar for Alex_

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+"); …

Member Avatar for Alex_
0
903
Member Avatar for riahc3

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 …

Member Avatar for Ancient Dragon
0
112
Member Avatar for mayu

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..

Member Avatar for jephthah
0
2K
Member Avatar for narendharg

Hello , I would request you to give some information regarding the use of LOCATOR/LINKER. With Regards Narendhar.G

Member Avatar for Salem
0
88
Member Avatar for grvs

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 …

Member Avatar for grvs
0
5K
Member Avatar for grvs

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 …

Member Avatar for grvs
1
719
Member Avatar for sanchit223

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 …

Member Avatar for Ancient Dragon
0
156
Member Avatar for driplet

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) …

Member Avatar for driplet
0
116
Member Avatar for abhijithda

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 …

Member Avatar for jephthah
0
241
Member Avatar for J-son

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 …

Member Avatar for J-son
0
109
Member Avatar for awi123

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]

Member Avatar for Aia
0
108
Member Avatar for thirtan

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.

Member Avatar for thirtan
0
90
Member Avatar for amarhp

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.

Member Avatar for Radical Edward
0
81
Member Avatar for somename

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[]){ …

Member Avatar for LouPascalou
0
95

The End.