Search:

Type: Posts; User: Gustaff

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. it still not working

    the only difference between the code I posted, and the one i'm writting, is that some_board is now a parameter of a function.
    I think it shouldn't be a mistake.



    void func(t_board b) {...
  2. problem with pointers and bidimensional arrays

    Hi all.

    I have a problem with a pointer and a bidimensional array.
    here's the code:




    includes..
  3. Replies
    6
    Views
    2,461

    It seems that I can't make reference to the F:...

    It seems that I can't make reference to the F: USB port. When I try to see the files from the DOS system, I just get an error that says, "The system can't find the path"
    Something like it.
    By the...
  4. Replies
    6
    Views
    2,461

    about copying files to sony walkman

    Hi.

    I copy music to my sony walkman using windows copy and paste functions.
    When i try to copy files from a C program, it does not work. Does anyone know how can I copy files from a C program?
    ...
  5. Replies
    2
    Views
    1,206

    Minimax procedure question

    Hi all.

    I have digging on the web for the Minimax procedure. I found a couple of months a go a pseudocode, but I didn't understand it.

    Does any one can post some algorithm?
    I know that...
  6. Replies
    6
    Views
    9,132

    Switch to APL (A Programming Language)....

    Switch to APL (A Programming Language).
    Dyalog.com

    Gustavo.
  7. Replies
    21
    Views
    3,259

    for i from 2 to sqrt(x): if (x % i == 0):...

    for i from 2 to sqrt(x):
    if (x % i == 0):
    return False
    return True
    ---------------------
    you mean squareroot(x)? , but if this is a rational number?
    I dont use C anymore, thas why I didnt...
  8. Replies
    2
    Views
    1,248

    Dimensions of the bitmap are in the header of it...

    Dimensions of the bitmap are in the header of it (first 54 bytes of the file).
    Gustavo.
  9. Replies
    21
    Views
    3,259

    prime numbers and time consuming

    Hi.

    I spent all morning thinking of an algorithm that could tell weather a Number K is prime or not.

    Ii came out the following formula:

    1..... Kz=-y(1+z)

    where 0 < z <K-1 and 0 > y >1-K,...
  10. Replies
    12
    Views
    3,674

    Answer the question or post your code.

    Answer the question or post your code.
  11. Replies
    12
    Views
    3,674

    Just asking... do you have any contest in mind?

    Just asking... do you have any contest in mind?
  12. Replies
    12
    Views
    3,674

    OK!!!

    Is it possible for the knigth to visit all the squares of the chess board just once?
    and, if so how?
  13. Replies
    12
    Views
    3,674

    Accep the challenge 50!

    Find 50! , that is 50x49x48x....x1 or maybe 150! ????
    Do the code and we'll check de number.

    (Code not made in C++.)
  14. Replies
    3
    Views
    3,862

    About Gregorian calendar code

    Hello all.
    First of all, I would like to make clear that this in not a C programming question, but it has to do with it.

    About a year a go I made a program in C that computes the day of the week...
  15. Replies
    3
    Views
    1,844

    The day of the week America was discovered

    Hi.

    A few weeks a go a post some code to calculate the day of the week of a particular date. It was just an idea. I had to sit down and code it. Here you have it:




    #include <stdio.h>
    ...
  16. No, that`s not the definition of a leap year. if...

    No, that`s not the definition of a leap year. if y is divided by 4, then it is possible that y is a leap year, but it is not the only condition. You must ask also if Y is divided by 100, if it is...
  17. Do you know the day of the week you were born?

    Hi.

    A couple of days a go a wrote some code that comuputed the day of the week of an specific date.

    All you need is a function wich tell you if year (a) is a leap year or not.

    you enter the...
  18. Replies
    3
    Views
    1,579

    Thank you Bubba. Ill try that code you just...

    Thank you Bubba.
    Ill try that code you just wrote, I have paste it and put in a file.
    Im using Bloodshed C++ 4 on Windows 98.

    I think Im getting behind, Ill try these DirectX and OpenGL; thank...
  19. Replies
    3
    Views
    1,579

    I want to make a fast scroll

    Hi. I-m trying to write a program that can scroll the characters on the screen fast. I know that characters on the screen are actually bytes in some location of RAM memory. The problem is, I dont...
  20. About poking in memory to see chars on the screen

    Hi.

    I'm wondering if you can modify values in memory locations that correspond to the screen.
    I used to do this before, but now it doesn't work.
    I'm trying to make a program that scrolls text...
  21. Replies
    6
    Views
    1,406

    Hi. I think this will work: First read the...

    Hi.

    I think this will work:

    First read the number in N with scanf(). Then call the following function with these two parameters:

    recur ( 1, N-1)


    void recur(int N1 , int N2) {
  22. Replies
    3
    Views
    1,605

    Do you need some help coding?

    Hi.

    I have just finished a project in C. I had to get familiar with the language, but now it is over.
    I would like to get deep into C, so if you have questions or algorithms to do, I can help...
  23. Replies
    1
    Views
    2,163

    More a math question than an algorithm

    Hi.

    This is more a math question:

    "The adition of the square of two numbers X and Y is iqual to some number between 1000 and 10000. If you multiply X by 100 and then you add Y, you have that...
  24. Replies
    4
    Views
    3,201

    A permutacion is a diferent way to arrange...

    A permutacion is a diferent way to arrange objects. For example if you have 1 and 2 there are two permutations:

    1 2
    2 1

    if you have 1 2 3 you have 6 ways to arrange the numbers:

    1 2 3
    1 3...
  25. Replies
    4
    Views
    3,201

    Hi. Ichecked the code I posted and now I know...

    Hi.

    Ichecked the code I posted and now I know that it was an external problem, it was not due to the function duplicate() :)

    The function I wrote I was just wanted to be used in a program,...
Results 1 to 25 of 35
Page 1 of 2 1 2