Search:

Type: Posts; User: Krupux

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,660

    Hi, Yes that works. Thanks. :) Any reason...

    Hi,

    Yes that works. Thanks. :)

    Any reason why it has to be declared/used that way? and not



    void display_seats(char **seats);
  2. Replies
    4
    Views
    1,660

    Hi, If you mean display_seats(&seats[0]);...

    Hi,

    If you mean


    display_seats(&seats[0]);

    That doesn't work... :(
  3. Replies
    4
    Views
    1,660

    [Solved] Passing 2D array to a function

    Edit: Thanks for all the answers. :)

    Hi,

    How do I pass 2D array to a function correctly?

    Here's my code which doesn't work.
  4. Replies
    1
    Views
    2,728

    Database Search Algorithm

    Hi,

    I've given a project to implement the fastest database search algorithm in C.

    So my question is does anyone know the fastest algorithm? and perhaps an example source code?

    I've searched...
  5. Replies
    3
    Views
    1,983

    Thanks for your reply. So ENTER key can be...

    Thanks for your reply.

    So ENTER key can be either '\n' or '\r' ?

    If so, how do i know when pressing ENTER key will returns '\n' or '\r' ?


    Thanks.
  6. Replies
    3
    Views
    1,983

    Problem with getch() and fgetc()

    I have this code,


    #include <stdio.h>
    #include <conio.h>

    int main(void)
    {
    char test;
    test = getch();
  7. Replies
    11
    Views
    3,169

    So what I get from your replies is, Structures...

    So what I get from your replies is,
    Structures are to be declared outside main() when other function need access to them.
    Otherwise, they may be declared inside main().

    (Correct me if i'm...
  8. Replies
    11
    Views
    3,169

    Structures problem

    #include <stdio.h>

    void grade(struct student_info *);

    int main()
    {

    struct student_info
    {
    int examno;
  9. Replies
    2
    Views
    1,289

    Hmm, I see, I didn't know that. But anyway,...

    Hmm, I see, I didn't know that.

    But anyway, thanks for your reply. :)
  10. Replies
    2
    Views
    1,289

    Input Buffer problem.

    Okay, for example I have this code,



    char str[20];
    char chr;
    int num;

    /* Case 1 */
    printf("\nNum: ");
  11. Replies
    8
    Views
    6,039

    Can I use getch() or getche() ? If not, may i...

    Can I use getch() or getche() ?
    If not, may i know what's wrong with them?
  12. Replies
    5
    Views
    1,307

    i see, thanks for the replies.

    i see, thanks for the replies.
  13. Replies
    5
    Views
    1,307

    >scanf( "%*c" ); >scans for one character and...

    >scanf( "%*c" );
    >scans for one character and doesn't assign it to a variable.

    if that the case, what's the difference between putting

    scanf( "%*c" ); and scanf( "%c" );

    i've tried both,...
  14. Replies
    5
    Views
    1,307

    need help with scanf("%*c") stuff.

    #include <stdio.h>
    int main()
    { struct student {
    int snum;
    char name[30];
    int age;
    char sex;
    float score;
    };
    struct student info;
Results 1 to 14 of 14