Ok...now I fully understand how this program works....but I face another more difficult recursion
#include <stdio.h>
int FUNCTION (int n);
main(void)
{
int n...
Type: Posts; User: Siaw
Ok...now I fully understand how this program works....but I face another more difficult recursion
#include <stdio.h>
int FUNCTION (int n);
main(void)
{
int n...
Ya, of course I try to trace this program before but I still can't obtain the correct output...Now I understand some but why should I return
1 + 0 = 1 then going up to 1 + 1 again ?
First, I should show the question first...
(i) Using typedef, declare a structure called employee which can hold the following details of an employee.
ID
Name
Position
(ii) Using the...
Ok ~ Thanks everyone. I will keep in mind ^^
How about if I use the <strsafe.h> library? After I use can I prevent buffer overruns?
Did gets stored new line too? Can I change all my fgets into gets?
Very thanks you everyone ~ Below is my code so far...
#include <stdio.h>
#include <stdlib.h>
struct DATE {
int month;
I also hope that I can just call the DATE struc but because of below requirement....
(v) Write a C program segment that prompts the user to input 10 sets of student records. Store the data entered...
My code below...
#include <stdio.h>
#include <stdlib.h>
struct DATE {
int month;
Can you please get me an example how to start reading user input? I know how use use for loop but I don't know how to get start with store input into the IBcourse course.
Thanks for you again. But can you teach or give me some hints me how to done the below question by using the following codes please. (Because I am not good in nested structure)
(v) Write a C...
Ok...below is the code. Am I do right for (iv)?
#include <stdio.h>
#include <stdlib.h>
struct DATE {
int month;
Oh,...I understand but how can I do number (iv)? What does (iv) mean?
First, lets view the question...
(i) Declare a tagged structure called DATE which consists of the following members:
month (eg. 12)
day (eg. 5)
year (eg. 2001)
(ii) Using typedef, declare...
Lol...I never thinks is this problem....very thanks :wink:
Hmm...I try to figure it out but I still don't know what wrong...so I think I post my codes.
#include <stdio.h>
#include <stdlib.h>
struct DATE {
int month;
Very thanks you. But now its still remains one error...
C:\Documents and Settings\Administrator\Desktop\Q5.c|22|error: two or more data types in declaration specifiers|
||=== Build finished: 1...
Oh...I understand but now got an error...
Error below
_________________________________________________________
C:\Documents and Settings\Administrator\Desktop\Q5.c|20|error: expected...
First, lets view the question...
(i) Declare a tagged structure called DATE which consists of the following members:
month (eg. 12)
day (eg. 5)
year (eg. 2001)
(ii) Using typedef, declare a...
Ok, I try to done this question, and below is my result. Did my coding correct?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct Employee {
char ID[4];
...
First...this is the question.
Modify the program in Q6 to allow a user to edit the employee detail based on the Employee ID field. Display the result before and after edit.
[Note: You should not...
Very thanks for all those help me ^^ I complete this program. Very thanks you ~
My newest code is here....I could now display customer search result but, when the customer input search 2 cd at the same time then input 2 cd names, the result only display 1 cd info. How can I...
I have change some of my code... so how can I display all information related to digimon if the users search Digimon?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef...
Very thanks you ~ I finally solve the the searching problem. But now I need to display all the details of the search items after the users has search. I know I has already display it when this...