Beginners - November 2013 (Page 42)

NIM sticks
 
This is a homework assignment that I am stuck on and can't get my professor to reply to any of my questions. The assignment is to build a version of NIM. Ever...
[2 replies] Last: Thank you! I was so close, but don't think I would of came up with tha... (by dgdgarrett)
Setting up compiler issues C++
 
Help with netbeans compiling with cygwin - I downloaded Netbeans and it wouldn't let me compile anything so I downloaded cygwin and when it asks me to choose fi...
[no replies]
Extra qualification Error
 
I keep getting and extra qualification error and I don't know why. Does any one know why? #ifndef HUGEINTEGER_H #define HUGEINTEGER_H #include <iostr...
[1 reply] : You don't need to (and shouldn't) specify the class the member belongs... (by helios)
Bumper sticker problem
 
I have almost completed this question but I keep getting an error on line 4 in the .cpp. Any suggestions would be appreciated. This is the question: A bump...
[4 replies] Last: Worked like a charm. Thanks for the help! (by danedigitty)
How to remove a value from an array
 
Write your question here. I am making a simulation of Go Fish! game. In this program, I use only the 2's through 9's (using only a 32-card deck instead of all ...
[7 replies] Last: I already described how to remove the card: Simply move the last elem... (by Chervil)
by leo255
Need help with using ifstream in functions
 
I basically just want to take the below data, and use a function to store all of the information, and then another function to output it. So far, I'm only getti...
[no replies]
Dynamic array won't delete
 
I've written a pretty basic code that takes a static array and does a specific thing to the array based on the users input. For each input, the numbers in the s...
[4 replies] Last: It was from copying and pasting from my editor, my bad I'll clear it u... (by lvpd742)
by Garion
Friendship and overloading
 
I've managed to break this program here but I'm not sure why it isn't working. Could anybody point out to me what errors I have made. Here is the broken c...
[3 replies] Last: Your constructor is enough if you wish to create rectangles like this:... (by JockX)
by Al GIS
Counter component in 'while' control structure
 
Disclaimer: I am a student taking an intro to programming. I have some experience in Python because that's what I'll be using/have used in the Geographic Inform...
[3 replies] Last: For the record, the infinite loop was a bad thing. I deleted line 37 a... (by Al GIS)
Help With Array!
 
I am having problems with getting this array to compile to read from an input file. I have no clue where i messed up at. Any help will be apreciated. #i...
[1 reply] : What are you trying to accomplish with this? input_file >> points ... (by JockX)
Tracking the subtotal
 
I'm having trouble to code a function to keep track of a subtotal. My program is basically asking a user what are they buying, how much is it, & calculates the ...
[1 reply] : You don't need a function for that, it's one line of code to add (well... (by JockX)
by jt001
strtok, shellcode help?
 
Hello all, I’m new to C++ and I’m trying to create a program that will replace one character array of hex and then execute it. I can execute it nativel...
[no replies]
Why is always put out 02?
 
why is always put out 02 ? Normally the function should just put out 1 because i=0. it just skips the "if" and puts out i(which is really 0) and 2. #inclu...
[3 replies] Last: lol thank you so much. how could i forget about that omg, now i waste... (by NicolasKuchen)
Histogram Help!
 
I need help with, i would also appreciate a little explanation so i can comprehend whats going on. A histogram showing the number of students who received scor...
[1 reply] : You should store the mean as a double since it is an average, it will ... (by Parasin)
Segmentation Error 11
 
My code uses a function for the multiplication of two matrices, then a pointer function is used to call the matrix multiplication function. However, I get a seg...
[2 replies] Last: Sorry, I'm a bit of a rookie when it comes to C++ So I'm trying to do... (by chewie666)
by OJ007
Not sure why i'm exiting while loop
 
Although both my conditions are still true, for some reason i'm exiting my do while loop. void Forest::enterForest(){ int input = 0; bool choice = tr...
[6 replies] Last: I am nearly positive it has something to do with my bool being true(a ... (by OJ007)
AVL Tree Error
 
I'm getting an error on my getHeightDifference() for my AVL tree. I've included my insert, rebalance, updateHeight, and getHeightDifference functions for people...
[no replies]
Question about (while) loops and termination
 
Noob here, I'm going through Bjarne Stroustrup's book Programming, Principles and Practice Using C++. (I'm using other resources too though). Here's the probl...
[no replies]
Sum of 1-1/2+1/3-1/4...
 
Hello. I'm new to C++ programming and I'm struggling with quite a hard (at least to me) task. I have to make a program that sums S n =1-1/2+1/3-1/4+...+1/9999-1...
[1 reply] : Algorithm in itself is really easy. The only thing you need is to reme... (by JockX)
by ash187
Need Help with Headers and .cpp files
 
Hey everyone, I have a practice assignment that I don't understand. If some one can show how .cpp and header files are related or how to format a header file, i...
[1 reply] : There are several different file extensions which are supported by som... (by xismn)
November 2013 Pages: 1... 4041424344... 80
  Archived months: [oct2013] [dec2013]

This is an archived page. To post a new message, go to the current page.