Beginners - October 2017 (Page 3)

Writing inside Ncurses box
Hello, i'm trying to use Ncurses. Using the function box(win,0,0) i draw a box around a wind...
[1 reply] : Any info on this? (by Amiplus)
by arbwok
Binary file not saving into same file
I can't seem to get my code to save the buffer into the same binary file. I read the file and placed...
[3 replies] Last: fstream can be used for input-only or for output-only, or for both i... (by Chervil)
issue with linked list
#include "stdafx.h" #include <iostream> using namespace std; struct node { char myval; node* nex...
[1 reply] : What is the value of next? Write some code to print it's value by itse... (by TheIdeasMan)
Help I cannot figure how to start this.
Write a program to print the following table. Each row in the table has an integer, its square, its ...
[4 replies] Last: Thanks man for the help and I will format it better next time. I can't... (by mlass7886)
How to format output
I'm super new at this and need a little help. I don't want answers just some help Q: What is outp...
[1 reply] : Q: What is output of expressions(a)&(b): Try writing some code to t... (by TheIdeasMan)
by cash
How to find number in array
My program is displaying number does not exist after each input. I need help to fix my if(TheNum!=cn...
[5 replies] Last: You are welcome. Andy (by Handy Andy)
Help with magic eight ball game
Hi,I've been having trouble with a magic eight ball game. I'm trying to print a random response and ...
[2 replies] Last: Thanks for the help Andy. Everything seems to be working after I adde... (by MarbleHornets)
c++ code help
Hi, I have a problem with the spacing for my output. **Here is my coding: #include<iostream> #inc...
[1 reply] : Hello bal160730, In line 29 try removing the first "\n" and see what ... (by Handy Andy)
Multiplication table w/ Array will not work
Anyone know how to add the top layer of my multiplication table?Plus, if the users enters an integer...
[2 replies] Last: @ne555 The top part of the table just like the left side. 1| 2| 3| ... (by ZAMZAMZ)
by NovaBp
Why wont the program let me keep inputting
why wont the program let me input a value for amount? #include <iostream> #include <iomanip> #inclu...
[4 replies] Last: Thanks! (by NovaBp)
Understand GDB error caused by my code.
Hello, I'm writing a program that takes an n amount of cubes and builds a tower out of them based...
[4 replies] Last: Thank you, I don't think I deserve a praise because as a Computer Scie... (by CluelessMan)
Using object as function parameter
Can someone please tell me whatsup? I just want to be able to use objects as function parameters,...
[2 replies] Last: Thank you my dude, youre perfect. Havent messed around with c++ in a m... (by MoreUmph)
Constructor excercise problem
Hello, i have a problem with an exercise: the header is given: #ifndef HEADER_H_ #define HEAD...
[3 replies] Last: why the name array do not have a destructor? You don't create 'name ... (by Enoizat)
Undefined reference error
I have written a code using parallel arrays to display 20 bottles of bourbon and the corresponding n...
[3 replies] Last: I have it working now. Thanks! (by smitty007)
by cash
I need help with options 6 and 4 in the menu. This is the menu : 0. Create array: Asks user h...
[1 reply] : Helllo, 0. Create array: Asks user how many numbers to fill (the len... (by alonso12)
Breadth-first Traversing?
I'm new to binary trees. How would I output the nodes in the trees by levels then from left to right...
[2 replies] Last: How would I change this so that it accepts user input instead of using... (by Griffinflame21)
Define different class function for each member?
Hello! I have a (probably) dumb question. Is it possible to have a class and have a method that need...
[3 replies] Last: In the second option, you need to set the function to be executed. You... (by Repeater)
What is wrong with this code
I get 2 error messages: Line 13: "a function-definition is not allowed here before '{' token" Line...
[3 replies] Last: With my "This won't work" I meant: What happened in that case was that... (by goldenchicken)
by Ch1156
Final Keyword
I was doing some class research and I came across this keyword final. It's the first time i've ever ...
[1 reply] : final is not a keyword ; it is a specifier . It has a special mean... (by JLBorges)
by Hanske
Floating points - Binary
Hello everyone, I'm getting started with C++ and programming and want to learn the basics to make...
[2 replies] Last: Hey thanks for the reply and sorry for just getting around to respondi... (by Hanske)
October 2017 Pages: 12345... 32
  Archived months: [sep2017] [nov2017]

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