Hi: Jamal and or Jim H have a number of Fruit basket examples on their sites that might be of interest. Jim -----Original Message----- From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx] On Behalf Of Rejin Jose k. Sent: August 28, 2013 9:11 AM To: program-l@xxxxxxxxxxxxx Subject: [program-l] Re: please do correction hello, i'm a computer science student. I have an average knowledge about C programming and Java. that's what i'm. in my studies i'm just getting into the topics with the basic operations. I need to get more knowledge to do advanced programming. to create some simple applications with GUI.then only I can build up my skills otherwise I will stuck with this basic arithametic operations and descision making loops. I believe you all can help me to grow up. that's why i'm here in this mailing list. i'm sorry I know i'm making traffic in the list. so if anyone can help me please do help me personally. my personal mail id:rejinjose.k@xxxxxxxxx On 8/27/13, Corbett, James <James.Corbett@xxxxxxxxxxxxx> wrote: > Hi: > > GUI creation along with the underlying code is primarily what this list is > about. To give you a basic feel in a single message is impossible. Many of > us have spent most of our careers dealing with and creating such. > > ...what is your background? Perhaps from there we can help. > > Jim > > -----Original Message----- > From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx] > On Behalf Of Rejin Jose k. > Sent: August 27, 2013 12:56 PM > To: program-l@xxxxxxxxxxxxx > Subject: [program-l] Re: please do correction > > hello, i'm not much familiar with GUI creation. please let me know > from the basics? > > On 8/27/13, Giang <hoanggiang1994@xxxxxxxxxxx> wrote: >> Of course! You can! However, you might have to create a GUI outside of >> your >> >> source code and then compile them. >> >> -------------------------------------------------- >> From: "Rejin Jose k." <m2rejin@xxxxxxxxx> >> Sent: Saturday, August 24, 2013 9:12 PM >> To: <program-l@xxxxxxxxxxxxx> >> Subject: [program-l] Re: please do correction >> >>> hello, >>> thank you very much for the correction. I could clear it. I need to >>> know one more thing. i'm using minGW compiler. how can I create a >>> simple calculator with GUI with the same 5 operations. i'm just >>> doing it simply in the command line. it feels little boaring,can I do >>> this with a GUI? >>> >>> On 8/24/13, Giang <hoanggiang1994@xxxxxxxxxxx> wrote: >>>> Dear Rejin, >>>> First, you should put all the function before the main() one, unless >>>> you >>>> >>>> put >>>> >>>> the prototype of them before main(). >>>> Function in c have to be written in order. A function have to be put >>>> before >>>> >>>> the function used to call it. If you want to put it after the caller, >>>> you >>>> have to define its prototype. >>>> Prototype is a reduce form of a function. It is put after preprocessor >>>> definition and global variable decleration. >>>> Second, you have to include the function's type before its name. In >>>> this >>>> case, sum(), sub(), prodct(), div(), and mod() do not return anything, >>>> so >>>> you should write: >>>> void sum() >>>> void div() >>>> etc >>>> With the main() function, the type should be int, and the return value >>>> should be 0; >>>> Third, you should put all thing in the printf() function on one line. >>>> Fourth, the scanf() function in mod() function have a syntax error, >>>> with >>>> >>>> the >>>> >>>> right parrent ')' right after the quote sign '"'. >>>> Last, instead of else, i suggest using an if statement as follow: >>>> if(x>5 && x<1) >>>> Else statement in c may not observe all the cases, so after print out >>>> the >>>> result, it also run the else statement. >>>> >>>> Cheers >>>> >>>> -------------------------------------------------- >>>> From: "Rejin Jose k." <m2rejin@xxxxxxxxx> >>>> Sent: Saturday, August 24, 2013 10:24 AM >>>> To: "program-l" <program-l@xxxxxxxxxxxxx> >>>> Subject: [program-l] please do correction >>>> >>>>> hello friends, >>>>> I was doing a simple C program consisting all arithmetic operators. >>>>> i'm using minGW compiler. it shows some errors with div function. >>>>> please check and help me. following is the source code: >>>>> #include<stdio.h> >>>>> #include<conio.h> >>>>> #include<stdlib.h> >>>>> int a,b; >>>>> float c,d; >>>>> main () >>>>> { >>>>> int x; >>>>> printf("enter the operation you have to do"); >>>>> printf("\n enter 1 for addition \n enter 2 for substraction \n enter 3 >>>>> for multiplication \n enter 4 for division \n enter 5 for modulus >>>>> "); >>>>> scanf("%d",&x); >>>>> if(x==1) >>>>> { >>>>> sum(); >>>>> } >>>>> if(x==2) >>>>> { >>>>> sub(); >>>>> } >>>>> if(x==3) >>>>> { >>>>> prodct(); >>>>> } >>>>> if(x==4) >>>>> { >>>>> div(); >>>>> } >>>>> if(x==5) >>>>> { >>>>> mod(); >>>>> } >>>>> else >>>>> printf("sorry that is not defined in this program"); >>>>> getch(); >>>>> } >>>>> sum() >>>>> { >>>>> int a,b; >>>>> printf("enter the numbers"); >>>>> scanf("%d%d",&a,&b); >>>>> a+=b; >>>>> printf("sum = %d",a); >>>>> } >>>>> sub() >>>>> { >>>>> int a,b; >>>>> printf("enter the numbers"); >>>>> scanf("%d%d",&a,&b); >>>>> a-=b; >>>>> printf("difference = %d",a); >>>>> } >>>>> prodct() >>>>> { >>>>> printf("enter the numbers"); >>>>> scanf("%d%d",&a,&b); >>>>> a*=b; >>>>> printf("product = %d",a); >>>>> } >>>>> div() >>>>> { >>>>> printf("enter the number"); >>>>> scanf("%f%f",&c,&d); >>>>> c/=d; >>>>> printf("quotient = %f",c); >>>>> } >>>>> mod() >>>>> { >>>>> printf("enter the numbers"); >>>>> scanf("%d%d"),&a,&b); >>>>> a%=b; >>>>> printf("remainder = %d"); >>>>> } >>>>> >>>>> >>>>> >>>>> -- >>>>> With Warm Regards, >>>>> Rejin Jose >>>>> email:m2rejin@xxxxxxxxx >>>>> cell:8281293699 >>>>> >>>>> Have a Great Day...... >>>>> ** To leave the list, click on the immediately-following link:- >>>>> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] >>>>> ** If this link doesn't work then send a message to: >>>>> ** program-l-request@xxxxxxxxxxxxx >>>>> ** and in the Subject line type >>>>> ** unsubscribe >>>>> ** For other list commands such as vacation mode, click on the >>>>> ** immediately-following link:- >>>>> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] >>>>> ** or send a message, to >>>>> ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq >>>>> >>>> ** To leave the list, click on the immediately-following link:- >>>> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] >>>> ** If this link doesn't work then send a message to: >>>> ** program-l-request@xxxxxxxxxxxxx >>>> ** and in the Subject line type >>>> ** unsubscribe >>>> ** For other list commands such as vacation mode, click on the >>>> ** immediately-following link:- >>>> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] >>>> ** or send a message, to >>>> ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq >>>> >>> >>> >>> -- >>> With Warm Regards, >>> Rejin Jose >>> email:m2rejin@xxxxxxxxx >>> cell:8281293699 >>> >>> Have a Great Day...... >>> ** To leave the list, click on the immediately-following link:- >>> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] >>> ** If this link doesn't work then send a message to: >>> ** program-l-request@xxxxxxxxxxxxx >>> ** and in the Subject line type >>> ** unsubscribe >>> ** For other list commands such as vacation mode, click on the >>> ** immediately-following link:- >>> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] >>> ** or send a message, to >>> ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq >>> >> ** To leave the list, click on the immediately-following link:- >> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] >> ** If this link doesn't work then send a message to: >> ** program-l-request@xxxxxxxxxxxxx >> ** and in the Subject line type >> ** unsubscribe >> ** For other list commands such as vacation mode, click on the >> ** immediately-following link:- >> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] >> ** or send a message, to >> ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq >> > > > -- > With Warm Regards, > Rejin Jose > email:m2rejin@xxxxxxxxx > cell:8281293699 > > Have a Great Day...... > ** To leave the list, click on the immediately-following link:- > ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] > ** If this link doesn't work then send a message to: > ** program-l-request@xxxxxxxxxxxxx > ** and in the Subject line type > ** unsubscribe > ** For other list commands such as vacation mode, click on the > ** immediately-following link:- > ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] > ** or send a message, to > ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq > ** To leave the list, click on the immediately-following link:- > ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] > ** If this link doesn't work then send a message to: > ** program-l-request@xxxxxxxxxxxxx > ** and in the Subject line type > ** unsubscribe > ** For other list commands such as vacation mode, click on the > ** immediately-following link:- > ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] > ** or send a message, to > ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq > -- With Warm Regards, Rejin Jose email:m2rejin@xxxxxxxxx cell:8281293699 Have a Great Day...... ** To leave the list, click on the immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link doesn't work then send a message to: ** program-l-request@xxxxxxxxxxxxx ** and in the Subject line type ** unsubscribe ** For other list commands such as vacation mode, click on the ** immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq ** To leave the list, click on the immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link doesn't work then send a message to: ** program-l-request@xxxxxxxxxxxxx ** and in the Subject line type ** unsubscribe ** For other list commands such as vacation mode, click on the ** immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq