Search:

Type: Posts; User: sherwi

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    19
    Views
    5,057

    struct Course{ char name[50]; char id[10];...

    struct Course{
    char name[50];
    char id[10];
    char year[10];
    };


    struct A{
    char name[50];
    char id[10];
  2. Replies
    19
    Views
    5,057

    what are the shortcomings? Coz i'll be doing a...

    what are the shortcomings?

    Coz i'll be doing a search and sort program on a student database.I need to sort alphabetically or numerically based on the results returned the search function.btw, my...
  3. Replies
    19
    Views
    5,057

    u mean using strcmp like say strcmp(s1,s2)

    u mean using strcmp like say strcmp(s1,s2)<0 and strcmp(s1,s2)>0 ?? will it work if i do this with insertion sort?
  4. Replies
    19
    Views
    5,057

    How can i sort strings using insertion sort?Is it...

    How can i sort strings using insertion sort?Is it possible?Coz i only understand this simply sort and im running out of time now...pls help..thanks
  5. Replies
    19
    Views
    5,057

    ya, i cant access that link too... Ascending...

    ya, i cant access that link too...

    Ascending and descending based on the type of member i want to sort.For example,if i want to sort a string ,then it is in alphabetical order...Any idea how to do...
  6. Replies
    19
    Views
    5,057

    Anyone knows how to sort arrays of structures?

    Hie there...

    Does anyone here knows how to sort arrays of structures in ascending and descending order?In the simplest way?

    For example my structure lookes like this:


    struct Course{
    ...
  7. Replies
    5
    Views
    3,264

    Oppps, that's a silly mistake i made...Thanks...

    Oppps, that's a silly mistake i made...Thanks alot guys and especially Salem!

    Actually there are more stuff to search for in this program which i haven included.The rest will be likely to return...
  8. Replies
    5
    Views
    3,264

    ehmm...is anyone free to help me?I only have 2...

    ehmm...is anyone free to help me?I only have 2 days to my assignment due date... :(
  9. Replies
    5
    Views
    3,264

    What's wrong with my search program?

    hi all experts...

    this is my assignment question, im required to create a search engine on a student database.I've created this but the program cant read the struct Record stud info .It's working...
  10. Replies
    31
    Views
    3,303

    for(j=0 ; j

    for(j=0 ; j<6 && ch=='Y'; j++)

    It this a valid statement?Coz it still runs the loop eventhough i type 'N'
  11. Replies
    31
    Views
    3,303

    else{ for(i=0 ; i

    else{
    for(i=0 ; i<13 ; i++){
    printf("Please enter student's name, id, year, major, credit hours, gpa and dean's list[yes/no]\n");
    fgets(stud[i].name,30,stdin);
    scanf("%ld %s %s %d %f...
  12. Replies
    31
    Views
    3,303

    else{ for(i=0 ; i

    else{
    for(i=0 ; i<13 ; i++){
    printf("Please enter student's name, id, year, major, credit hours, gpa and dean's list[yes/no]\n");
    fgets(stud[i].name,30,stdin);
    scanf("%ld %s %s %d %f...
  13. Replies
    31
    Views
    3,303

    else{ for(i=0 ; i

    else{
    for(i=0 ; i<13 ; i++){
    printf("Please enter student's name, id, year, major, credit hours, gpa and dean's list[yes/no]\n");
    fgets(stud[i].name,30,stdin);
    scanf("%ld",&stud[i].id);...
  14. Replies
    31
    Views
    3,303

    Is it okay if i change my program to use fgets()...

    Is it okay if i change my program to use fgets() to get all strings?Instead of using clear_buffer function?
  15. Replies
    31
    Views
    3,303

    #include struct Login{ char...

    #include <stdio.h>

    struct Login{
    char name[15];
    char password[15];
    };

    struct Course{
    char name[50];
    char id[10];
  16. Replies
    31
    Views
    3,303

    This means that i need to use this clear_buffer...

    This means that i need to use this clear_buffer function each time i use fgets?I wonder why sometimes the compiler couldn't read fgets statement.It happens in a few of my programs!It just skip the...
  17. Replies
    31
    Views
    3,303

    thanks ssharish2005... But may i ask why do we...

    thanks ssharish2005...

    But may i ask why do we need void clear_buffer(void) function? :confused:
  18. Replies
    6
    Views
    5,229

    Thanks everyone for all the good replies and...

    Thanks everyone for all the good replies and opinions!

    I've decided to use binary files.But,i have a question here...

    After opening a new file, when i am writing all my student data into that...
  19. Replies
    6
    Views
    5,229

    Text file versus Binary file

    Hi all...

    Im a little confused about the usage and purpose text and binary files.

    To create a binary file, i need to fopen() a file with binary modes such as rb,wb,ab...etc... and we can only...
  20. Replies
    31
    Views
    3,303

    Can anyone help me ?plssss....thank you so much

    Can anyone help me ?plssss....thank you so much
  21. Replies
    31
    Views
    3,303

    Thanks spydoor.. #include ...

    Thanks spydoor..


    #include <stdio.h>

    struct A{
    char name[50];
    char id[8];
    char year[8];
    char grade[3];
  22. Replies
    31
    Views
    3,303

    #include struct A{ char name[50];...

    #include <stdio.h>

    struct A{
    char name[50];
    char id[8];
    char year[8];
    char grade[3];
    };

    struct Record{
  23. Replies
    31
    Views
    3,303

    Erm...i don't quite understand what u mean by...

    Erm...i don't quite understand what u mean by this.Mind to explain?thanx
  24. Replies
    31
    Views
    3,303

    ok, i'll try then..thanx for the codes ! If it...

    ok, i'll try then..thanx for the codes !

    If it okay if i don't use scanf statements to get all the data?Instead i just initialize all the data in structure and write it to a file.Will it work the...
  25. Replies
    31
    Views
    3,303

    Hi vinit...thanks for da reply! For my student...

    Hi vinit...thanks for da reply!

    For my student database which consist :
    Student name,ID,Year of degree,Major,Courses name and id,total credit hours,Grades for each course,GPA,Dean's list.

    Is...
Results 1 to 25 of 32
Page 1 of 2 1 2