Beginners - September 2018 (Page 20)

Is it the matter of private and public ?
 
Hi, everyone, the following code runs fine,but if #include "stdafx.h" #include <iostream> #include <string> using namespace std; class WhatThe ...
[1 reply] : Printing and returning are two different things. Printing means t... (by Peter87)
convert unsigned decimal to binary
 
aqqq
[3 replies] Last: Yea. I am aware of the the table and understand how to convert it by h... (by hello321)
Shadowing a variable
 
What does shadowing a variable do? For example, what is the difference between this #include <iostream> using namespace std; int main () { int n; ...
[2 replies] Last: it makes the code aggravating to read and debug. Example 1 declares... (by jonnin)
E number
 
/*HEllo everybody. i would like to see your recommendations and your quotes. how can i optimize this code? what is wrong into the code? what can it be impr...
[5 replies] Last: nice sir i got it, but is hard to follow your way to do it on coding. ... (by luciusFernatore)
how to trigger carriage return after 8 characters
 
I would like to have carriage return after 8 characters so it would look like 11111111 11111111 00000000 00000000 instead of 1111111111111111000000...
[3 replies] Last: I am attempting to make a bit board for chess. A chess game with one... (by closed account E0p9LyTq)
Area and Volume of a cone with step increments of 0.5
 
Hello, I am new to C++ so try to not be too hard on me. I have been searching the forums and google for a few hours to try and figure this out. I am trying to c...
[2 replies] Last: Thank you so much for the fast reply. The teacher gave us some sample ... (by XboxOne2019)
randomly place N spheres in volume
 
Hello there. This time, I need to put N spheres with given radius R randomly in a Volume [-0.5,0.5]^3, without any overlap of spheres. If I choose values so t...
[3 replies] Last: @Repeater My overlap function still sucks. I will have to improve it, ... (by PhysicsIsFun)
Arrays
 
I'm trying to figure out how to print one element of an array based on the user's input. Let's say I made an array that contains the student's first and last na...
[2 replies] Last: Thanks!!! (by mysiarobin1987)
by nirbh
problem understanding a paragraph in c++ primer
 
A decimal literal has the smallest type of int, long, or long long (i.e., the first type in this list) in which the literal’s value fits. Octal and hex...
[3 replies] Last: thank you very much for the quick reply, now I understand. (by nirbh)
Advise courses html
 
Advise courses html
[2 replies] Last: How to Ask Questions the Smart Way http://www.cplusplus.com/forum/arti... (by closed account E0p9LyTq)
by amaali
Area circle and square
 
I keep gettin a redefinition for Circle::Circle() error on my circle.cpp file . We were to create a program in C++ for user input of area and square. Header ...
[3 replies] Last: can you post the exact error you're getting? If you look closely the... (by Peter87)
console closes when i enter input
 
Write your question here. just started using visual studio...at first the console only opened for a second and i found an answer to that....now it stays open ti...
[2 replies] Last: A thing I use in all my programs: #include <iostream> #include </*w... (by H00G0)
Calling function within if or switch statements
 
Hi all! I'm writing some code for a "casino" game but have hit a snag with using multiple functions (which is required). I'm able to go to the menu from main, a...
[6 replies] Last: I don't know why (I had tried both the switch and if statement after c... (by Hippotopamus)
Use Pointers and Casting to insert/retrieve char(s) and int(s) from char array
 
I'm at a complete loss here on how to do this. I have a char array of 100 bytes and I'm trying to use ptrs and casting to put integer(s) and char(s) into and re...
[3 replies] Last: Thanks! This is a big help. I'm going to review this to make sure I un... (by natekelsey)
September 2018 Pages: 1... 181920
  Archived months: [aug2018] [oct2018]

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