I believe I added both the .cpp and the .h to the project in both the release and debug though I will check it when I get home.
IMalc:
What would you suggest as a class? I only did it this...
Type: Posts; User: thadis_4
I believe I added both the .cpp and the .h to the project in both the release and debug though I will check it when I get home.
IMalc:
What would you suggest as a class? I only did it this...
Yeah I just decided to use my own version of square root to do the part of the built in one though I guess now that I think of it I could of just done the C++ one +1. Also I tried adding my two files...
manasij7479:
I thought I added an option that said add to current project though I might of either misremembered or what I clicked just did not do what I expected.
GReaper:
I thought...
Hello, I am just starting to learn about classes and currently am learning about how to declare classes in a separate file though I am having trouble as I keep getting the error code saying No such...
Thank you so much for all the help you have give me, think it really helps though I have a feeling I will need to know classes the way you explained it saying shuffle() does not have a return or a...
Ok I think I understand what you are saying though it took me a little while to understand how you used the modulus. Does it work that way because you will always have some sort of remainder that...
Oh I did not think about what might happen if it just never ended up getting the correct set for the final card.
I see what you are saying though how would you have rand() use only cards that have...
Yeah I guess it would be easier to use a struct and I think I could find a way to where only one of each card will be drawn for the whole deck. What I was trying to do is the program would pick a...
If you do not mind me asking why would a two dimensional array not work?
Well I have it as suit_size of 3 because the array would then have array elements of 0, 1, 2, 3 so gives me 4 overall and same thing with the number_size.
And I am using a two dimensional array...
I am currently working on a black jack game for a school project. I decided to set up the deck to be used as a two dimensional array to symbolis the card amount and the card's suit. I currently...
Oh wow I feel like I should of known that. Thank you to both of you for the help.
I am doing some Programming exercises from the book I am learning C++ from, C++ Primer Plus. I was doing one of the examples and I have ran into a problem with some of my code.
#include...
Oh thanks for that I have been trying to look for it but I do not know my away around Code::Blocks or any compiler or IDE to know what any of the stuff means really. Also how do you use smart...
Oh forgot to put the * in before that and did not know you had to put the number of arrays you want on the side with the new. I have two more questions though about two things you brought up. Which...
Hey I am working on an example questions from a book and the question is asking to use an example but they want me to make it so you have an array of 3 structures using the new command. I have tried...
Oh ok Thanks for all the help. I have been learning from a book so its nice to be able to ask someone the questions about stuff the book either didnt cover or concepts I just didnt get(like...
Does the compiler also store things like strings as a number or is this just something for characters?
ok so basically what I did is handled automatically by the compiler in this case? Think I understand this better now. Thanks.
Thanks for answering those two questions but I have one more if you have a char variable will always be treated as an interger value if its on the right side of the "="?
Hey I am learning C++ from the book "C++ Primer Plus" and I am on an exercise that has me write a program to write a program to ask from a persons full name(has to be able to handle names with 2...
I am just learning too and these forums have helped me a lot too not only by answering questions about programming but just by reading threads that others have posted and looking at their code to try...
Thanks everyone for the response, I was mostly worried that I could do something wrong with pointers and completely screw up my computer if I didnt delete them on accident. I also know that some of...
Hey I am currently teaching myself C++ programming and I have a question about when I need to delete pointers to free up memory. I have been going through the examples in my book I believe I somewhat...
Well I can see a few things that I can see you probably need to add. You never actually call any of the functions you declared you just created variables with the same names of the functions. If you...