Beginners - October 2017 (Page 20)

Nested loop logic error that I cannot find
 
Hello everybody. I need to write a program for an assignment that has a few different parts, and right now I am trying to figure out one of the inner loops of ...
[3 replies] Last: Thank you Andy! That does certainly help, and now that you mention th... (by User55009)
Help with calculation functions and how to convert ints stored in a 2d array back to floats/doubles
 
Hello guys, so I need some help with these calculations. so I have a 2d int array that has dates and prices(of mutual funds) stored as int, and I need to calcul...
[1 reply] : btw this is my array sorted by day 20151016 5086 20151019 5088 2015102... (by closed account EAk1vCM9)
(Help)C++ how to call Arrays out of separate function
 
My problem is creating a function or storing them in a function but calling upon those arrays to bring into main. So I created the function and started off with...
[2 replies] Last: I really rather not switch everything to vectors. But just in case how... (by phantomxman)
Reading your input and printing out information from a text file
 
My program has to find the value I input and print out the information from the file that corresponds to the information. I got my program to read the entire fi...
[no replies]
Problem with WHILE loop
 
Hello all, I have an exercise im working on and its not working due to the while loops i think. this is what it gives me. values for x 75 678 13 4 Start...
[1 reply] : #include<iostream> using namespace std; int main() { int x{0}, x... (by closed account 48T7M4Gy)
Can't resolve the errors
 
This is the main file #include <cstdlib> #include "Records.h" #include <vector> #include <iostream> #include <array> using namespace std; void me...
[1 reply] : main.cpp:15:23: error: use of deleted function 'std::array<Record, 1... (by Enoizat)
How to read from a file and store two specific columns in a 2d array
 
Hey guys its me again. so im trying to store a file into a 2-dimensional int array with 500 rows and two columns. However I need to store the first column of fi...
[3 replies] Last: Thanks for the help guys I ended up modifying a bit of JLBorges read... (by closed account EAk1vCM9)
program crashing
 
hi guys my program seems to be crashing when I choose option 2,the program for some reason decides to crash,I'm not sure why it does this and how I would go abo...
[5 replies] Last: Hints: diary.txt: 11/04/2017: Lorem ipsum dolor sit amet, ei usu exe... (by Enoizat)
Dereference operator overload issues
 
Hello, my code is almost done but there is one last thing i can't deal with. So the point of it is: I have a file containts 10 int values in binary and i need ...
[9 replies] Last: @Repeater, Thank you so much sir!!! It works, I can't express how muc... (by Cppmiel)
return value from function
 
Hi guys I've got a dilemma I want to get the return value of a function and set it equal to a pointer in main,I know this can be achieved using a global pointer...
[3 replies] Last: thanks guys =) (by adam2016)
quick start
 
i wanna go quickly into coding....i dont want to creat a new project anytime i code....it's waste a lot of time...can anyone here show me the way how to ignor a...
[9 replies] Last: I'm not sure if you are trolling or not, but here's the real answer yo... (by Duthomhas)
How to use a loop to find average of any dataset?
 
I'm writing a code to use linux redirection to input any dataset into my program, and then list which number is either abundant, deficient, or perfect. abundant...
[1 reply] : There is a confusion of logic here. The only loop you should have is ... (by Duthomhas)
why can not understand why the loop just goes on and on
 
Write your question here. #include<iostream> #include<conio.h> using namespace std; int a,b; char id2; int f1(); int main() { cout<<"PASSWORD=...
[3 replies] Last: you are absolutely right see what i am doing with int f1() that's not ... (by phongvants123)
How to prevent the input from being any letters?
 
I'm coding a Tic Tac Toe program for school, and I'm having a problem where if the input is something else that ISN'T a number, my code goes on this crazy loop....
[3 replies] Last: JLBorges +1 Alternatively, for single-digit inputs, just get a char... (by Duthomhas)
format editing
 
Write your question here. #include <iostream> #include <string> #include <cmath> #include <iomanip> using namespace std; int main() { double a, b, are...
[4 replies] Last: #include <iostream> #define _USE_MATH_DEFINES // for M_PI (note: M_PI... (by JLBorges)
by rzaman
Reading Colon Separated Data
 
Hi, I'm trying to read a colon separated data and not sure how to tackle it. I am able to read it as a string and trying to read the values separately so I can...
[2 replies] Last: Thank you, so much ne555. Your link did the trick for me. I was trying... (by rzaman)
Argument Validity & Truth Tables
 
HI, I am hoping that I can get some guidance on this problem in my Discrete Structures I class. I am a beginner to C++ and my previous C++ class only taught the...
[1 reply] : Problem: Produce a truth table for an argument and determine if the a... (by Enoizat)
How to get rid of commas and replace them with spaces
 
Hi guys, so I need to read in a original file that has mutual funds data. Then I have to create a second file and put the data from the original file in there. ...
[11 replies] Last: oh ok thanks for explaining the logic @keskiverto when I was show an e... (by closed account EAk1vCM9)
book
 
hi guys I'm thinking of buying window programming 5th eddition by Charles Petzold the only problem is it's a pretty old book,so I'm wondering will the code in ...
[3 replies] Last: what I want to do is write something useful How can we know what is ... (by Thomas1965)
Quiz Game C++
 
my code keeps getting an error. can anyone help? Its supposed to be a multiple choice quiz game that pulls the Q&A from external .txt file and give you a score....
[7 replies] Last: Im not sure how to check if the open of file was successful if (... (by AbstractionAnon)
October 2017 Pages: 1... 1819202122... 33
  Archived months: [sep2017] [nov2017]

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