What do you guys use as a main Operating System?
and why?
Type: Posts; User: SuperMiguel
What do you guys use as a main Operating System?
and why?
i meant which book u got for Data structures and algo
Which one you got?
That looks pretty good, before you did this, how you actually learned c?
Where can i find open source projects written in C to work on?
Is doing a linux from scratch a good exercise does it need programming?
nice idea!
Can you guys recommend another game to make? i done this one and a blackjack game..
trying to learn C and it seems like games are a good way to do so
yes they are the same, but dont know how else to implement it
cool didnt know that, ill will update =)
is there a way to simply the AI of the computer in this program? instead of using alot of ifs... i could use switch but it would still be bulky and repetitive.
Updated previous code
Ok made few small changes, still need to add more to the computer AI (to play a bit more offensively instead of 100% def).., so far seems to be working fine
#include <stdio.h>
#include...
goodplay = play();
while (numbers[goodplay] == 'X' || numbers[goodplay] == 'O' || goodplay > 9)
ok I have updated my code, i also added a very simple(very) for the computer to play (will update soon)...
note: I guess i can also simplify line 58 to 94 they are about the same
#include...
Ok make sense, will update code son
will try this as well
Cool i like that better, i have changed it a bit since %c takes a bit more space than the single letter/number so i removed few things. not sure what you mean by using 1-based array indices?
Ok here is the code updated:
#include <stdio.h>
#include <stdlib.h>
void print_layout(const char *numbers);
void start_game(int players, char *numbers);
int who_turn(int count);
Cool thanks for your help, setup_array was a mistake, i deleted it completely.. yes ill have to add some input verification to make sure a player cant play what other player did, also ill have to add...
I know i havent implemented the 1 player mode, but ill do that later..
Im just learning C, and just want to know what i could do better
#include <stdio.h>
#include <stdlib.h>
char setup_array();
void print_layout(char *numbers);
void start_game(int players, char *numbers);
int who_turn(int count);
int play();
void...
nvm i kinda got it...
struct Connection *p, test;
struct Database db;
p = &test;
p->db = &db;
p->db->rows[10].id = 10;
printf("%d\n",p->db->rows[10].id);
How would u call a variable??
Rows[1].id = 6;
???
So i been studying C, and got to structs and saw this example online:
#define MAX_DATA 512
#define MAX_ROWS 100
struct Address {
int id;
thxs
Well i have one more question...
If i use typedef.. for example:
Typedef struct { int age;
int SSN;
int weight;