Beginners (Page 4)

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)
Problem with MakeFile
Hi, I'm doing a project and I added some new classes. The problem is that now the MakeFile is gettin...
[4 replies] Last: > it uses an #include "ResourceHolder.inl" . I never saw an inl file b... (by ne555)
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)
by Bopaki
Asking for help with binaryTreeType
The code for the binaryTreeType is very long but follows next Here is my main function: usin...
[6 replies] Last: The biggest mistake that beginners make is that when they hit a wall, ... (by dhayden)
I want to print output like this using loops only Enter the number of rows: 5 5 4 3 2 1 0 4 5 4 3...
[4 replies] Last: we occasionally run into something what a c-string is just easier to d... (by jonnin)
by Hay9
Desctructor declaration problem
Sorry for bothering, but I have a problem which I do not get. I compiled a header file for a class ...
[3 replies] Last: dtor is for the class at hand, in this case, account. you rarely need... (by jonnin)
.cpp files and header files
hi i am new to C++ and i am still wrapping my head around the basics. i have learnt about headers ...
[11 replies] Last: Fair point. But since we were already talking about stretching the me... (by MikeyBoy)
Write a Value Returning Filter Type Function
I guess my main problem is that I do not know how to begin assembling this program with the counter ...
[7 replies] Last: @jonnin, I had "forgotten" about std::replace_if . Combine it with a... (by Furry Guy)
Pages: 123456... 26
  Archived months: [sep2019]

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