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) {...
Type: Posts; User: Gustaff
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) {...
Hi all.
I have a problem with a pointer and a bidimensional array.
here's the code:
includes..
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...
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?
...
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...
Switch to APL (A Programming Language).
Dyalog.com
Gustavo.
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...
Dimensions of the bitmap are in the header of it (first 54 bytes of the file).
Gustavo.
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,...
Answer the question or post your code.
Just asking... do you have any contest in mind?
Is it possible for the knigth to visit all the squares of the chess board just once?
and, if so how?
Find 50! , that is 50x49x48x....x1 or maybe 150! ????
Do the code and we'll check de number.
(Code not made in C++.)
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...
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>
...
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...
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...
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...
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...
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...
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) {
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...
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...
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...
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,...