Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
 
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duthomhas)
Transparent Child Windows
 
As the title suggests, i am trying to create a transparent background child window as a text label o...
[3 replies] Last: I think magenta was/is the "standard" color for transparency. If that ... (by rjphares)
Question about operator.
 
Hello! Can anyone explain to me what "Player(const Player &p)" and "Player &operator=(const Player &...
[2 replies] Last: Is the "&operator=" overriding the p? The Player& return value shoul... (by Ganado)
Bad alloc exception from copy cons?
 
Hi guys I can't seem to figure out why a bad alloc is being thrown,I am guessing it has something to...
[16 replies] Last: could std::swap() not jut swap full objects? But that's exactly the ... (by Ganado)
by DellXT
Is there a mistake somewhere?
 
Finding max, min and avg of the array. Is there a mistake somewhere? In one test it shows RTE - roun...
[6 replies] Last: Why are you posting your code without code tags like an idiot? (by tpb)
by Delgeo
Why Does a Function with two differing variable types work?
 
Hi all, why does this work? the function type i wrote is int, but i have a string in the argument ar...
[3 replies] Last: Here's an example to help you visualize a common pattern of returning ... (by icy1)
by wsme
Stopwatch with negative time in C
 
Practicing my use of time() in making a stopwatch. But it seems that I have misused it as the call r...
[6 replies] Last: Seems like Codelite uses clang, which is a well-maintained compiler. I... (by Ganado)
by DellXT
Giving only unequal results C++
 
Solving cubic equations. Needs to be improved by giving only unequal results (e.g. 0_0_3 -> 0_3) ...
[9 replies] Last: Are you past calc 1? If so, you can take the dx of this function easi... (by jonnin)
Can't get the right answer
 
So I was trying to figure out why I get the wrong answer but I just can't. There is a clock. The fir...
[5 replies] Last: Agreed with Repeater (day 37), except 15 + 36*25 is 915 seconds, not 9... (by icy1)
Bubble sort repeats text
 
My project is to create a bubble sort that puts the numbers in ascending order. My code works but ...
[4 replies] Last: Thank you very much (by Caesar est mortuus)
by DellXT
C++ Rotate the given matrix the specified number of times
 
Rotate the given matrix the specified number of times. My code rotates only one time (90 degrees to ...
[3 replies] Last: By the way, may I ask something? How to input and output matrix(es) f... (by DellXT)
by DellXT
Complicated
 
Can anyone help to solve this one? There is given two numbers n and m (1 ≤ n, m ≤ 1...
[4 replies] Last: It worked. Thanks! (by DellXT)
Creating A Simulated Output
 
i need to do this and am unsure how to generate the computers output the question is as follows: Ad...
[1 reply] : Maybe like this: #include <stdio.h> #include <stdlib.h> #include <t... (by Thomas1965)
What is the difference between reading from console and reading from keyboard?
 
Hello. I have 2 different assignments; one asks me to "Read a string from the keyboard and display i...
[2 replies] Last: I think they probably mean the same thing, i.e. use std::cin to read s... (by Peter87)
by kainev
Buffer to store multiple values of different types
 
Hi all, I've been working on a dependency graph (like the one found in Autodesk Maya). Every node...
[12 replies] Last: Could you provide a short example on the usage? An object of type st... (by mbozzi)
Unexpected E0349 error
 
I have two instances of the following code just built in two different projects on the same visual s...
[1 reply] : Try adding #include <string> and moving "using namespace std" to just ... (by tpb)
Getting an extra \n somehow.
 
Hello, My code is printing out an extra \n somewhere and I cannot figure it out. I run the code aga...
[3 replies] Last: Thanks Andy, though not as neat as your code this is what I ended up d... (by jcthomas556)
emplace back
 
Hi guys I am writing a kind of self messaging maybe you could even call it a memo or notes to self c...
[6 replies] Last: oh my bad big mistake,I should have created an ifstream :o totally sl... (by adam2016)
error while overloading << operator
 
Hello, just getting started with classes. Have a Date class, using enumeration to define months. T...
[3 replies] Last: Thank you for the help - it's working now! Implemented all the corre... (by Jenny89)
Pages: 123... 41
  Archived months: [mar2018]