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 ...
Oct 25, 2018 at 5:24pm
[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); // ...
Oct 25, 2018 at 4:49pm
[18 replies] Last: It's not really a segmented sieve since it only has one "segment". (by tpb)
Please suggest!
Please suggest!
Oct 25, 2018 at 3:44pm
[5 replies] Last: FWIW I write a TON of what I would call disposable programs that do th... (by jonnin)
How can I convert numbers to their word form?
???
Oct 25, 2018 at 3:10pm
[5 replies] Last: I think you need to look at the english again. one, two, ... is a reu... (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...
Oct 25, 2018 at 2:12pm
[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...
Oct 25, 2018 at 1:19pm
[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...
Oct 25, 2018 at 11:24am
[7 replies] Last: I did had an idea that x stays 0 at the end, but I didn`t understand h... (by defs)
How can I read in numbers and output them individually?
???
Oct 25, 2018 at 8:38am
[8 replies] Last: If you want the output in reverse order then swap lines 9 and 10. #i... (by lastchance)
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...
Oct 25, 2018 at 7:55am
[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 ...
Oct 25, 2018 at 3:29am
[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 ...
Oct 25, 2018 at 2:23am
[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 ...
Oct 25, 2018 at 1:49am
[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. #...
Oct 25, 2018 at 12:41am
[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...
Oct 24, 2018 at 11:26pm
[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...
Oct 24, 2018 at 11:16pm
[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...
Oct 24, 2018 at 9:42pm
[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...
Oct 24, 2018 at 5:05pm
[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...
Oct 24, 2018 at 2:08pm
[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 ...
Oct 24, 2018 at 1:44pm
[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...
Oct 24, 2018 at 11:16am
[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.
Registered users can post in this forum.