15,552 Topics

Member Avatar for
Member Avatar for manavsm

i want to delete the entry of a student using its roll no....its not working It is my earlier program and i just modified it but now i am not being able to perform deletion operation..if you will help me my project will get over.. [icode] #include<stdio.h> struct student { …

Member Avatar for stephen84s
0
110
Member Avatar for NiNTENDU

Hi all, this is my first post! I'm pretty new to C and maybe this is a dumb question. I've a function that accept a string as a parameter for modify it but it doesn't (I'm sure there is some logical mistake with pointers): [CODE=C] void doSomething(char *string) { string …

Member Avatar for NiNTENDU
0
798
Member Avatar for manavsm

PLZ HELP ME WITH THIS CODE...I HAVE GIVEN THIS CODE SO MANY TIMES BUT NOBODY IS ABLE TO CLEAR MY ERROR.... 1.DISPLAY IS NOT COMING ONLY LAST VALUE I ENTER IS DISPLAYED 2.DELETION OPETATION .............AND YES I WANT TO USE LINKED LIST....IF ANY 1 KNOWS IT TELL ME............. [ICODE] #include<stdio.h> …

Member Avatar for Luckychap
0
146
Member Avatar for Visage

Hi everyone, I am having trouble using enums in structs. I am developing for the linux platform, with the gcc compiler. Below is an example of the code that produces the error. [code=c] enum Day {Monday=0x01, Tuesday=0x02, Wednesday=0x03}; typedef struct { int numberofDays; Day weekday; } Week; [/code] When I …

Member Avatar for Ancient Dragon
0
159
Member Avatar for govind_kishan

I want 2 convert a C prog. into HEX code. We are using microcontroller IC AT89C52.

Member Avatar for jephthah
0
108
Member Avatar for fishwater00

[code] #include ”functions.h” typedef struct { int x, int y, int z; }Model; int main() { Model PARA[100]; PARA=malloc(sizeof(struct Model)); myfunction(int A, int B, int C, PARA); return: } [/code] In another file, I define “myfunction”: [code] void myfunction(int a, int b, int c, Model *para) { a=b=c=10 ; /*can …

Member Avatar for fishwater00
0
105
Member Avatar for petermichael

I have this task and i dont know how to do it, any help will be appreciated I want to do it in C language under linux Evaluate Boolean expression given by the user by using tree data structure. An example of the Boolean expression is ((X1 * X2 * …

Member Avatar for jephthah
0
30
Member Avatar for Frenchstar

Hi, i am stuckon this particular assignment. I will appreciate it if you guyz help me out on these problems.............. 1. Write two functions Max( ) and Min( ) where • max() returns the maximum of two integers • min() returns the minimum of two integers • Each function takes …

Member Avatar for Jishnu
0
97
Member Avatar for emilio

is there any way to synchronize two processes after fork() command. if i had deal with threads i know i can use pthread_mutex to make them work one after another. can i do so with processes ?

Member Avatar for stephen84s
0
47
Member Avatar for sambafriends

[code=c] main( ) { int i=10,j=20; printf("%d%d",&i,&j); return 0; } [/code] When i executing this code: I got the address values like -12, -10, -20 Is it the address are in negative values or I am doing a mistake in the program. please give the solution it's urgent.

Member Avatar for awi123
0
111
Member Avatar for manavsm

i am facing problem when i am trying to get input...my input is not being taken correctly ... #include<stdio.h> struct student { char name[20]; int rollno; struct student *next; }; void display(struct student *first) { struct student *ptr; ptr=first; printf("\nCurrent list:\n"); while(ptr!=NULL) { printf("Name:%s\nRoll:%d",ptr->name,ptr->rollno); ptr=ptr->next; } } void delet(struct student …

Member Avatar for jephthah
0
245
Member Avatar for gargg321

Hey Guys, I am new to C programming and I got a task of storing hex dumps in character array and then use them as a string. I use the sprintf function for the job but it is giving me incorrect results. Please help me out. I am writing a …

Member Avatar for gargg321
0
278
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
278
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
217
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
42
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
293
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
266
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
161
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
121
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
121
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
117
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
100
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
260
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
905
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
113

The End.