15,552 Topics
| |
Hiii.... I am stuck here.. I want a function which can return a string and also it should be able to take DEFAULT string arguments.... can anyone help me wid d syntax?? | |
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 … | |
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 … | |
[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 … | |
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 … | |
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.. … | |
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 … | |
| |
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. | |
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> … | |
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: … | |
[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); } /* < … | |
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 | |
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 … | |
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 … | |
please help me on this making a payroll system using MSSQL.. i dont know how to start.. just a simple one.. please.. | |
aside from itoa function, is there any other way to convert a string to an integer? itoa function won't work in my compiler. | |
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 … | |
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 … | |
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)); … | |
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. | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … |
The End.