project to explore C++

This is a discussion on project to explore C++ within the C++ Programming forums, part of the General Programming Boards category; hi folks, I have to develope a program of my choosing for a practical course at my university. It should ...

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    2

    project to explore C++

    hi folks,

    I have to develope a program of my choosing for a practical course at my university. It should be doable in about 160 working hours and meet the following requirements: developed on Linux, no networking, nothing concentrating to much on graphics.

    I am also free to choose a language and so decided for C++, because I want to collect some experience with it (I come from Java, which I know pretty well). I already did a C++ course and caught up the basics and now would like continue with templates and STL.

    So, I'm searching for an idea which lets me explore C++ and puts framework usage in the background. Thing is, I just seem to come up with only boring stuff, so I would be grateful for any suggestions.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    22,891
    String class complete with iterators and std::swap support & similar?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    2
    thanks for the suggestion. hm, I fear that task might be a bit to small though.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    22,891
    Well, not if you make it complex.
    A string class should handle both char and wchar_t.
    It will most likely have traits.
    Make iterators and make the class iteratable.
    Make find results iteratable. Add possibility to replace a given search result with something else.
    It gets complex pretty fast, believe me. Give it a try.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Perhaps a string class would be challenging if you made it complete, but it's rather boring and you may as well use C.

    Write a simple text based adventure game, which will let you model the problem with objects.

    Model the world after your university campus to make it interesting for people to play.

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    22,891
    Quote Originally Posted by medievalelks View Post
    Perhaps a string class would be challenging if you made it complete, but it's rather boring and you may as well use C.
    That's not true. C++ has a lot to offer in this area that C can only dream of. And don't forget that the standard library has stuff to offer, as well, such as std::copy and the like.
    It will be an interesting challenge if you try writing generic code. Free functions that will work for any given string class and iterators that will work with any given class.
    And if you can make it work with things such as iterate over search results and replace a range of characters at once using iterators, then you've done something useful and somewhat challenging.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Registered User Dave++'s Avatar
    Join Date
    Jun 2007
    Location
    Where the Buffalo Roam
    Posts
    40

    Talking build some classes

    > I am also free to choose a language and so decided for C++, because I want to collect some experience with it...

    Wow, I was there once...

    Consider creating some classes that contain things and manipulate them. Working with classes, structures and methods will take you far.

    So you could "build a car" ... class auto { ... }
    and include in this numerous features and functions
    which runs out of gas first?
    Apply an algorithm to "evolve" them. Which cars survive?

    How about the old question: "are you a man or woman"
    the user would be asked a series of questions and the results could be strikingly funny
    class human {...}
    class man {...}
    class woman {...}

    if done in Jave they would be sub-classed? Ha!
    but in C++ they are derived ! Yes!

    Regards
    Last edited by Dave++; 07-07-2008 at 05:51 PM. Reason: more

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Displaying a Struct
    By rockstarpirate in forum C++ Programming
    Replies: 16
    Last Post: 05-05-2008, 10:05 AM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 02:30 PM
  3. Dynamic Binding
    By gpr1me in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2006, 09:01 AM
  4. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 08:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21