Beginners - January 2018 (Page 15)

code::blocks new thread mingw
 
Hi, im new in this and need some help. i already read other threads in searched in google, but i cant fixed the issues. i want to creat a new thread in c:...
[18 replies] Last: [quote=TheIdeasMan]You can update to a later compiler version http://... (by TheIdeasMan)
State Capital Identification
 
I'm not sure why this program isn't working. I'm fairly new to this, so some explanation would be very helpful. #include<iostream> #include<string> ...
[1 reply] : The >> operator stops reading as soon as it sees a whitespace characte... (by Peter87)
cannot use power function from multiprecision boost library
 
I have installed boost library version 1.65.0 . I cannot use the power function "pow" from it. Whenever i write pow and use intellisense , it will only give m...
[3 replies] Last: ok , i just checked , it is actually using boost::multiprecision. howe... (by masterinex)
use a macro within a macro
 
I want to write a macro that computes the volume of a sphere. Attempt 1: I get "Pi" is undefined. #include <cmath> # include <iostream> # inc...
[15 replies] Last: Isn't the same true for functions? No, the function calls are picked ... (by jonnin)
I don't know how to deal with T (test cases)value
 
Write your question here. So my program is pretty much ready but the problem is that the site of our university does not accept it because of my T(test cases )...
[8 replies] Last: Thank you very much it worked . I will keep in mind everything that yo... (by NOSgraf)
by Chaost
Default argument for pointer-to-string
 
I was given a programming exercise by this e-book I'm currently learning C++ through. I came across something I find kind of odd, as it wants me to use a pointe...
[6 replies] Last: coder777: Yeah, I just noticed that, just crashed the program cause I ... (by Chaost)
How can I implement a select/menu feature?
 
It's kind of hard to explain in words by I'd like to let the user select an option using arrow keys and enter rather than typing in a character/integer. Exam...
[2 replies] Last: Hello Anoraki, I think is along the lines of what you want. I can not... (by Handy Andy)
Overloaded Assignment Operator
 
I've written a fraction class with numerator and denominator and I want to assign with frac a = frac(n,d). My Operator doesn't work and I don't know why. I'm g...
[3 replies] Last: Thank you very much, the names were the problem :-) (by alextmfk)
How to build a proper handwritten salted password hashing??
 
Hello. I am making my own salted password hashing algorithm I have developed the next code. I am getting garbage when it concatenate strings. I have build ...
[1 reply] : I am getting garbage when it concatenate strings. The reason is that ... (by coder777)
Need help to my game!
 
Hello, I am trying to create a little game where you start off as an employer and then you can buy better apartments and get promoted to different jobs but I do...
[3 replies] Last: @Repeater Sorry I don't know that much about c++. I'm pretty much tryi... (by RebootOfficial)
by mo812
Functions (Pass by reference/value)
 
Attempting to edit a code to utilize a function instead of previously used method to calculated percentage of failures. Objective is to use only one function. H...
[3 replies] Last: Not exactly sure what you mean, but a function can only return one val... (by Ganado)
Why am I getting an infinite loop?
 
I'm a beginner #include <iostream> using namespace std; int inputData(); int convertData(); int outputData(); int main () { inputData()...
[1 reply] : do { if (hours > 23) { cout << "ERROR! Must be less than 23" ... (by Repeater)
Finding Number of Columns in Text File
 
Hi everyone, I want to print the number of columns in the text file. My file is 07MWSKN 765 2 34123 07MWZBW 56 197 165 07MWZDW 765 234 123 Every l...
[2 replies] Last: Thank you very much @lastchance. It works! ;) (by airerdem)
by ebba
Help with logic on quadratic formula (hw)
 
Maybe I don't understand complex numbers well enough to explain them to a computer... I'm writing this program that should be able to figure out both real an...
[3 replies] Last: Thank you! This is early in the semester, and I have not yet learned... (by ebba)
by chuvak
Get empty input
 
Say I have, using std::string; string temp_id; string temp_name; std::cout << "ID\n> "; std::cin >> temp_id; std::cout << "Name\n> "; std::cin >> temp_name;...
[1 reply] : Sounds like you want to use std::getline. http://www.cplusplus.com/re... (by Peter87)
by chuvak
ISsue with modifying std::cout
 
I have, double temp_price; std::cout << "Price?\n> "; //12345.6789 std::cin >> temp_price; std::cout << "Price\t\t >> " << std::cout.setf(std::ios::fixed...
[1 reply] : #include <iostream> #include <iomanip> int main() { double temp_... (by JLBorges)
I need help with a function with an array
 
Hi everybody, I'm starting learning C++ and I don't understand why this code for mirroring a array is not working. All kinds of help would be very appreciated. ...
[3 replies] Last: its a flaw. C++ should not have named vectors (the container) after a... (by jonnin)
need help with my function call void
 
pretty much when i try to call the function it says that gross and prov is invalid please need help with this so much been trying to figure it out for hours now...
[2 replies] Last: This kind of errors are very common and it's important to keep practic... (by benhart)
by chuvak
Storing into array
 
Hello, Say I need to store into an array data about a car. So, a typical index of this said array would contain data such as, char arrCars ; for (int i = ...
[3 replies] Last: char* name; Just use a string. That's what they're for. class Car ... (by Repeater)
comparing strings goes wrong
 
I'm comparing the contents of two vectors. The data from the infile is read in correctly, but when i compare the contents of the vectors, it matches 2 strings t...
[2 replies] Last: I feel so stupid now. That fixed it, thanks. (by smoothstone)
January 2018 Pages: 1... 1314151617... 22
  Archived months: [dec2017] [feb2018]

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