A C learning project, this is a tool that assists with categorizing and remembering people.
C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
Makefile
README.md
cog.h
dbfunctions.c
main.c
main.h
person.c
person.h
place.c
place.h

README.md

cog

cog is a tool desiged to extend the mind's capacity to remember people and details about their lives within a particular context.

Because I am just getting started with this language, I am going to iterate in a deliberate fashion, starting out with something very simple and going from there.

Iteration 1:

Iteration 2:

  • enter a new place
  • improve the menu handling and file organization of the project
  • attach a person to that place
  • find people associated with that place Requires a database for data storage (SQLite)

Iteration 3:

  • delete a person
  • delete a place
  • edit a person
  • edit a place
  • associate a person with another person or people

Build Cog

  1. Create The Database

Ensure you have sqlite3, then create cog.sqlite3 with it. Open it, and then create the database structure (you can get this later on by typing .schema in the sqlite shell):

CREATE TABLE people( id INTEGER PRIMARY KEY, name TEXT ); CREATE TABLE people_places(person_id INTEGER, place_id INTEGER); CREATE TABLE places( id INTEGER PRIMARY KEY, name TEXT );

  1. Run make