Beginners - July 2016 (Page 14)

by Kbott
Functions and Classes question.
 
So this is a build off another questions that I sorted out. I have a Point.cpp , Point.hpp LineSegme...
[6 replies] Last: A line segment is defined between two Points p1 (x1, y1) and p2(x2,y... (by closed account 48T7M4Gy)
by Kbott
Working with classes question
 
I am working on a project that has us working with classes and in the project we are using a .cpp .h...
[8 replies] Last: http://www.cplusplus.com/forum/beginner/194484/ (by closed account 48T7M4Gy)
Get unused bytes from file as quick as possible
 
Hey guys. I stucked on how to get unused bytes from file. But i want this to be quickly. Thanks...
[1 reply] : Please explain, what is meant by "unused bytes"? The more detail you g... (by Chervil)
Input Validation for int not working
 
I am trying to get the function to check if the user input is between 1 and 40. If it is not, it sho...
[4 replies] Last: Good to hear :) (by Naughty Albatross)
Array pointers error
 
I'm trying to get the point for the array to return the value I enter, but it returns the memory loc...
[1 reply] : you need to use the code brackets #include <iostream> using names... (by Kbott)
some video about c++
 
I just made some C++ video on youtube, it is for self-learning, also try to help others. Comments pl...
[no replies]
C++ Program crash when doing string assign
 
Hello, I have a weird problem, this is my code : test.h #ifndef _test_ #define _test_ #include <...
[5 replies] Last: #include "test.h" int main() { Test p1; p1.addName("abc"); ... (by closed account E0p9LyTq)
by ASTM
Vectors and cout not working...thanks.
 
I am new to programming, so I am sure this is all messed up. I am trying to learn about vectors, and...
[2 replies] Last: Thomas1965 - thank you very much. That helps a lot. Thanks. (by ASTM)
How do I compile a program that uses nullptr?
 
I'd like to use nullptr instead of NULL, but when I compile using G++: g++ main.cpp renderer.cpp...
[8 replies] Last: @ Duaos Yep, another good reason to upgrade to the latest version, o... (by TheIdeasMan)
help with records
 
Write your question here.we been ask by our professor to create a program using records .to perform ...
[2 replies] Last: Line 27: You only allocate 15 elements for your politician array. L... (by AbstractionAnon)
Broke loop for user input
 
I'm trying to add a loop that'll keep the user from inputting incorrect values. This part ((!(std::...
[10 replies] Last: All good. Cya. (by closed account 48T7M4Gy)
random position problem
 
i am currently writing a win32 console application game and cant understand why the player and the t...
[7 replies] Last: it does! thanks for the tips! i finished the game and forgot to repla... (by globaltourist)
Need Help in multiply total by 10%
 
//Hello guys... I'm new to here... I want to create multiply 10% as topic says, posted my code as fo...
[3 replies] Last: C++ doesn't let you specify percentages directly. You have to use the ... (by dhayden)
Why my operator* acts illogical? (1,2)
 
Hi there I have this code which has strange output for the result of operator* The output is total...
[28 replies] Last: My code is almost done. this is a minimal code. #include <iostream>... (by sasafeb)
Help with program that will print integer digits in reverse with spaces in between
 
Hey guys, I'm currently stuck with trying to have spaces in between the digits of my output. What I ...
[4 replies] Last: Thanks guys for the responses. I got it! You guys are awesome. (by closed account ozTkSL3A)
Unused Variable
 
Hi can someone tell me why I am getting the "unused variable" error for the variable g? I am trying ...
[5 replies] Last: > you can't declare a variable inside an if-condition. The condition ... (by JLBorges)
Template and function pointer
 
I was reading a book about game development. I saw this line of code. I tried to copy and and unders...
[1 reply] : Got it working using T t; (t.*func)() Is there a way to use the -... (by skadush)
Extremely important!!
 
C++ beginner here, can someone please tell me how to do this: Create an overloaded function called s...
[5 replies] Last: > If I want the viewer to put in the numbers, how would I do it? In ot... (by Naughty Albatross)
value of reference does not change?
 
I know how passing by ref and value works well I thought I did haha but I'm still confused as to ...
[4 replies] Last: #include <iostream> // passes by pointer void functionP(int* x); //... (by closed account E0p9LyTq)
Question: Missing a chunk of information while reading from a file.
 
Hello All, I have a function named showcontent. I have around 5,000 lines that I am reading in fr...
[2 replies] Last: Yes, i thought that might be the issue that there might be a limit.. T... (by JohnWilliams)
July 2016 Pages: 1... 1213141516... 30
  Archived months: [jun2016] [aug2016]

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