Programming Projects...!! (C++)
Hey guys, I need some ideas to make some programs using C++! Keep in mind that I don't know much and that it can't use any screens becuase I don't know Visual Basic nor winbdows manipulation yet..!! It will be all written ... so... suggest something.. Let me see if I do something cause I'm really bored.!
make a proggie that reads in a txt file and prints out certain parts of it depending on use input!
that's a nice little proggrie to give u some skills
Write a program to create characters for a role playing game such as AD&D, RIFTS, etc..
and have it output into a character sheet ready for play
Have the option for random pregeneration for instant villains -- and then a version where u can specify what class/race/occ.. you or they want
it's not super hard but requires to to make the program dice roll, format the text it generates and other fun stuff
Hmmmm.. cool.. Keep em coming.. Maybe I'll finish them and send the executables if you like.!?!
Something useful if you frequent newsgroups... Try building a program that takes a text document and rotates all the letters a certain number of letters up or down in the alphabet. If you're using Netscape you can already do this (in NGs with a right click), but only by 13 letters. Such a program is pretty easy, a starter prog, but it servers a purpose.
One of the first programming assignments I had when I took a course in C++ was a simple dice game called "pig".
In this game, a player will roll a pair of dice to get points. The first player to get 100 points wins. A player can roll the dice as many times in a row as they want to unless they roll a 1. If they only rolled a single one, they lose all the points they accumulated in that turn. If they roll two ones, they lose all their points. Then the dice are passed to the other player. A player may voluntarily end their turn at any point.
This is a very simple program. Another program I write when I'm testing a new environment or language is a number guessing game where the computer picks a number and the player is told if their guess is too high or too low.
Holy cow! My parents have a real game just like that called "pass the pigs." Except the dice are these little rubber pigs, and you roll them. Depending on the way they land, you get certain points. Thats funny.
Anyway... programming ideas. It depends, I think, on what you are trying to teach yourself. If you are trying to learn the C/C++ syntax, write programs like the ones that have been suggested. If you want to throw in some data structures education, and to FORCE yourself to learn about pointers, get a book about data structures, and write some linked-list programs, and things like that... Address books are always a good start. Or, if you want to learn the object oriented side of things, try a simple game, like blackjack.. but use OOP, rather than procedural programming.
Must agree with card_magic. Reading is the way to go. I'd recommend Lippman's C++ Primer. It might be tough for a total newbie, but not impossible. I haven't read it yet, but I know Lippman is a phenomenal writer/teacher. I'm into his Essential C++ right now, essentially a condensed version of Primer. The going isn't too bad, but there is a lot of rerereading. Whatever you do, research the book before you buy. Gauranteed, after reading one of Lippman's books you will have a plethora of ideas regarding programming, and you'll have a solid start to programming to boot.
A programming project I did in school....
We had to read in a text file, and count the number of occurences of each word and where it occured(number of words from beginning.)
This could be done many different ways with, linked lists, double linked lists, trees, binary trees, etc..
We did them all, and timed each one of them, to see which was the quickest. The file we used most was 20,000+ words.
I found this a great way to learn pointers and to learn the different ways to read/sort. I hadn't really understood trees up to that point either.
good luck, dragonB
New Security Features Planned for Firefox 4
Another Laptop Theft Exposes 21K Patients' Data
Oracle Hits to Road to Pitch Data Center Plans
Microsoft Preps Array of Windows Patches
Microsoft Nears IE9 Beta With Final Preview
Simplified Analytics Improve CRM, BI Tools
Android Passes RIM as Top Mobile OS in 2Q
VMware Updates Hyperic System Management
File Monitoring Key to Enterprise Security
LinkedIn Snaps Up SaaS Player mSpoke