Beginners (Page 5)

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)
String Array into Function
I'm trying to call a const string array into a function but I keep getting an error, I can't seem to...
[1 reply] : Do you know that a std::string instance is not an array? Your print f... (by jlb)
program for division digit on digit by school algorithm
Write your question here. hello. i trying to write a program that dividing one digit to another by ...
[1 reply] : Hello tohamoa, I ran across your program a couple of days ago and the... (by Handy Andy)
by AL88
why am I getting "no matching function call to constructor vector2d.h"
Why am I getting thie following error when trying to compile this game engine code, the previous exa...
[1 reply] : Your SDLGameObject defines the following member variables: Vector... (by Ganado)
Deleting all occurances of a number in an array
Hey, so I have to delete all occurrences of a number in an array, without using vectors, strings or ...
[5 replies] Last: The code simply moves two indices forward - nextRead goes through each... (by lastchance)
Pages: 1... 34567... 28
  Archived months: [sep2019]

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