Beginners - December 2015 (Page 35)

by rigged
blackjack game
 
Hello, so this is a last minute call for help. Now I am pretty much a beginner, been doing programming and c++ in general for not full 2 months. I have created...
[1 reply] : Heres the second bit :/ int main() { int playerTotalPts, compTotalP... (by rigged)
please help me to compile this
 
I dont know why this wont compile.. please help #include <iostream> using namespace std; int main () { int starting_year; int population; int temperatu...
[1 reply] : > I dont know why this wont compile.. please help You have a period a... (by JLBorges)
Problem with getline
 
My code seems alright to me. Then when I run it, it doesnt let me get input for the title for movie 2. It skips straight to director. #include <iostream> #in...
[1 reply] : PLEASE learn to use code tags so your code is easier to read. (You can... (by closed account E0p9LyTq)
Help involving arrays and strings (1,2)
 
Hello. I was wondering if perhaps some assistance could be given to me. The assignment is as follows: Write a program that allows the user to enter the la...
[25 replies] Last: A nickel's worth of free advice: The error messages you posted were q... (by closed account E0p9LyTq)
I am getting a segmentation fault, why?
 
#include <fstream> #include <iostream> #include <vector> #include "printFunctions.h" using namespace std; //You will need to write these functions. ...
[1 reply] : In function calcAverages what is the value of averages.size() ? B... (by Chervil)
Finding the sum of individual columns in matrix
 
I need to write a program that prints the sum of each individual column in a matrix. My code currently prints out compounded sum of the columns. #include...
[4 replies] Last: Oh okay that makes sense. Thanks! (by Robert1234)
by Dofzky
Input file deleted whenever I run the program
 
I am trying to make a program that calls an input and output function to a file. My goal is that a user could change the integers stored in the stores array, th...
[4 replies] Last: That worked great, thanks for the help. (by Dofzky)
I need help with arrays
 
Q1. What is a character array? Q2. How do we add another element in an array? For example; int num=0; int array ={2,4,5,7} cin>>num // lets suppose num...
[1 reply] : I suggest you first of all go through these tutorial pages: http://www... (by Chervil)
How to write a recursive function that works it's way through every element in an array?
 
Hello, so I have this array: Now I have to work my way through this array, by increments of 1 I have no clue how to do this, I've tried various solutions and t...
[6 replies] Last: oh...okay! I see! I got it working, thank you! (by vaultDweller)
Array/Function issues... Things are going horribly wrong kind of
 
So Information is feeding great through my first function... Way to go first function! then I get a thread break point when the program goes to run through func...
[2 replies] Last: jlb!! Thanks I thought I was going crazy... This is why it's great to ... (by StoriesOfRen)
Prime Number Counter
 
I need this to print out the amount of prime numbers that the user inputs, however my code stops to soon. Spent too long trying to find my errors and am throwi...
[1 reply] : Two problems: 1) Your loop at 19 is counting both prime and non-prime... (by AbstractionAnon)
array math
 
I'm trying to make this function add 4 to the array until the array hits the flag then the adding stops. I'm so close, yet so far.. I have tried so many diffe...
[5 replies] Last: I'm still trying ... my head That's the spirit! Cheers :)... (by closed account 48T7M4Gy)
How do i make Char without constant value ?
 
hello how do i make char without constant value n will be typed by user from this #define GRID_WIDTH 11 char grid[GRID_WIDTH * GRID_WIDTH]; void Rese...
[2 replies] Last: thanks i got it know (by totalnooob)
Pointer of an array in recursive function
 
I've made queens problem , it works if I declare the array in which I calculate the solution global, but if I try to dynamically allocate it and pass it to the ...
[2 replies] Last: thanks, seems that was the problem (by closed account E3h7X9L8)
How do I go about reversing the numbers in an array to what they where imputed
 
I am a bit stuck on how to approach reversing the order of an array so that for example i enter the numbers 1 2 3 4 5 into the array and they are outputted lik...
[3 replies] Last: BTW, your variable declarations is a bug lurking to strike: int big,... (by closed account E0p9LyTq)
Search Function with Two String Vectors
 
Im trying to create a searchable database, where it takes in 5 ingredients from the user as a string vector, then compares it to recipes from a text file. The t...
[2 replies] Last: _ # *Cheese-y Ramen* Prep Time: 5 minutes Cook Time: 20 minutes Tota... (by oconnora2)
C++ Structures
 
Sorry this is so long but I'm really stuck. Some parts of my code are not working and I don't know why. There is also a requirement in the second part that I am...
[2 replies] Last: Lines 50-56: Style issue. Keep your structure declarations together ... (by AbstractionAnon)
pass array w pointer & "new operator" help plz!
 
K, here's my assignment: "Write a function named reverse that accepts an int array and the array's size as arguments. The function should create a copy of t...
[2 replies] Last: 1. I'm having a hard time understanding how to pass the array from ma... (by cire)
graphing
 
Hi Everyone, Let's say I have coordinates for a graph, (1, 2), (3,2), (4,5) .. etc I want a function that graph those coordinates, are there any? I'...
[no replies]
weird Error error in compiler???? ANYONE know
 
error within compiler- What does this mean, how do i fix this? #include<iostream>//error is here line 1
[3 replies] Last: What compiler? Are you sure you're pointing at the correct iostream ... (by AbstractionAnon)
December 2015 Pages: 1... 3334353637... 43
  Archived months: [nov2015] [jan2016]

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