• Welcome to Valhalla Legends Archive.
 

Total newbie to [C]

Started by Sevatox, February 22, 2003, 02:55 PM

Previous topic - Next topic

Sevatox

well im just starting to learn, i do have a few books which im reading right now.

all im really asking is: what are some VERY basic programs to start with in C?

Yoni

#1
Try making a hangman game.

MrRaza

#2
Guess the magic number game is always fun.

iago

#3
tic tac toe, ascii graphics.
Very simple text based adventure game.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Sevatox

#4
anything else besides games?  :-X

Banana fanna fo fanna

#include <stdio.h>
int main() {
puts("Hello, world!");
return 0;
}

MrRaza

#6
Try making a very simple calculator.

Yoni

#7
Try making a Battle.net binary bot.

NO WAIT, I mean, how about some basic file programs?
For example try duplicating the "uniq" program from *nix, which removes any duplicate lines from a text file (for more practice, try implementing all its command line options!), and other such similar programs.

iago

#8
Write a spellcheck program, it can use a linear search (ie, just check against every word in the dictionary), and there's plenty of room to improve it later.

Write a program that will find anagrams of a word. Like, if it's given tpos, it will output "pots tops stop opts"  It's not as hard as it sounds, as long as you have a dictionary file.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Yoni

#9
QuoteLike, if it's given tpos, it will output "pots tops stop opts"
That vaguely reminds me of an especially fuzzy topic in MasterMindBot. The "stop" word was especially tricky. :P