what should i make now?

This is a discussion on what should i make now? within the C++ Programming forums, part of the General Programming Boards category; i just started c++ about 2 weeks ago and ive made the following programs... hello world add,subtract,divide,multiply calculator my very ...

  1. #1
    ima n00b, ok? orion-'s Avatar
    Join Date
    Aug 2005
    Location
    alberta, canada
    Posts
    55

    what should i make now?

    i just started c++ about 2 weeks ago and ive made the following programs...

    hello world
    add,subtract,divide,multiply calculator
    my very own reverse a string function
    count how many times a certain character appears within a string
    remove a certain character within a string
    random prime and non-prime generator

    now im stuck for ideas on what i should make next. could someone give me some ideas please! im only a beginner so please do not give me something isn't too hard hehe.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    176
    well, what are you interested in? what motivated you to learn c++? that may give you some idea's on what your next project could be
    If a mime dies in the woods and no one is around to hear it, does it make a sound?

  3. #3
    ima n00b, ok? orion-'s Avatar
    Join Date
    Aug 2005
    Location
    alberta, canada
    Posts
    55
    well one of my goals is to greaty familiarize myself with the C/C++ standard template library. but im just not sure how i should go about that...

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    176
    well, have you read the tutorials on this site? they have some great info in them to teach you the fundamentals of c++, though i dont think you would have learned as much as you have w/o a tutorial or a book, so just read read read tutorials on classes, pointers, functions, arrays, linked lists, vectors ect. and once you understand those you can create much more powerful applications, so thats what i would do if i were you
    If a mime dies in the woods and no one is around to hear it, does it make a sound?

  5. #5
    ^ Read Backwards^
    Join Date
    Sep 2005
    Location
    Earth
    Posts
    282
    Create a program that converts a txt file to a HTML file.

    That is, it writes the appropriate header and footers.
    Copies over the text and every time there is a new line character replace it with the HTML version of new line character <BR>.
    And of course let the user select the input and output file.

  6. #6
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    Simulating card games is a good way to get familiar with the standard library. You use containers to store decks or hands. You use algorithms to shuffle, check for matches, or find the "best hand". You can still use the console to display the outcomes. There are also lots of ways to extend these games so you won't really run out of things to do with them.

  7. #7
    Registered User
    Join Date
    Sep 2005
    Posts
    196

    clases,etc

    wut do classes, pointers, linked lists, and vectors
    do i cant seem to have a good hold on them

  8. #8
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Write a binary conversion program. Check howsitwork to find information on converting binary, load the binary from a file, and convert, and convert back.

    Write an encryption program, on this site theres a tutorial on bit shifting, input from the file, bitshift and do whatever else (e.g. add 50 to each char (chars are numbers -127 to 127, adding 50 would change the char, therefor encypt it), and then have a decypt option to decrypt a file to a temp file and write it back to original file.

    Write a trigonometry program. You enter the known values of 1-3 angles, and 1-3 sides, and it fills in the rest of the angles/sides/area/perimeter and returns the values. This is a long one.. a lot of if/if else/else statements and such. Pythagorean theorem, 1/2bh, 1/2ab sin 0, cosine law, sine law, a+b+c, b = 2a, c = a*2^(1/2), a = c/2^(1/2), etc.

    Write a program to encapsulate an array. Returns an error if you try to touch an element of an array that does not exist (aka trying to write array[30] when the array is only size 20), aka make a class with an array in it, and make methods that modify the array.. maybe add operator overloading.

    Write a random map generator. A basic one like using # for the borders. Its quite small.. less than 50 lines. Try to make it so the map is a pute # border, while the inside is random.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  9. #9
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,801
    Quote Originally Posted by orion-
    i just started c++ about 2 weeks ago and ive made the following programs...

    hello world
    add,subtract,divide,multiply calculator
    my very own reverse a string function
    count how many times a certain character appears within a string
    remove a certain character within a string
    random prime and non-prime generator
    Quote Originally Posted by orion-
    well one of my goals is to greaty familiarize myself with the C/C++ standard template library. but im just not sure how i should go about that...
    Have you implemented those programs using the STL? For instance, the counting characters in a string program... how did you do it? Did you roll your own function or did you use the STL count function as in

    Code:
    #include <algorithm>
    #include <string>
    #include <iostream>
    
    int main()
    {
    	std::string data = "Hello there my good friend!";
    
    	std::cout << "String: " << data << "\nThere are "
    		<< std::count(data.begin(),data.end(),'o')
    		<< " o's in the indicated string." << std::endl;
    
    	return 0;
    }
    Code:
    String: Hello there my good friend!
    There are 3 o's in the indicated string.
    If you want to learn the STL and you didn't use it for those programs you mentioned, then I might start there.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  10. #10
    Registered User
    Join Date
    Mar 2003
    Posts
    176
    Quote Originally Posted by lilhawk2892
    wut do classes, pointers, linked lists, and vectors
    do i cant seem to have a good hold on them
    well dont try and tackle it all in one day, i've been programming about a year and i am bearly getting a grasp on classes take it slow and easy, you have plenty of time to learn.
    If a mime dies in the woods and no one is around to hear it, does it make a sound?

  11. #11
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    hk_mp5kpdw's got a good point. It might be a fun challenge to see how much you can change of your existing programs to use the standard C++ library instead. Try figuring out different ways of doing everything. Compare each way to see what seems to be the most intuitive, the simplest, or the easiest to code. Get a feel for what is too much STL and where it makes life easier. To me the challenge of finding the right existing tool for the job is often more fun than trying to do the job myself.

  12. #12
    ima n00b, ok? orion-'s Avatar
    Join Date
    Aug 2005
    Location
    alberta, canada
    Posts
    55
    Quote Originally Posted by hk_mp5kpdw
    Have you implemented those programs using the STL? For instance, the counting characters in a string program... how did you do it? Did you roll your own function or did you use the STL count function as in
    i didn't use the STL. i made my very own function that returns the amount of times a certain character occurs within a string. it was actually quite easy (not to brag).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Establishing 'make clean' with GNU make
    By Jesdisciple in forum C Programming
    Replies: 9
    Last Post: 04-11-2009, 09:10 AM
  2. How to make a Packet sniffer/filter?
    By shown in forum C++ Programming
    Replies: 2
    Last Post: 02-22-2009, 08:51 PM
  3. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 04:19 AM
  4. make all rule
    By duffy in forum C Programming
    Replies: 9
    Last Post: 09-11-2003, 01:05 PM
  5. Replies: 6
    Last Post: 04-20-2002, 06:35 PM

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