Beginners - March 2015 (Page 43)

Pointer, Referencing, and Dereferencing confusion
 
I am in my 3rd consecutive computer class in college and I still am struggling immensely in understanding why, when and how to use the operators *, &, and ->. C...
[1 reply] : * Asterisk is used for Dereferencing a pointer.. means accessing the v... (by ButchCavendish)
Array Indexing Error
 
My this piece of code is giving error while compilation.. int Array ={2,1,4,3,7}; why is this so ? if Array elements Indexes from 0, then according to my ...
[4 replies] Last: Thanks you TarikNeaj.. Stay Blessed Dear (by ButchCavendish)
Uninitialized Variables???
 
So I was trying to complete this program but I am having difficulty with a warning I am getting that is saying many of my values in my void definition section a...
[5 replies] Last: After I check your code I found that in line 97 you are using the comp... (by quisite)
Reading from txt file as 2D vector
 
Hi everyone, I'm confused if whether or not the following is possible... I have a .txt file that has something like the following: 123; John Smith; 1...
[1 reply] : Create a vector of structures: struct foo { int id; std::str... (by MiiNiPaa)
Problem with functions
 
I need help figuring out what it is I did wrong with this program. Here is the code first. #include <iostream> #include <iomanip> using namespace std;...
[2 replies] Last: ok thank you I know have a problem where the calculateMaximumHeartRate... (by Rattregoondoof)
Deck of cards using structure
 
Hi, I'm having a problem about the deck of card. I'm a really beginner of this so plz be nice to me... So I have set up the program and now I have to deal wit...
[no replies]
Functions and a mistake
 
I need to pass variables from one function to another and neither function is the main function and the variables are not global. Thing is I have no idea how to...
[2 replies] Last: not entirely sure what I did but I changed the code a little and it wo... (by Rattregoondoof)
Adding 858993460 to get the write answer?
 
My code works beautifully. I needed to add and multiply matrix strings. However! I have no idea why I have to add 858993460 to my "Matrixmulti" code for it to ...
[2 replies] Last: Figured it out. I forgot to initialize my matrix strings. (by TieRein)
Checking neighbors in GoL
 
I am doing a version of the Game of Life and i have everything working except the checking for neighbors/apply the rules for the next generation. The code compi...
[2 replies] Last: So i think the neighbor checker part is working...it seems that it is ... (by forbesthebrit)
How to create own power formula?
 
Hi, How can I create my own power pow(base, exponent) formula? Like: a(b,c)
[3 replies] Last: for example: double pow(double x, double y) { for (int i = 1; i < st... (by codekiddy)
Where to go now?
 
I didn't know what forum to put this in so I thought I would put it in the beginner sections since I'm still new. Ok so I took intro to C++ and data structures ...
[1 reply] : I would always choose *More C++* you simply can't "over learn" cpp (by codekiddy)
by abc456
Can someone help me fix this code?
 
...
[no replies]
Noob problem, break not ending lines
 
So I have this code I'm trying to do for writing out compound interest for a given amount over months. When I compile it all the months and number crunches come...
[2 replies] Last: Thank you so much shadowCODE it runs perfectly now! (by NotSoSavvy)
New to programming, need help
 
I need help with this, The assignment is: Assignment: You and your friends are going to have a movie marathon! Create a program that will determine if you h...
[1 reply] : Hey. Just as I recommend to all new beginners that havent got the basi... (by TarikNeaj)
by Sh0es
Creating a Mimic Class
 
I have two classes that are functionally identical, but which I want to make separate so that the same class of object can be used in different constructors for...
[2 replies] Last: The classes function the same way but they're intended for different t... (by Sh0es)
"Game of Life" program
 
I'm trying to program the Game of Life, where you activate a few cells on a board and determine which ones live and die based on the neighbors they have. I was ...
[no replies]
Serious help needed for a noobie!
 
This is the homework problem: Use functional decomposition to make a program that inputs a letter and outputs the corresponding International Civil Aviation al...
[4 replies] Last: ok, This fixed it! Thank yall so much! simple corrections! once again... (by justhappy)
How to set random number generator to a range?
 
Is there a way I could make the range between -100 and 100 for random number generator? thanks
[1 reply] : Yes. See http://www.cplusplus.com/reference/cstdlib/rand/ However, th... (by keskiverto)
by abc456
help me fix this code?
 
solved :)
[4 replies] Last: dhayden: thank you so much for helping me. (by abc456)
by dw24
Need to create a program to evaluate some scores in functions
 
The professor gave us a problem to solve by ourselves that used functions. She gave is the entire class to do it after she gave discussed a few things (the clas...
[no replies]
March 2015 Pages: 1... 4142434445... 51
  Archived months: [feb2015] [apr2015]

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