Beginners - December 2015 (Page 27)

I need help with input collection.
 
I almost have this complete but I am not sure how to change my input collection. Directions are to: You have to change your input collection to get 4 values (qu...
[no replies]
array is not multiplying values?
 
I'm using a string to get an input of between 2 and 9 integers max. I'm trying to multiply the result of each digit together. For example if I put in 245, the p...
[3 replies] Last: Oh ok just cast the pow() to an int like: int(pow(a,b)) I forgot th... (by YFGHNG)
Cannot for the life of me figure out why my program is not displaying anything to console or writing to file
 
This program seems to build perfectly fine. I've been staring at it for a while now trying to figure out why nothing is displaying. #include <iostream> ...
[1 reply] : It appears that it runs fine on the compiler on this site, but will no... (by cluelessnoob)
by suppa
Abstract class
 
I programmed a monopoly game and it all works fine, but now I need to implement classes. My tutor explained what I should do, that I should make an abstract bas...
[4 replies] Last: Lol the program is way too long, even the smallest part. Sorry, but do... (by suppa)
by nj1995
Problem with I/O program
 
When I compile and run my program after I input my file names, the names fail the if(fin.fail()) and if(fout.fail()) statements and I am unsure why this is. ...
[no replies]
While Loop is aborting when ran
 
Hello, This kinda has to do with a function I am making for a homework assignment but it is one that I'm making. I really want to figure it out but just need a ...
[6 replies] Last: Thanks for your help Shadowwolf! Thats makes sense, I was able to move... (by dubbbroc)
Assignment Assistance
 
Here's the question my instructor is asking as to code. "A valid Social Security number consists of three digits, an optional hyphen, two digits, an optional ...
[1 reply] : regex_search searches for a match in the text you give it. regex_ma... (by cire)
pointing to object within an vector
 
Hi I have the following classes: //Player.cpp #include "Piece.h" Piece* Player::addPiece (Chesspiece type) { Piece new_piece (type,this); ...
[1 reply] : If you're storing pointers to elements in a vector, then yes, if addin... (by cire)
by mancer
Help multiple errors
 
I've been stuck on this problem since forever and I really need to find the solution now T.T This is the code after I tried doing some stuff. I got 3 errors ...
[3 replies] Last: In case 3: i removed "k" from your array because you set it to in... (by malemale777)
by brad97
Program Calls The Wrong Function?
 
I am writing a code for a math game with separate functions for each of the four mathematical functions. For some reason, whenever I input D for division as my ...
[4 replies] Last: Thank you very much! I would never have noticed that (by brad97)
by GonlyG
All "Zero" output in tree height program
 
Basically, the problem is finding the tree height based on the distance to the tree and angle from view to the tree (in other words, the tricky maker made it so...
[2 replies] Last: thanks (by GonlyG)
hashing words read from a dictionary file
 
I am trying to create a hash function that calculates the hash for words that are read from a file. I am planning to put words that have the same letters in an ...
[1 reply] : Make a copy of the string, sort the letters, hash on the sorted string... (by cire)
by ebucna
overload operator >
 
I have overloaded operator > in my Date class bool operator> (Date param) {return (this->day > param.day);}; bool nextDay; I am then calling like th...
[3 replies] Last: sorry, I moved things around and the problem got fixed. thanks for yo... (by ebucna)
Easy question
 
Can't find it in my book. Please fill in the blank. For a program to be interactive you must include _________.
[1 reply] : input? (by rozick1)
by GonlyG
Incorrect output in program
 
Hello, I am a beginner c++ code writer and basically my problem was, first input gives the number of lines, each line I must count the vowels used, and "y" coun...
[6 replies] Last: thanks. You should look at my other problem about tree height, it has ... (by GonlyG)
marathon program
 
Write your question here. im new to programming. my question is my milesavg output is not getting any number what so ever i put cout statment just to see if i...
[17 replies] Last: thank you so much for the help (by warrior757)
by isaacv
Bubble sort help?
 
Hi, I've been writing a bubble sort, which works entirely and calculates the sum of numbers entered, but I have run into an issue. If I enter an "endl;" command...
[5 replies] Last: All you need to do is change for (j = 0; j < 10; j++) You want to st... (by JayhawkZombie)
Please enter your password! - problem here....
 
Hii! I have been learning C++ for the past 1 month! Just a beginner..I just thought of a new program, like its a bank and u need to enter your password and if i...
[no replies]
Heap Corruption Error
 
Hi all, I am working on a simple program using dynamic arrays. The program adds two positive integers in dynamic character arrays and stores the sum into a d...
[2 replies] Last: Yes, I've run the program through a debugger with no success in pinpoi... (by mlholder)
Need Help with "for loop"
 
I need to make a "for loop" that adds up only the odd numbers entered by the user. The even numbers would need to be ignored. The program would let the user ...
[13 replies] Last: What needs to happen is if the number 7 (which happens to be an odd nu... (by Drewstar13)
December 2015 Pages: 1... 2526272829... 43
  Archived months: [nov2015] [jan2016]

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