Beginners - September 2016 (Page 24)

Fixing errors in program calculator
 
Hello :) I had a previous assignment where it was a dog age calculator and got quite a few things wrong. I need some help in figuring out where the problem ...
[6 replies] Last: Thank you to everyone who helped me out! (by Saibachick)
While loop
 
When i enter 'n', it does not end the program. #include <iostream> #include <string> #include <algorithm> #include <ctime> using namespace std; ...
[1 reply] : line 49 you are using assignment operator '=' instead of comparision '... (by shadder)
wrong test case
 
Doing this code force challenge. I am passing three tests, I'm guessing when user enters numbers 1, 2, or 3, but I am failing the 4th test and I can't figure it...
[3 replies] Last: Like the movie inception The hulk has layers of feelings So IMO the p... (by shadder)
Completely Stumped
 
Good morning/afternoon. I am completely stumped with a programming issue. Let me be clear, I am not looking for someone to do the problem for me, however, I...
[5 replies] Last: PERFECT! Thank you. (by Ragnarok314)
Finished my first real project!
 
Hey, I've been working on this very simple math quiz over the last 2 days (only been learning c++ for 3 days now) and wanted to see if I could make it better. I...
[3 replies] Last: but like where in my code would i need (or want) to use functions? (by AidanShow13)
by mb20
undefined reference error
 
I am running my code but I am receiving the following errors: mainfile.cpp:(.text+0x13): undefined reference to `pointType::pointType()' mainfile.cpp:(....
[1 reply] : undefined reference to `pointType::pointType()' undefined reference t... (by keskiverto)
by Vaynis
Comma operator in CLI/C++
 
OK so i have been reading this book and in the "Comma operator " section (Part of the cli/c++ basics) i stumbled into this excersise: int a = 2; int b = 3; i...
[2 replies] Last: it is probably my bad(as the beginner i am ) for confusing c++/cli wit... (by Vaynis)
Comparison
 
I want to compare the memory address and pointer value of p, p + 1, q , and q + 1. I want to understant what the following values actually mean. I can't quite...
[7 replies] Last: Wow so I was just over thinking it then? Probably. Then I can just... (by jlb)
Need some help with my stack class
 
This is what I have so far in writing my class stack, in the reverse function I keep getting an error that says " no operator " " matches these operands operand...
[1 reply] : I am simply trying to make another stack to push all of the elements... (by jlb)
3D arrays
 
Hi. When i was "browsing" the beginners forum, i saw a lot of array problems. And when i wanted to help, i realised that i didn't even knew a lot of arrays at a...
[1 reply] : Think of an array like single drawer filing cabinet. Where you get t... (by Bdanielz)
by SI 20
S8
 
//1// #include <stdio.h> #include <string.h> int main() { char sir_de_caractere ; int i, j; printf("Introduceti cuvantul: "); fo...
[2 replies] Last: Its his homework, I speak that language (by masecla33)
ERROR HELP - Simple Algorithm
 
Hey! As a part of a C++ class, I've been trying to create a program that takes three numbers from a user and multiplies each by 100, and gives them the result. ...
[2 replies] Last: 1. like Omni said your code is a bit out of order. 2. You are also get... (by Bdanielz)
referencing/setting string names to player objects
 
I am using a for loop to instantiate a number of player objects. Each object is is a different player in the game, and for the user's sake, I need to be able to...
[3 replies] Last: Yes, your constructor should look something like this:[code firstline=... (by LB)
trying to make calculator idk whats wrong
 
I'm trying to make a basic calculator that does addition, subtraction, multiplication, and division. it says two things wrong: line 17-statement cannot resolve ...
[10 replies] Last: for example i did 5/3 and it gave me 1 even tho it was supposed to sa... (by dhayden)
Using If finding the lowest and the highest.
 
I can't get the Smallest and Largest to display properly. I'm only using "If" because the book only been using If statement. i got other to work properly. ...
[7 replies] Last: gentlegal, that's fine except perhaps for the product. Consider this r... (by dhayden)
by Modise
ERROR HELP
 
Write your question here. Put the code you need help with here. [/CODE { int i; for (i = 0; i <= 99; i++) { int b , a=0, sum=0; if (a < 6) ...
[3 replies] Last: here is another one same error. #include <iostream> using namespace st... (by Modise)
Keeps saying error 'else wthout a previous if'
 
I know there is an if there and I can't find any mistakes in the code (although I'm sure there is) in my second project which is a simple math quiz. Someone ple...
[16 replies] Last: ty! :D (by AidanShow13)
by SI 20
S6
 
//1 // #include<stdio.h> int main(){ char x, y; for (x = 'A'; x <= 'Z'; x++) { printf("%c ", x); } pr...
[no replies]
by SI 20
S7
 
//1// #include <stdio.h> int main() { int N, i, even_number_counter = 0, odd_number_counter = 0; printf("Introduceti numarul de elemente din vecto...
[1 reply] : Please edit your post and make sure your code is [co de]between cod... (by LB)
prb
 
#include <stdio.h> #include <stdlib.h> int main() { int n=2; int i; int j; int suma =0; int p; int s1=0; int s2=0; while (n % 2 == 0) { pri...
[4 replies] Last: If you just want somewhere to paste code, please use https://gist.gith... (by LB)
September 2016 Pages: 1... 2223242526... 34
  Archived months: [aug2016] [oct2016]

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