void TransformDigitsToLetters(int n,char str[])
{
/* take the first 2 digits (and save them as 14 */
char* test[2];
int digits;
/* "take first 2 digits", actually the...
Type: Posts; User: zuiplap
void TransformDigitsToLetters(int n,char str[])
{
/* take the first 2 digits (and save them as 14 */
char* test[2];
int digits;
/* "take first 2 digits", actually the...
:)
ok, only ignore them when you know there is no harm :)
here you can ignore the warning: here i > 0 always so there is no problem ignoring this warning..
i was only guessing strlen returned...
hope this helps..
/*function prototypes */
void menu(void);
void game(void);
int main(void)
warnings are warning.. just ignore them.. :)
but if you want an explanation:
'i' probably is of the type signed int..
because strlen always returns a positive value, strlen returns an...
double hello[]={-1,2,4,-6};
for(i=0; i<=3; i++)
{
if(hello[i] < 0)
xxx -= hello[i]; /* ex: x = x - (-1) */
else
xxx += hello[i]; /* ex: x = x + 2 */...
you can always use: exit(0);
this will end the program immediatly
if(grid[x][y]) { /* if mine */
printf("Sorry You Hit a Mine Game Over\n");
exit(0);
} else {
...
hope this helps ;)
if you have any questions, shoot.. (my C is better than my English so, if i was unclear..)
#include <stdio.h>
#define MAX 12
#define FALSE 0
so you would like to add "a&15" to (15-*ptemp&15)+1..
& has a lower priorty than + so you should use
(a & 15) + ((15 - *ptemp & 15) + 1) >= 16
which should work.. (i think)
...
well, i just don't get it to work..
This is what i did:
1) installed DJGPP -> this is working fine
2) unzipped above file (GTK)
2.1) -> i got 5 directories: bin, include, lib, man,share
...
I'd like to install GTK+, but i can`t for some reason..
I'm using DJGPP (www.delorie.com) and WINDOWS XP..
I've downloaded these two files:
1) GTK+...
There are several ways of sorting arrays..
I'll post one here, so you'll have an idea:
#include <stdio.h>
#define MAX 10