Beginners - October 2014 (Page 51)

Array homework.
 
Hi guys. I got a question from my homework i dont understand. My professor gave us the answers but I dont understand why they are the answers. 1) Why is a val...
[3 replies] Last: a. just like x , arr is a new variable name for ArrType which is a... (by xenovia12)
Arrays
 
Hi guys, Im having issues with my array program. I would like to get the largest and smallest numbers in my array but only get "10, 10,". Any ideas? #incl...
[3 replies] Last: Thanks guys i got it running. Here is the finished product. I made it ... (by Rashad2)
by csharp
help in writing a class
 
Hello, I am writing class works with three colors intensity Red Green Blue the difficulty starts here mixture’s job is to create, and return by value, a Co...
[6 replies] Last: please need help to finish this assignment I having problem rounding t... (by csharp)
by jbing
Rewritining a code to do the same thing
 
Below is my code and I want to change it up but for it to function the same way. #include <vector> #include <iostream> #include <cstdlib> #include <fstrea...
[3 replies] Last: #include <vector> #include <iostream> #include <cstdlib> #include <fs... (by closed account 48T7M4Gy)
using peek while prcessing an array?
 
So im writing an encryption program for my class in school and i want to use the peek function to look for a space and if it is a space put the previous charact...
[2 replies] Last: By default, formatted input of char skips white space. #include <i... (by JLBorges)
While loop output issue
 
I'm having an issue to where the program will only say the first two numbers are prime. If somebody could point me in the right direction I would appreciate it....
[2 replies] Last: It worked. Thank you! (by OrDidHe)
Help with CD/DVD program
 
I'm trying to figure out what is wrong and how to fix it. This is what I have so far. Here is the question for the problem. If you can help me fix it thank you....
[1 reply] : Since actorName and charName is public, I think you don't need an acce... (by LendraDwi)
Inputing variables from main file into function file
 
I'm trying to get a problem to work. I simplified it to the sum of 2 numbers so that maybe it'd be easy to figure out. I want to create a class, functions, but ...
[6 replies] Last: Thanks! (by daytrading)
Overloading paramenters
 
I have to overload parameters and I started with the "<" parameter to compare two classes together. I have this as my code but it keeps saying that the function...
[5 replies] Last: http://www.learncpp.com/cpp-tutorial/96-overloading-operators-using-me... (by closed account 48T7M4Gy)
Keep count of times an If statement is used
 
I need to figure out how to keep track of how many prime numbers there were in the code written below. I'm kind of lost on how to do this so any help would be ...
[2 replies] Last: That worked. Thank you! However, I just realized I have an issue with... (by OrDidHe)
Please help me about my mistakes?
 
I want to progress step by step. Would you please guide me about my code below? I want to get acc=-10*t values between t=0 and t=1 with step size 0.001 ...
[5 replies] Last: Sorry for the late reply, I compiled it and it starts with 0 in my com... (by rmxhaha)
Out of scope
 
Now beginning on my first project that i actually want to do. And i instantly hit a road block and cant think of solutions because when i try to construct class...
[3 replies] Last: Very happy to help :) (by megatron 0)
by Lenz
Tic Tac Toe Problem with Class Function
 
So I'm working on setting up this Tic Tac Toe program Main #include <iostream> #include "tictactoe.h" using namespace std; int main() { ticTacToe TTT; ...
[3 replies] Last: Well undefinef ref myabe on yah includes whatever am not sure coz it w... (by closed account SECMoG1T)
Error reading from file?
 
Hey guys I need some help with a problem.. I'm trying to read from a simple txt file and it says I'm missing dll files and the txt file contents doesn't display...
[3 replies] Last: Thanks so much usandfriends! (by Sanction)
by BB2921
Integer arithmetic
 
Okay I'm having a simple math problem with my integers, I'm not sure where but I'm losing points of precision. I'm suppose to input 7,3,4,5 and get 3 for the lo...
[2 replies] Last: Not the "arithmetic". Yes, integer division does "chop off" the remai... (by keskiverto)
by Nezar
invalid use of non-static data member
 
Hey there, So far I've found out that one can't initialize a non-static data member on declaration in a class but i need to do that because i should use that d...
[4 replies] Last: It worked !! Thanks :) (by Nezar)
C++ Beginner Needs Help Fast with Program!
 
Write your question here. Hello everyone, I'm new to C++ and this forum. I really need some help getting this code to work, but its not working the way I want ...
[1 reply] : You're pretty close! I won't give the full code because that won't he... (by dhayden)
need help understanding
 
So I'm given an assignment. The question is: Write a recursive function to compute the greatest common divisor (gcd) of two integers. The gcd of two integers i...
[2 replies] Last: and yes, the second call creates a new pair of mick & keith variables ... (by dhayden)
help me how to fix the problem of my code by using loop in c++
 
use the loop construct to write a program for the users to guess a secret character, which is k, (between lower case letter ‘a’ and ‘z’) stored inside ...
[3 replies] Last: this is my new code, but it does not work well. please help me fix it,... (by tinytimes)
by noob88
New to c++ need minor help with code
 
Can some one point out what I should do to if two products have the same price then the former one is more expensive #include <iostream> #include <stri...
[3 replies] Last: #include <algorithm> #include <iostream> #include <vector> using name... (by rsouthee)
October 2014 Pages: 1... 4950515253... 70
  Archived months: [sep2014] [nov2014]

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