Beginners - October 2014 (Page 24)

Dynamic Array Error
 
I'm working on a program to practice dynamic arrays. What I'm trying to do is have the user input numbers to fill an array that will double in size when it gets...
[1 reply] : It would help if you told us what the error is and what details/error ... (by closed account 48T7M4Gy)
Windows API
 
hello, i am programming a sudoku solver with the windows api. ive created one in a dos window but now im just practicing windows api.. so my problem is i create...
[no replies]
by Sh0es
Field Not a Modifiable Lvalue.
 
So I am making a class that can be named and display its name using a char array (don't ask me why I'm not using a string), and I'm being told that name is not ...
[no replies]
by HG319
I want to keep printing menu function if user enters wrong number
 
My code works perfectly I just want to know how I can modify my code so if the user enters anything other than the numbers 1, 2, 3, or 4 the program will print ...
[6 replies] Last: You could use a switch as renthalkx97 suggested. (by megatron 0)
Assignment critique and question.
 
I wanted to let people check to see if I did anything silly or unnecessary. Also I had a question, one of the requirements is that the first three integers o...
[6 replies] Last: Haha, thank you very much shadow. (by mishappp)
Grade arrays
 
I have to make a code that finds the test means and medians of the test scores that are put in. I have also added code to sort the test grades. The user doesn...
[1 reply] : I'm a beginner so would I go about this by like cout << "How many st... (by kathay14)
overloading operators
 
Hello, Could anyone please explain me sequence by sequence about what is happening in this code? This is how much i could figure out on my own: 1) CVector typ...
[2 replies] Last: Thank you, i understand the whole code now. (by locksley)
by bender
User input into array
 
I need help on how to store user input into an array. The program needs to store between 1-50(exact value is unknown) numbers into the array. How do I set up th...
[2 replies] Last: #include <iostream> using namespace std; int main() { int size; ci... (by anup30)
C++ Lab Help
 
I was given an assignment for a computer science lab, but am very confused by the problem. Write a program that calculates the average of a stream of posi...
[1 reply] : The instructions seem clear. We're not going to write the program fo... (by AbstractionAnon)
How to tell when no data has been entered for an array?
 
I have to do a C++ project where I create an array that can take a maximum of 140 characters from the user. However, I also have a menu of multiple things I am...
[5 replies] Last: some type of error message Be more specific. The compiler tries t... (by keskiverto)
local variable problem
 
Hi i'm making a program that takes the average of 5 judges and drops the highest and lowest to give a final score. So I'm having a local variable problem with (...
[13 replies] Last: the problem is that findLowest() and findHighest() never actually get ... (by Esslercuffi)
Linked Lists question
 
Hello everyone, Could you please help with the code below?: - First, I Wonder if I badly managed the pointers below. I tried to use the destractors as b...
[3 replies] Last: Hi JasBeckC head is your starting point, your anchor. Head shows you t... (by Asperadus)
Printing out the alphabet in specific format
 
Can anyone help me print out the alphabet like this: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z EXACTLY how it looks using while and coun...
[18 replies] Last: Thank you all. The point of my assignment was to learn how to use a wh... (by azl4182)
Expression must be modifiable lvalue error.
 
I don't quite understand, why? It's on the seconds variable in the if statements. int Math(int &seconds, int &attempts, bool &firstpass) { static int TIME_P...
[1 reply] : = assignment == equal to firstpass == true instead of fir... (by shadowCODE)
Classes/Constructors
 
How do I set the name of the classGrades object intro to CSC126? Classes/Constructors //Fill in the missing parts of this code #include<iostream>...
[1 reply] : You have this line in your code. intermediate.setNumStudents(4); Its... (by shadowCODE)
Arrays problem
 
Write a C++ Program, ask user to enter 10 interger values. Display its data graphically by plotting each numeric value as a bar of asterisks (*) as shown in the...
[3 replies] Last: Bit of problem, #include<iostream> #include<iomanip> using namespace... (by Paragon)
Arrays issue involving mean and median
 
The user is supposed to be able to enter the student's grades, and have the program output the median and mean. For some reason mine won't run and I keep gettin...
[1 reply] : At first glance, the error is telling you that you've tried to access ... (by TheKingOfTyrants)
Car Insurance Code issue
 
I'm Trying to get the program to recognize the difference between Basic premium and Premium. I don't know if my If else statements are correct or am I missing s...
[2 replies] Last: Please enter BP for Basic policy or P for Premium : Please Enter Dr... (by happy11)
by vxk
Fibonacci number
 
I wrote the following program to check whether a number lies in the series of fibonacci number(s), A number "x" is said to be in the series if it satisfies on...
[11 replies] Last: notice that, long long int x = 45857711578620641784; //not ok long lo... (by anup30)
Problem with enum in class
 
Hello everyone :) . I am doing a class, which will let me to draw signs to my game screen, to help testing. The main thing is, that I am doing first time it wit...
[4 replies] Last: You can keep the definitions inside the header but outside the class i... (by Renthalkx97)
October 2014 Pages: 1... 2223242526... 70
  Archived months: [sep2014] [nov2014]

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