Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Programming some game

Name: Anonymous 2007-03-16 11:30 ID:+Cao99ew

Okay.. i'm a noob at C and i'm trying to do some game.
It's a game for 2 players. The first player inputs 4 numbers. The 2nd player tries to guess which numbers those are by inputting numbers too. If there is a correct number in wrong order, 0 will print. If there is a correct number in correct order, 1 will print. Game will end if the 2nd player gets 1111 or uses up all 10 turns.

I can't understand the array stuff much.. help me.

Name: Anonymous 2007-03-18 13:24 ID:GYmEIqLH

The traditional way of teaching doesn't work well with learning programming languages. Rather, it's better to take a mentoring approach.

Name: Anonymous 2007-03-18 13:55 ID:1sFWNjzO

>>78
I must answer "yes". You know, searching on google doesn't involve any programming skills. As a programmer, this is a habit you have to acquire : searching in documentations (RTFM). No one will come knocking at your door and explain to you how to use its library. And I won't do it either. You can ask question about my own function, but fgets and other shits, search by yourself (man function on google), I held your hand too long and finally, I don't help you.
wikipedia has a presentation of the standard library, or else here http://www-ccs.ucsd.edu/c/
Here is also a good point to start from : http://clc-wiki.net/wiki/Main_Page
And like >>80 said, buy a book (K&R for example) or search for tutorials on the web.
I don't know what the fuck you have learned, but when I see how you are, I was smart to not follow my first idea and make my program with pointers, or you'd just killed yourself, because my code is very easy to understand...

Name: Anonymous 2007-03-18 21:05 ID:GM5AIKck

>>78
"ctype.h" contains structs (aggregated data structures) used by other headers, plus the handy dandy character range checkers, e.g. isdigit(), isalpha(), isalnum(), etc.

"stdio.h" contains "standard I/O" functions. Things like showing text, taking keyboard input, reading and writing files. printf(), puts(), putchar(), scanf(), getchar() and all their friends are in here.

"stdlib.h" includes stadard system calls, like exit(), malloc() (for allocating memory manually), free() (opposite), and a whole bunch of other things.

How do you learn all this? You RTFM . Get a book, search on Google. Linux (ha, like you're using it) has manual pages available at your fingertips that tell you exactly in which header a function is available in.

Name: Anonymous 2007-03-19 1:59 ID:GS8SMw9V

>>40
Will keep it in mind.
Actually, I'll check it out this week. The wiki page had this http://en.wikipedia.org/wiki/Image:Scite.png and I'm interested :). Thanks.

Name: Anonymous 2009-01-14 13:55

Trolls

Name: ​​​​​​​​​​ 2010-10-22 6:06

Name: Anonymous 2010-12-22 14:53

Name: Anonymous 2011-02-03 4:53

Name: Anonymous 2012-03-23 23:43

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

Name: Sgt.Kabuԯ貨kiman⚏ 2012-05-28 23:19

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List