Beginners - August 2016 (Page 10)

Pointer Arithmatic Issue
 
I'm trying to remember how to do pointer arithmetic (I haven't coded in a while). This is what I came up with. #include <iostream> int main() { int ...
[2 replies] Last: Thank you for pointing that out, sorry about the trouble. (by corywstewart99)
by tira
loop problem
 
How to display name of the highest hours worked as an output after the loop
[3 replies] Last: Hint: When you set the max variable in the if block on lines 23-24, yo... (by kevinkjt2000)
initialize a class object in initializer list
 
Assume I have a class A, which has two constructors and default copy constructor: A(); A(int i); Then in class B, I have a member variable is A: private...
[6 replies] Last: Thank you! (by buddha87)
program stops working
 
i decided to practice classes,inheritance,keyword this and friendship and made myself a project "Synth constructor" @inspired_by_fallout the project's mission i...
[16 replies] Last: globaltourist Check out http://www.learncpp.com/ chapter 8 and 9. I h... (by Handy Andy)
Snake Game - movement function
 
Hello, Let's say I have a snake: char snake . How do I move the snake on a board ? My attempt is not bending the snake when changing direction: { ...
[3 replies] Last: Does your snake wrap around? Meaning, if the snake hits the edge, doe... (by JayhawkZombie)
SFML DOESNT WORK
 
Hello. I tried to install sfml on codeblocks but when I try to build the sample program on the site it just doesnt do it. This is the build log when I try to bu...
[5 replies] Last: I downloaded and followed only these instructions (http://www.sfml-de... (by cire)
How to set up any C++ compiler with Code::Blocks?
 
Hi there! I'm new to C++ programming and was wondering what is the best way to set up any compiler without having to alter PATH environment variable and things...
[1 reply] : Compilers are just that: the only thing they do is compile code. What ... (by JayhawkZombie)
Getting Errors with “std_lib_facilities.h”
 
Hey guys, newbie's here. I'm doing exercises from Stroustrup's book. I got errors when I included his header file. Here's the detail: https://stackoverflow.com/...
[3 replies] Last: "unsigned int i" can not be a negative number therefore is "i < 0" alw... (by closed account 48bpfSEw)
Template operator<<
 
Hey guys, I'd like some advice on how to make an ostream operator<< for a template. Stroustrup said templates tend to lead to phenomenally bad error messages, a...
[6 replies] Last: @ne555 Ah, yes using friend is better - not sure why i keep forgett... (by TheIdeasMan)
by roots
pseudocode
 
I am having trouble thinking of a way to structure this program. I have 10+ items in stock. I want to prompt the user how many of each he should have. I th...
[5 replies] Last: So storing the number in a text file is enough. Go for it. There's n... (by closed account 48T7M4Gy)
Basic command line question
 
Hello, I am relatively new to programming with C++ but I do have a good amount of experience programming with other languages. I've started working with some Op...
[7 replies] Last: It seems that you should be trying to create a library not an executab... (by jlb)
by thexiv
Input Output of 32 bit sizes in chars
 
I want to know how, if there's any reasonable way, to take a 32 bit int and turn it into a character that will be counted as that number in a formatted file. I ...
[9 replies] Last: void Node::insert_leaf(bool HL, bool LR) { HiLo.push_back(HL); if (... (by thexiv)
Course program: cplusplus.com Tutorials - please join class!
 
Hi, The voting has ended. The winner is : Our own tutorial set! This program is about working through the tutorials on this great forum: http://www.cplusplus...
[3 replies] Last: Forum tutorial class is ready and waiting for people to join. Come on ... (by Too Explosive)
Help concerning a basic simple snake game
 
So, I was trying to create a simple snake game the other day. The code has been written, but a few problems popped out and I don't quite understand why. 1. ...
[2 replies] Last: Thanks for that answer! Also it was _getch() before. I was just trying... (by XYTetris)
SORTING HELP
 
I want to be able to have someone enter a word and have those same letters printed out in a random order. Any ideas would be helpful.
[8 replies] Last: Relax. I was using that topic to see if that would help me get an idea... (by fivestar)
OOP Design question.
 
I've been working with SDL2 the past several months and quite enjoy it. That being said I'm getting this feeling that I am not doing something right, or I have ...
[3 replies] Last: Very much appreciate the replies folks. So it's a bit what I kind of e... (by CGunn86)
Two-dimensional array
 
Two-dimensional array Create a two-dimensional array . Fill it with random numbers from 0 to 9 inclusive. Writing a user to enter the number of rows and column...
[no replies]
2 questions about c++
 
Hi there! I'm trying to figure out how to loop the if statement if its conditions are not met. This is just a simple password check system, where the passwo...
[19 replies] Last: Thanks! There are a lot of very good programmers on this site! Good ... (by koothkeeper)
Dungeon Crawl Enemies
 
I am making a Dungeon Crawl game from this site (http://www.cplusplus.com/forum/articles/12974/). I have all the game done I just don't know how to make the ene...
[no replies]
Inheritance technical problem
 
while learning inheritance i came across a problem when trying to get a main class to inherit a sub class as if the main class is at the top the members of sub ...
[8 replies] Last: Ok Thanks again for the explanation i'l continue learning! (by globaltourist)
August 2016 Pages: 1... 89101112... 22
  Archived months: [jul2016] [sep2016]

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