19,876 Topics

Member Avatar for
Member Avatar for sivakrishna

modify the program siutably so that once the calender for a particular year has been displayed on screen , and year has been displayed on the screen,then using arrow keys the user must be able to change the calender in the following manner: UP ARROW KEY :next year,same month DOWN …

Member Avatar for ssharish2005
-1
172
Member Avatar for callmeravi81

Hi, Any one can help me .. i want the C++ code for hashing operations to implement dictionary ADT....Plz help me ... Thank you

Member Avatar for Jishnu
0
77
Member Avatar for Aleczz

Hello Im coding mp3 encode / ripping tool and because i have licence to realbasic im gonna make user interface with it Technical part im gonna make with akrip.dll and i have develope it more by my own way now. The meaning is use threads for ripping and encode in …

Member Avatar for Aleczz
0
158
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
112
Member Avatar for blood08

Hey I am following a video tutorial teaching pointers... I am following along and writing what they have. Which is: [CODE]#include <iostream> using namespace std; void main() { int myArray[4] = (1, 2, 3, 4); cout << (int)myArray << endl; cout << (int)&myArray[1] << endl; }[/CODE] They are able to …

Member Avatar for blood08
0
290
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
800
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
148
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
162
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
110
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
106
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
32
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
101
Member Avatar for Foo_with_a_floo

GREEDY COUPLE A party game has the fourteen party guests sitting in a circle on chairs numbered, in a clockwise direction, one to fourteen. A cup of beverage is passed from person to person around the circle in a clockwise direction, starting with the person sitting on chair number one. …

Member Avatar for joshmo
0
220
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
50
Member Avatar for thehype2049

Ok, so im doing an assignment and Here is the question: -------------------------------------------------------------------------------------------------- Using the base class Person which has two member variables called name and birthday [both of type string], derive two separate classes from Person, called Student and Professor. The Student class has a major [string] and a gpa …

Member Avatar for thehype2049
0
90
Member Avatar for cam9856

Hello, I was wondering if it was possible to take a string variable or an integer variable and send it to another computer like client/server architecture and also read that data from that same computer. I am thinking that winsock will be ideal for doing this but if anyone knows …

Member Avatar for cam9856
0
155
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
115
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
279
Member Avatar for mauripelto

Please see my post in the Community Introductions also. I know a little about C++. I'm committed to working in the DEV-C++ IDE environment. I want to learn very simple graphics. I went to the website: [url]www.uniqueness-template.com/devcpp/[/url] and found there the commands "moveto" and "lineto" as well as the linker …

Member Avatar for Duoas
0
112
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
289
Member Avatar for angelsherin

Hi, In my project, i have to access the controls of a running application for ex, a Accessing all controls of a running windows application developed in .net.I have to get all those controls of the running application and change its caption. ex(buttonName,LabelName etc).I tried to implemented that ,but only …

Member Avatar for Ramy Mahrous
0
70
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
284
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
163
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
110
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
222
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
97
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
44
Member Avatar for Tyreses

Would anyone happen to know A. The header file for standard winsock use and B. a helpfull tutorial on basic winsock client/listen string transfer? Help is much appreciated, thankyou.

Member Avatar for Flamingkat
0
115
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
320
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
270
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
164
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
126
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
76
Member Avatar for hjast

how I connect a c# controller on a server and an asp.net form based website (it has to go though the c# controlelr to get the data, not just in database)

Member Avatar for serkan sendur
0
52
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
99
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
122
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
120
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
103
Member Avatar for elduquex26x

Hello, I was curious if anyone knew any Rule Engines availble for a C++ application? I've found a number of Java based Rule Engines and a couple for .NET managed code however these aren't options for my current purpose. I'm looking to have a 'rules' file that holds all of …

0
67
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
262
Member Avatar for USUAggie

When I test my stack with an int when I do pop all it seems to return is the address of the thing that I want and not the value, which makes sense since I return something by reference.. but I just cant seem to figure out what to do …

Member Avatar for Alex Edwards
0
143
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
918
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
118
Member Avatar for sam1

hi, I have been used to vb. now I am trying to do c# winforms. in visual basic usually when coding you get a drop down menu at the top which lists all your components and method names. is this possible to get with c# winforms as it would make …

Member Avatar for Shaunak.Soni
0
67
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
90
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
728
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
161
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
121

The End.