Thread: Need Ideas for a mini project in c++!!!!!!

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    4

    Thumbs up Need Ideas for a mini project in c++!!!!!!

    First of all i am an intermediate c++ programmer. I have this "mini project in c++" in my course curriculum(I'm pursuing my Bachelors in Engineering in Information Technology). I am really short of ideas. Can someone please suggest me of a difficult and logical yet easy for an intermediate c++ programmer type of project.


    Thanks in advance.
    Last edited by shoeb_hi; 08-05-2006 at 08:59 PM.

  2. #2
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    i dont know how hard this is but a program to calculate the circumference of a circle by just giving it the radius and vice versa

  3. #3
    The Richness... Richie T's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    469
    Quote Originally Posted by lilhawk2892
    i dont know how hard this is but a program to calculate the circumference of a circle by just giving it the radius and vice versa
    I'm guessing that's a joke, since any engineer worth their salt could do that in less than 5
    minutes!!!

    It's difficult for us to suggest an appropriate project without some idea of your level of
    experience. What material have you covered, what assignments/projects have you done?
    No No's:
    fflush (stdin); gets (); void main ();


    Goodies:
    Example of fgets (); The FAQ, C/C++ Reference


    My Gear:
    OS - Windows XP
    IDE - MS Visual C++ 2008 Express Edition


    ASCII stupid question, get a stupid ANSI

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    really ive never been able to figure it out so can you pm me the code?

  5. #5
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    Don't hijack the thread. If you have a new question, post a new thread. And make an attempt... And use code tags... etc.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  6. #6
    System.out.println("");
    Join Date
    Jan 2005
    Posts
    84
    What do you know about digital logic? The program one guy here is working on to create a program to simulate digital logic circuits seemed interesting. Also I just got through writing a program to solve crossword puzzles. It was pretty neat. Files are of the form:

    Code:
    A B C D 
    E F G H
    I J K L
    M N O P
    
    word1
    word2
    word3
    The puzzles were 40 characters wide (not including spaces) and 40 characters high. There was a space and then a bucnh of words to look for. The puzzles were in 64 seperate files and you build a puzzle like this:

    Code:
    say this is puzzle1.txt
    
    1 1 
    1 1
    
    words1

    Code:
    say this is puzzle2.txt
    
    2 2  
    2 2 
    
    words2


    Code:
    say this is puzzle3.txt
    
    3 3 
    3 3
    
    words3


    Code:
    say this is puzzle4.txt
    
    4 4 
    4 4
    
    words4
    Would be combined to form a big puzzle like this:


    Code:
    say this is puzzle1.txt
    
    1 1 2 2 
    1 1 2 2
    3 3 4 4
    3 3 4 4
    
    words1
    User can enter any number of files so long as it is a perfect square (2x2, 3x3, 4x4, ... , 8x8). There is a file with the list of the files to build it from:
    Code:
    puzzle1.txt
    puzzle2.txt
    puzzle3.txt
    puzzle4.txt
    You output the results to a text file like this:

    Code:
    word1(3,4,NE)
    word2(78,23,S)
    . . .
    To show that word one is located at (3,4) running northeast, etc. It would be a good exercise to do. I just did it a week or so.

  7. #7
    Registered User
    Join Date
    Mar 2006
    Posts
    725
    a difficult and logical yet easy
    "Difficult" and "easy" are contradictory. Thus it is not "logical"

    On a more serious note, you could write more complex but "logical" programs than crosswords, but in the same spirit -- arbitrary size sudoku generators, or simple chess/poker/go players, for example. Of course, try to make them a little more efficient and advanced than these...
    Code:
    #include <stdio.h>
    
    void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){
    puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9
    /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i]
    ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][
    t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 2D RPG Online Game Project. 30% Complete. To be released and marketed.
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 10-28-2006, 12:48 AM
  2. Project Ideas
    By Sentral in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 09-26-2006, 02:07 PM
  3. New Mini Project
    By jverkoey in forum Game Programming
    Replies: 3
    Last Post: 05-12-2004, 11:00 PM
  4. Project ideas
    By subnet_rx in forum Game Programming
    Replies: 4
    Last Post: 01-06-2002, 03:48 PM