Beginners (Page 5)

Small game problem, last bool variable seems to output both true and false
 
So I wrote a super simple text based game with C++, and everything works until the end. My final if ...
[5 replies] Last: Oh, that explains why its was still giving me the error, the same thin... (by levilone)
Calculator setup issue
 
I set up a simple calculator but i'm getting a error saying end1 was not declared in this scope? ...
[3 replies] Last: endl is a mnemonic for " end line and flush". (by mbozzi)
Change calculator
 
How to write a change calculator for a coffee shop menu? ). The cashier will enter the size of the b...
[2 replies] Last: Hello vaturogo, As jonnin started out and the way I see it: How t... (by Handy Andy)
seconds in to hours minutes and seconds
 
Write your question here.
[3 replies] Last: h=t/3600 m=t%3600/60 s=t%60 (by lastchance)
Change is always zero?
 
No matter what I put in for cost of item change comes back as zero? Is there a way to see what value...
[3 replies] Last: The +0.5 is ensuring rounding to the nearest integer once you assign a... (by lastchance)
Setting a base class property in a derived constructor
 
I am working through some practice problems for an intro C++ course. In one, we must create a deriv...
[2 replies] Last: What you have provided is the absolute best way to do it. If name is ... (by doug4)
by Mif
Replace a specific line in a file with a new text
 
The code actually works, but not as expected, it replace a line but not the line I choose, For exam...
[12 replies] Last: You're welcome. We were all beginners at some point. When code doesn't... (by seeplus)
Loop Breaking
 
Cant figure out why the loop keeps getting broken when I enter y at the end and doesnt loop! #in...
[1 reply] : toupper() makes a lower case letter upper case. But you are comparing ... (by seeplus)
Issue When running code in Visual Studio Code
 
Hey Geeks, I an trying to do an assignment to run a recursive algorithm: #include <iostream> ...
[11 replies] Last: You guys are awesome! That worked! CeErre (by rodriguez135994)
by Mif
How to make a piece of code run only one time? (1,2)
 
Okay, I know it sounds crazy, but I really need to know if this is possible. My question first isn'...
[20 replies] Last: const int l = strlen(pass) - 1; if (pass == '\n') pass = ... (by seeplus)
const char * to char error message
 
Hello, I have recently started to learn from a book, and I am currently copying one of the examples ...
[3 replies] Last: and most compilers will tolerate it if you tell it to use less strict ... (by jonnin)
by ar2007
excessive RAM consumption
 
Hi forum, I have created a program for the arrangement of n elements, on k positions. Each permutati...
[13 replies] Last: If changing your Add function to something else fixed the issue, I'd a... (by Ganado)
New to working with bits. Not exactly going my way. Help!
 
I'm working on this problem here. Its just for my own enjoyment/benefit. I'm not even sure if you'...
[18 replies] Last: you cannot rely on it, but *some* intel chips have an assembly command... (by jonnin)
by mikeyb
Random Number, Odd, Even
 
Hello, I am working on a random number generator which then tells you whether the number generated i...
[8 replies] Last: second one I showed above is a little advanced. making less code is ... (by jonnin)
General Question about format
 
I've been told a lot of different "proper" ways to format one's code. I was curious to you who are p...
[8 replies] Last: The important thing here should not be to tell you where to put openi... (by dhayden)
Some Noob Help
 
I am still very new to learning C++. I am trying to write a small program to help me at work. The ...
[14 replies] Last: Hey everyone thanks for the help!! So I figured it out using the inst... (by Vendetto)
Main can't be altered, functions aren't correct
 
I have this General List program from my instructor. I can't alter the main code. I have all the fun...
[19 replies] Last: I did copy paste your alteration dhayden, that's when I first encount... (by dhayden)
circular dependency and classes
 
I had to do a exercise with classes and this one had me do a circular dependency thing. anyway they ...
[2 replies] Last: My guess would be the same reason you can't do something like this ... (by markyrocks)
Please help! How do I code this?
 
If anyone can help out please, new to c++ and need help. PART II: Read a file, input the data t...
[7 replies] Last: Hello sayat52, To your hints I would make this change: • It is no... (by Handy Andy)
2d arrays
 
hey pals, I am trying to write a code which will find : 1. sum, - for each vector of the matrix...
[4 replies] Last: thank you guys for all the help, appreciate it (by MaxGreen)
Pages: 1... 34567... 15
  Archived months: [jul2020]

Cannot post in this page. To post a new message, go to the first page.