Beginners (Page 19)

Problem with minGW
I have a problem with minGW version and I copied archives by: hpps://
[2 replies] Last: I put in prompt command and there aren't. the version are 6.3. (by victorio)
Query: Binary Tree - Preorder, inorder and postorder iterative traversals
Dear C++ Community I kindly want to inquire about how does replacing the stacks used with queues in...
[1 reply] : Nothing magically changes just by using a different structure. What ma... (by Duthomhas)
by Quag
Functions not running properly, error: expected expression
My program is supposed to be an array which size is given by the user and then filled with random nu...
[1 reply] : In future please use code tags and if you have compiler errors/warning... (by jlb)
by obeeey
Recursive function finding index
Hi :) I needed to write a recursive function returning index of the element I wanted to find, so thi...
[1 reply] : If you use a "standard" array, then you are going to have to signify i... (by lastchance)
Practice Code Analysis
Hello, it's been a while since I've been on the forum, but I have been very busy, working and enroll...
[6 replies] Last: @MrCluckyToYou, No need to feel inadequate, C++11 (and now C++14/17) ... (by Furry Guy)
Where to define Public: and Private:
Write your question here. I have a class with a header file and its associated .cpp file. The heade...
[4 replies] Last: other classes only need to include a header file to make use of a clas... (by malibor)
by obeeey
Function swapping only one character in an array not whole string
Hi there, I'm trying to write a simple card game. My idea is as follows: I have this char 2d array ...
[8 replies] Last: Wow, thank you all soo much for those answers! Now everything is clear... (by obeeey)
nonstandard extension 'for each' statement
This is for my CIS class and a method that is part of a blackjack game. The issue is that every "fo...
[4 replies] Last: Thank you for the help. I know that we weren't using a console applic... (by mcnhscc39)
Weird pointer situation I don't understand
I'm a bit confused about the output of the following code: char* a = new char; char* b = ...
[2 replies] Last: I see now! Thanks for the information! :) (by anarelle)
Is there a downside to using auto for the return type
I'm brushing up on my c++ and my compiler warning told me that I could use auto with c++14. Seems ve...
[2 replies] Last: > I was wondering if there might be a downside to not specificly stati... (by JLBorges)
How can I keep the result from equation in a range?
I want the value of dmg in this equation to be equal or greater than 0. Meaning, if the result is >0...
[2 replies] Last: dmg= int((a-(b/6))*mp) * (int)(a>b/6); //can't jump. max hides a bran... (by jonnin)
Get String from Getline method in C++
Hello, I want to get a string from input but seems 'Enter' instead of an input string in num vari...
[4 replies] Last: Thank you but we cannot because in Hexadecimal we have for example 3C... (by dhayden)
Could this be considered a bst?
Hi, more studying. Is this a basic binary search tree? Thank you. #include <iostream> #include <...
[11 replies] Last: >> jonnin Ohhh. That's what you meant by that. I'm with you now. I ... (by jjordan33)
Change string for dados
I have two errors in the functions: 'npos' was not declared in this scope; expected primary-express...
[1 reply] : std::string::npos (by Furry Guy)
Char to Int in C++
Hello, How can I fix this code? I want to send number to a method and get Char. #include <iostr...
[4 replies] Last: how will that work if int contains a number grater than 255 ? not att... (by lastchance)
Plot with gnuplot
How I can to export data in graphical format, demonstrating temperature and connection limits of res...
[2 replies] Last: I usually export a CSV and let excel draw pretty pictures for me for s... (by jonnin)
Compare period of date
How I can to create an interval between dates. I need a cin for the two interval and verify the temp...
[3 replies] Last: > How I can to create an interval between dates Convert local calenda... (by JLBorges)
by Zii
if statement, getting error when declaring a string
So line 20, I have ~~ under all the == signs. Why is this? I would like the program to quit (quit = ...
[5 replies] Last: My exact error message is: 'bool std::operator ==(const std::error_co... (by MikeyBoy)
Create a thread
I need to run two functions at the same time, read temperature and open Menu. int main() { ...
[19 replies] Last: Here is some sample async code (which executes a member function async... (by JLBorges)
Why s=-1.#IND ? #include <iostream> #include <math.h> using namespace std; float fact(int k)...
[1 reply] : I presume you meant / fact(2*i+1) and not * fact(2*i+1) if you wa... (by lastchance)
Pages: 1... 1718192021... 25
  Archived months: [oct2019]

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