15,551 Topics

Member Avatar for
Member Avatar for vipin.sachan

In a 'C' program,when I am trying to allocate memory with the help of malloc () function, it is allocating the memory up to a certain limit for e.g. in my case, it is 670 MB (approx). malloc() returns NULL if I allocate more than this amount of memory.When I …

Member Avatar for mitrmkar
0
185
Member Avatar for hqt

I want to make a Desktop Effect (for example: fallen leave, snow,... on Desktop) but I don't know how to do that (one of these problem is: how can I do "something" on Desktop, because every program that I had programed run in a window) Who can discuss this problem …

Member Avatar for nbaztec
0
100
Member Avatar for prabindatta

[CODE] #include <stdio.h> #include <stdlib.h> struct amicable { int** amicablePair; int size; }; struct amicable *getAmicablePairs(int startnum, int endnum); int sumFactors(int number); int main(int argc, char** argv) { int startnum = 220; int endnum = 284; struct amicable* ami; int i; ami = getAmicablePairs(startnum, endnum); if(ami==NULL) { printf("Error: malloc could …

Member Avatar for arpit1109
0
112
Member Avatar for anjoz

help on this enrollment system in cprogramming when I run the programming the output sometimes fall through example when i enter the student number name and address but when i press enter in the address it skips the scanf in the status and goes to the gender it alse does …

Member Avatar for Adak
0
2K
Member Avatar for loly

hey guys .. ausome forum ... i know the basics of c programming but i am going on to the next level and i am having some diffculties ..with multi-threading ... theres this program i read but i couldnt solve ,, hope some one here knows how to help me.. …

Member Avatar for raviranjanprasa
0
2K
Member Avatar for ranjita.cdt.esg

can anyone guide me to good websites with respect to this topic "image deblur without original image" I have gone through a number of papers and codes for a week. all examples had codes which took a original good image added a blur function & then deblurred that image. I …

Member Avatar for 0x69
0
1K
Member Avatar for moroccanplaya
Member Avatar for cmsc

for example I have this file named 'bst.h'. do i need to compile it so i will be able to use it? what do I need to write in the terminal to run my program? thank you very much.

Member Avatar for Saravanan5
0
71
Member Avatar for rapids79

Hi, I am trying to use strtok()..the idea is to split the text in tokens seperated by ";" as the delimiter. The text is in two parts like: apple;mango (apple being the first part and mango being the second I want to split into). The code I'm using: [CODE] #include<stdio.h> …

Member Avatar for nbaztec
0
182
Member Avatar for cmsc

i have this program that should print first name, middle name and last name. it almost works, but when I print strings, weird characters appear. I don't know how it's called, but instead of strings appearing, those characters appear. does anybody know why? I included parts of my program here: …

Member Avatar for cmsc
0
89
Member Avatar for whattever

[CODE]/* < newton.c > */ #include "smp.h" main() { void USERF(double *,double *,double); double x0,e; int n,NMAX; /*** ステップ1 データの入力 ***/ printf("\n初期値 x0 = "); scanf("%1f",&x0); printf("\n収束判別定数 p = "); scanf("%1f",&e); printf("\n最大反復回数 NMAX = "); scanf("%d",&NMAX); /*** ステップ2 ニュートン・ラプソン法の計算 ***/ S_NEWT(&n,&x0,e,NMAX,USERF); /*** ステップ3 計算結果の出力 ***/ printf("\n反復回数:N=%d 解:X(N)=%10.71e",n,x0); } /* < …

Member Avatar for nbaztec
0
494
Member Avatar for vigneshbro

Can u plz explain the output...... [code] #include<stdio.h> #define product(n1,n2) n1*n2 int main() { int a,b,c; a=b=2; c=product(a+2,b+1); printf("%d",c); return 0; } [/code] output:7

Member Avatar for kings_mitra
-1
65
Member Avatar for NewOrder

my task is to use a loop,, i need the loop to go till 77777 the problem is that the numbers need to be octagon type.. 1-8 instead of 1-10. i have no idea how to make that conversion. i created 2 loops... i tried to come up with a …

Member Avatar for NewOrder
0
160
Member Avatar for god_like

hello world. I dont can finish my project. can you solves the problems? I use code:blocks and every funktion and header is on a own file. [code=c] #include <stdio.h> #include <time.h> #include <stdlib.h> int main(void); void field(int paiOpen[][18], int iBig); int summe(int iGroesse, int paiFeld[][18]); int inputf(int *piFeld); void randgen(int …

Member Avatar for god_like
0
127
Member Avatar for 143wena

please help me on this making a payroll system using MSSQL.. i dont know how to start.. just a simple one.. please..

Member Avatar for nbaztec
0
120
Member Avatar for cmsc

aside from itoa function, is there any other way to convert a string to an integer? itoa function won't work in my compiler.

Member Avatar for cmsc
0
78
Member Avatar for cmsc

i have this structure : [CODE] typedef struct nodetag{ char *employeeNumber; name mName; birthday bday; char *address; char *rank; int salary; hireDate *hdate; }*node; typedef struct nodetag1{ char *month; char *date; char *year; }birthday; [/CODE] but I don't know how to access the month in bday. i tried using node1->bday->month …

Member Avatar for cmsc
0
85
Member Avatar for iqra123

hiii, i want to make user inteface for my C program in linux. is there any way other than GTK Glade interface?? i never used Glade before so i do not know weahter i could make UserInterface for my C program in that or not? as Glade has its own …

Member Avatar for iqra123
0
108
Member Avatar for Ferny84

Ok, so i'm supposed to create this ADT structure and i'm having problems storing data into a function and printing it. These are the three files I have: [CODE]#include "myBook.h" #include <stdio.h> #include <stdlib.h> Book *createBook(char title, float price, int stock, char person) { Book *myBook; myBook = (Book*) malloc(sizeof(Book)); …

Member Avatar for Radical Edward
0
92
Member Avatar for ankur_

Hi All, Where can I find the source code for ssl in linux I have to send a file encrypted with ssl in linux It would be helpful if anyone can send me the steps for that Regards, Ankur.

Member Avatar for Ancient Dragon
0
63
Member Avatar for sanagopi

hi ...i have registered for reliance power...the written test will be held on july 2010..now i have to prepare for that exam...will u please tell...what to study for the technical test..please help me thank you..please suggets me some books for technical...i have selected IT specialisation for technical written test...thank you,have …

Member Avatar for Ancient Dragon
0
134
Member Avatar for Ferny84

Can someone please show me an example of how to read lines from a file with this format: Book One 49.99 1 Authors Name I know I am supposed to use fgets since there is whitespace in the strings, i'm just not sure how to read and store the data …

Member Avatar for Ancient Dragon
0
116
Member Avatar for banjes31

Im trying to play a midi file on a glockenspiel using an MSP430 microcontroller. i will have 25 actuators playing the bells. Im having problems converting a midi file to text. does anybody know of a good midi to text converter or of another method of doing this project?

0
108
Member Avatar for deeer

hi there I'm struggling on this problem hope you can help me here is the question: Define an enumerated type named Suits that lists the four suits of a card deck plus a constant meaning \error" or \no suit". Use UPPER CASE for constants in your enumeration. - Use typedef …

Member Avatar for deeer
0
146
Member Avatar for harshchandra

This program maintains a employee's record using Doubly linked list.It was a weekly project submission by me for the course CI 031 .Invloves simple graphics and a login menu where i had used file handling to maintain a record of 3 user's name and their password .So before running the …

Member Avatar for ylnsagar
0
344
Member Avatar for iqra123

hi following i a code that calculates systems up time in days, hrs, min, sec after calculation result is sent to client. but through this code we can only send any one paramter mean either day, hrs, min or sec. as a result of this code we get on client …

Member Avatar for nbaztec
0
87
Member Avatar for aianne

Hi!, I'm newbie here on daniweb.. and i dont know if i'm in a right place to post this problem. lol. *sorry for my english* anyway, will you please help me about Turbo C? My teacher gve us a sample problem and he starts it with this code : [code]#include<conio.h> …

Member Avatar for Adak
0
301
Member Avatar for iqra123

hii i m using atoi() to convert char value to int. and then passing that int as a swtich variable. switch goes in a case and exectuing that particualr function but returning 0 value.... for example: i am finding no of process() and system up time(). when switch program goes …

Member Avatar for nbaztec
0
105
Member Avatar for andrewll2

Hello! [COLOR="Green"]Little unimportant info about me: I think i can program in c# in a quite good way,but I would like to make my programs useful also for people who hasn't got .NET framework installed. So i started to learn c and to rewrite my c# programs in c.[/COLOR] I'm …

Member Avatar for andrewll2
0
361
Member Avatar for akand

I have some data in a table in mysql. I have written a program which can connect to the database and access all tables and data of mysql. I have a variable in the C program. I want a particular data in one of the tables in the database to …

Member Avatar for tesuji
0
541

The End.