Beginners - January 2020

Program runs fine doesn't want to compute
 
A new program I've been working on for a week now and wanted to get some advice on what should be al...
[8 replies] Last: Yes, it feels great. It's always hard in the beginning, but as soon as... (by CodeNovice01)
Need Help Please Cash Register C++
 
Hi, I've been working on this program for approximately 2 weeks and I just can't do it, I'm a begin...
[1 reply] : you may try this code: #include <iostream> #include <iomanip> #inc... (by Wail)
Brain Fart.....
 
I think im having a brain fart bc i can't figure out how to do what im doing. I have a huge multila...
[13 replies] Last: Another thought: If one implements the rotate cube function, there wo... (by TheIdeasMan)
Container class with 1D array
 
Hey guys, we are supposed to be doing this program using a container class to store (x, y) values in...
[1 reply] : there are a number of ways to do this. you can roll your own: struct ... (by jonnin)
Can someone explain this code?
 
Here is some code I ran across: #include <utility> template<typename T1, typename T2, t...
[9 replies] Last: [quote=TheToaster]This is from a textbook Everything is explained in ... (by Enoizat)
by Hex213
std::map destruction value
 
Hallo, can map destruct pointer or class when it is value? Or I need to define a destructor separate...
[1 reply] : Destruction of a plain pointer does not deallocate the memory that the... (by keskiverto)
Segmentation fault (core dumped)
 
Hi, I am trying to work with pictures on C++, and I would like to obtain the size in bytes of a g...
[5 replies] Last: yes, c++ compilers support C and c/c++ mixed. Yes, you can fix it.... (by jonnin)
looking for string
 
Hi, I would like to use this function to looking for some element from array of strings (JmenoSerial...
[3 replies] Last: you can return without a value, eg return; but the error message to ... (by jonnin)
C++ Stack Implementation (Occasional Seg Fault)
 
I'm trying to figure out a problem with my program. It works 75% of the time, and when pushing an...
[19 replies] Last: Sarcasm and passive aggressive reaction in large doses. Ah, the wonder... (by againtry)
Can anyone please tell me what this error means?
 
Write your question here. I met tons of error , anyone help me? #include <iostream> using na...
[5 replies] Last: Don't forget that you can't make an array like that, in your line 5 I... (by againtry)
Not compiling, problem with Serial.print()
 
This assignment (due yesterday) has some pretty specific instructions like declare alphaDeg as float...
[5 replies] Last: green tick please so we can see problem solved :) (by againtry)
Adding two floating point numbers using IEEE 754 standard
 
Hi everyone, I'm a beginner so some of the part of my code might seems stupid and redundant, pleas...
[no replies]
Most ridiculous bool condition ever?(member array indexing)
 
Hi all This program is just me experimenting/trying stuff for the sole purpose of learning. I fully...
[3 replies] Last: The route mapping in this case wa random but a structure way through a... (by againtry)
A simple snake game
 
Hi, i am making a simple snake game but i cant seem to be getting it right. firstly, i want the game...
[2 replies] Last: Line 4. Avoid using namespace std; . It brings all of the standard li... (by dhayden)
Why Doesn't This Lead to C++'s Most Vexing Parse?
 
#include <iostream> using std::cout; class abc { public: int i; abc(int i) : ...
[3 replies] Last: Yes. And 'a' can be made a variable with parentheses: abc (a(abc()));... (by dutch)
Text adventure game, how to make loop
 
If the user inputs something other than 'a' or 'A'. Then it will simply ignore it and wont output th...
[1 reply] : Lol this is untested but I been working on using these kinds of expres... (by markyrocks)
Determining array size based on file input
 
Hi all! I need to write a function that receives an input file and an array, reads the data in the i...
[5 replies] Last: Got it. Thanks! (by SamIAm3)
getline and reading into a struct array
 
Hello, I'm stuck at the beginning of this project and can't figure out what I'm doing wrong. I'...
[1 reply] : The getline that you are using expects a std::string, not a raw char a... (by dutch)
by xoox
Manual Reverse string [CHALLENGE]
 
I was challenged to create a function that will reverse a given string, and unfortunately running ou...
[4 replies] Last: #include <utility> #include <iostream> char* reverse_string(char* s,... (by mbozzi)
Meaning of "free(): *some error*"
 
I keep running into runtime errors that start with "free(): *some text*. I would like some he...
[4 replies] Last: > "free(): *some text* there are some cases where it pays off to read ... (by ne555)
January 2020 Pages: 123... 12
  Archived months: [dec2019] [feb2020]

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