Beginners - August 2014 (Page 15)

i need better understanding with pointers ( ordinary pointers)
 
Refering to the following code, identify when the memory for each of the following variables is released: (a) a_ptr (b) a_ptr's pointee (c) b_ptr (d) b_ptr'...
[1 reply] : We do not offer homework solutions here. Please try your best and ask ... (by LB)
Problem with printing results
 
I'm trying to make the int fee function below print the results of the call fee(3,4,5). Right now it's printing 7 but I don't think that's right, .75 is not gre...
[4 replies] Last: Okay, thank you for your answer. I understand better now, so 7 is actu... (by hellworld136)
Monthly Payment formula doesn't work
 
Well I'm just a beginner and I needed help understanding why my formula for the monthly payment of a loan doesn't work. Here's my work: / Calculating Loan P...
[2 replies] Last: I tried it but it still gives me the wrong solution. Thanks though. (by Ledesma167)
Pancake Glutton Beginner Challenge Question
 
Hi everyone, I have been teaching myself c++ for about two weeks now, I love learning new stuff about it and I am finding the best way to make concepts stick fo...
[3 replies] Last: Hey guys, I figured it out, it was basically what Cody said, I guess m... (by sargentcrunch)
Help with errors for Overloading Operator
 
Hi, I have to create three dimension vector and currently have many errors. I have got about 30 errors for following error from main.cpp Error 1-30 error C26...
[6 replies] Last: Is that correct way to declare the vector and double in the header fil... (by keane234)
c++ project
 
hi everyone, I'm still new to the programming world and I'm taking classes right now but I'm having some difficulty. I have a project that I need help creating...
[8 replies] Last: ok so ive been trying off and on all day today to figure out a way to ... (by Frost89)
warning C4067: unexpected tokens following preprocessor directive - expected a newline
 
Hey guys. Please help take a look at my code below. didn't build successfully and I couldn't figure out why... #include <iostream> #include <algori...
[2 replies] Last: Figured out my mistake. Should be x_median_h (by saks5th)
Console closing down (tried cin.get() etc...)
 
I'm fairly new to C++ so please bear with me. I've tried cin.get() cin.clear() etc but nothing works so far. I pressed ctrl+Z to end the while loop. Don't know ...
[6 replies] Last: Thank you guys. I read the thread console closing down and tried as sh... (by saks5th)
by Nison
Undefined reference to Class
 
I have a header and 2 source files. I want to link the functions from Car.cpp to the header file Car.h, but when i run the MainFile.cpp there seems to be the Er...
[7 replies] Last: As pointed out by Lowest0ne, at this time you aren't using anything fr... (by BHX)
Class confusion with ball animation
 
I'm trying to create a class for my simple point animation. I want the user to be able to input a speed for the ball to go and I want the speed to be restricted...
[no replies]
Variable attachment?
 
Why is it that sometimes in for loops there are two variables stuck together, kind of like variable ? for (int i = 1; i <= 10; ++i) { cout << "Var...
[4 replies] Last: Oh, I see! It's just like adding new integers to an already establishe... (by Bogeyman)
seekg() not working as expected
 
I have a small program, that is meant to copy a small phrase from a file, but it appears that I am either misinformed as to how seekg() works, or there is a p...
[2 replies] Last: C++11 made it possible to seek away from EOF. I think the problem is ... (by Cubbi)
makefile help
 
Will someone please explain what is wrong with my makefile and how to fix it? I cannot figure out how to do it for the life of me. #include <stdio.h> #include...
[2 replies] Last: So I added ncurses in an options box for linking libraries and the pro... (by heyyouyesyouiloveyou)
Eclipse, cin / input
 
Hello i am using Eclipse and don't know how to test my program when i use cin for example when my program is running, type in a number and so on.. does anyone ...
[2 replies] Last: I have installed the cdt for C++ if that's what you mean? (by Jacobhaha)
SFML Vector problem in header file (class)
 
Here is the code: #ifndef BALL_H #define BALL_H #include <SFML/Graphics.hpp> class Ball { public: Ball(); protected: sf::CircleShape mBallCircle; sf::Ve...
[15 replies] Last: hehe not a problem! ^_^ you helped me a ton until now and I'm really g... (by chippzanuff93)
by brekki
Keeping track of smallest/largest numbers
 
I know the answer to this is out there but I'd rather get hints to help me go in the right direction as opposed to just seeing the correct code, I think it will...
[3 replies] Last: #include <limits> //... double smallestNum = std::numeric_limits<doub... (by booradley60)
by sha
reshape the matrix to vector
 
Write your question here. Hi I want to convert the matrix to vector and vice verse.Is there anyone can help me or post the sample thanks
[no replies]
Something wrong with iostream
 
Ok so since a few days ago i can't compile anything with iostream header, there is no error in compiler log and i can't find any exe file from the compiled sour...
[4 replies] Last: Are you using an IDE? Are you running your program from IDE? (Yes -- t... (by Duthomhas)
Create a synth with C++ ?
 
Hi, I'm an Italian student and I love both Music and Programming. I'd like to create my own virtual synth (a keyboard) but I don't know how to start this proje...
[6 replies] Last: Thanks for all your answer. If this is actually a very hard project wh... (by JackHand)
Why is this fuction included in initialiser list?
 
Hello again, I've just started the SFML Game Development book. The first chapter deals with setting up a game loop and rendering basic shapes to a window. Al...
[no replies]
August 2014 Pages: 1... 1314151617... 40
  Archived months: [jul2014] [sep2014]

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