Beginners - October 2018 (Page 6)

Program not counting up to days
 
The program is supposed to start with a penny and double daily. The assignment wants the day displayed to that day's amount. I am completely blanking as to why ...
[4 replies] Last: Hello ZestyCthulhu, You are welcome. It is always the little things t... (by Handy Andy)
Segmented sieve
 
This is my segmented sieve. Please help me. Why is it not working? #include<stdio.h> int main() { int t,m,n; scanf("%d",&t); // ...
[18 replies] Last: It's not really a segmented sieve since it only has one "segment". (by tpb)
Please suggest!
 
Please suggest!
[5 replies] Last: FWIW I write a TON of what I would call disposable programs that do th... (by jonnin)
Re: Looping Statement
 
Hi! I am working with the codes below: #include <iostream> using namespace std; int main() { int x, y; int i; int sum46 = 0; int ave37 = 0; int pro...
[3 replies] Last: Hello aftselakhis, Your program is on the right track and has many us... (by Handy Andy)
Need help with homework
 
The problem is: "The formula for converting temp. from Fahrenheit to Celsius is c = 5/9 * (F-32) where F is the Fahrenheit temp. and C is the Celsius temp. Wri...
[17 replies] Last: > Does float multiplied with double require promotion of float? Yes. ... (by JLBorges)
by defs
Palindrome.loop.range
 
Hi, Any advise about what is wrong with this code? why its looping forever, and giving wrong answer? programm loads with no error but outputs are not as expe...
[7 replies] Last: I did had an idea that x stays 0 at the end, but I didn`t understand h... (by defs)
by RogerN
Error while Compiling a printer Driver
 
Hi - I am looking for some guidance on basic C programming. It looks like it should be simple to fix but I have no knowledge of C and despite a lot of searching...
[6 replies] Last: Thanks for that , sounds interesting. - perhaps it would be worth addi... (by RogerN)
by Drac0
User defined functions (1,2)
 
I'm writing a code to use the limit definition of a derivative to find a derivative at a point x. I'm using user defined functions to set each part of the code ...
[30 replies] Last: Thank you. Im sorry for not finding little mistakes. I really need to ... (by Drac0)
Garbage Value when referencing out of main function
 
I'm writing a function that's goal is to take an input of a radius and degrees and it outputs the co-ordinates in radians. when i return the value, it gives me ...
[15 replies] Last: Since you're not using, and are not returning anything from compute_co... (by jlb)
[Code Review] Fraction Class
 
(Disclaimer Note) I thank you very much for taking the time to go through this. Please accept my apologies for the long post. English is not my first language ...
[3 replies] Last: Hi, thank you for your response. I noted the code duplication you tal... (by Alienguard)
Compile Error
 
I keep getting the error "Control may reach end of non-void function". Keep in mind I haven't implemented the function when the bool variable is false yet. #...
[3 replies] Last: Hello Slasher320, A properly formatted and indented code: #include ... (by Handy Andy)
function argument
 
If i am given a class constructor like this: Class::Class(char* char), is there a way to call the function in the main program like this: Class* new_object...
[7 replies] Last: by the way, Class new_object(ptr); http://www.cplusplus.com/forum/ge... (by ne555)
Function SNAFU
 
Hello all:I'm coding a dice rolling program for school. The syntax on the function looks correct but my compiler pulls a red flag on the first bracket. then th...
[1 reply] : int rollDie(int min,int max);///remove this semicolon #to-fix { ... (by closed account SECMoG1T)
by dcaro
ifstream
 
We are trying to open a set of files listed in a txt file called "model.txt". Once we open that file each line is the name of other file with the dataset. The p...
[10 replies] Last: It was solved removing the last character of nomeArquivo. Thanks a lo... (by dcaro)
while loop only running once?
 
Hi, I think my problem is the while loop is only running once but I am confused as to how to fix it... Not 100 % sure that's the problem I am very beginner #i...
[3 replies] Last: Thank you for pointing out that I was not using coding tags! And thank... (by brian818)
by misalo
Reading .txt files inside a .txt file
 
Hi, I am not too experienced with C++ and am currently working on a project that requires reading in a .txt file that contains a list of names of other .txt fil...
[4 replies] Last: There might not be a need to store the files in a vector if you just n... (by dhayden)
correct error checking
 
I've made my program run at least after removing a lot of mistakes i've had before, i'm beginning to fix it and make it more logical. for now i'm trying to see ...
[3 replies] Last: More than 8000 characters even? That link is fine but you should avoid... (by Satan)
Plinko with Functions
 
I am having trouble completing this Plinko with functions lab. I have been working on this for a few days and feel completely stuck. The big problem that I'm ru...
[2 replies] Last: Well, there's nothing in your DisplayMenu() or main() functions th... (by MikeyBoy)
October 2018 Pages: 1... 45678... 28
  Archived months: [sep2018] [nov2018]

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