Search:

Type: Posts; User: Tethys

Search: Search took 0.00 seconds.

  1. Thread: Challenges

    by Tethys
    Replies
    1
    Views
    2,000

    Challenges

    I don't know how to put this without sounding incredibly dumb, but I have a question.

    We have to set a Set of questions for a programming contest, and besides the standard set of esoteric code on...
  2. Hmm, I suppose you're right. Still no...

    Hmm, I suppose you're right.

    Still no solution...
  3. Replies
    10
    Views
    1,137

    It's not wrong. The first definition of **kam is...

    It's not wrong. The first definition of **kam is at a global scope. Any function can use it. The second definition of kam is at a scope local to the function sample_init(). Concequently, this...
  4. N-Queens Problem. Brute force solution. Debugging help needed

    As you probably know, the N-Queens problem involves placing N- queens on an NxN chess board such that no two queens are attacking each other. I'm trying out a brute force method to get this working....
  5. Thread: testing struct

    by Tethys
    Replies
    2
    Views
    845

    Re: testing struct

    x is of type 'int' whereas the function tofeetinch() returns a variable of type struct measure. You can't assign different types like this. (Some types, yes. These types, no). And "%d" only prints...
  6. Replies
    9
    Views
    3,425

    Hmm. Sorry, I didn't know that.

    Hmm. Sorry, I didn't know that.
  7. Replies
    9
    Views
    3,425

    Fist off, I don't see how this can compile as a C...

    Fist off, I don't see how this can compile as a C program. You've used a lot of loops woth the variable declared within the for() part. In C, You just can't have a for(int x=0;x<10;x++).

    Anyway,...
  8. Replies
    10
    Views
    64,351

    Use the sys/timeb.h header file. Use a timeb...

    Use the sys/timeb.h header file. Use a timeb struct


    struct timeb {
    long time ; /* seconds since 00:00:00, 1/1/70, GMT */
    short millitm ; /* fraction of second (in milliseconds) */...
Results 1 to 8 of 8