Beginners (Page 62)

by paligq
Generating random numbers
 
I keep getting invalid operands to binary expression ('double' and 'double'). I tried to solve it m...
[3 replies] Last: Thank you guys both for your help it helped me solve it. (by paligq)
Can't seem to understand this array.
 
I need to create a function call convertToDecimal. This will then take an int array { 3, 2, 4 } and ...
[3 replies] Last: Just a hint for(int i=0;i<5:i++){ num=pow(10,(i-1)) } Now you... (by giblit)
undefined reference error in class
 
I'm trying to take the program slow aka building it slow so this is what I have so far. I receive an...
[1 reply] : Update to code, realized I missing constructors. Now the issue lies in... (by akrutke)
arrays in battleship game. help.
 
I can't for the life of me figure out these damn multi-dimensional arrays. I can't figure out what I...
[1 reply] : I'm really wondering if this code will compile. You should declare you... (by tcs)
Comparing 2 Character Arrays
 
Hi, this is my first post here so I hope I include everything I need to. The purpose of this progr...
[3 replies] Last: Wow, thank you both so much. That was such an easy solution I just cou... (by helenkr)
What purpose does a class access specification have?
 
I have a program that has a "derived" class that inherits the public members of a "base" class. But ...
[1 reply] : See http://www.tutorialspoint.com/cplusplus/cpp_inheritance.htm clas... (by keskiverto)
Vector subscript out of range error
 
Why am i getting this error message. for (int i = 0; i < a.size(); i++){ if (a == y) ...
[1 reply] : What if that is preceeded by: int y { 42 }; vector<int> a { y }; ---... (by keskiverto)
Create a file containing the following car numbers, number of miles driven, and number of gallons of gas used by each car
 
I am having a trouble with this question when it comes to loop a) Create a file containing the fo...
[5 replies] Last: For average miles per gallon you just divide miles/gallon. For the tot... (by danghotties)
by bs319
tic tac toe game, check is board is full and is position is taken
 
I have a beginner tic tac toe program to write. For this assignment we do not need to know who the w...
[3 replies] Last: Can you repost your code? (by PCrumley48)
Delete more than one record from .txt file
 
So i get the concept of how to do this but i'm just not doing it right. I have to ask the user if t...
[2 replies] Last: Ahh, i see. But i cant put it == to Student(id, firstName, lastName,... (by ezmesori)
getline function
 
I'm having issues using the getline function to read words from an input file into a string. I will ...
[2 replies] Last: Thank you, I tried to establish a string array like this, and I'm gett... (by JoJodoggy1)
finding least and greatest number
 
Okay so I haven't started writing the code yet but can I please have a hint on how to write a progra...
[2 replies] Last: An indirect hint: http://www.cplusplus.com/reference/algorithm/minmax_... (by keskiverto)
Calculating incorrectly- HELP please
 
MY program is running incorrectly, it will not calculate the correct salary with a 10% raise, can so...
[6 replies] Last: got it, thanks! (by melgunn6)
Pointers with Images Help
 
I get a memory access violation when I run the below code. void createNewImage(int width, int height...
[8 replies] Last: You should be using standard containers for that. My guess is you p... (by kbw)
Can someone please help me write this program
 
Suppose a large group of students are taking activity buses for a field trip. Each bus can sit 24 p...
[3 replies] Last: http://www.cplusplus.com/reference/cmath/ceil/ (by keskiverto)
Sum of Digits in a String
 
The instructions: Write a program that asks the user to enter a series of single digit numbers with...
[2 replies] Last: As tcs mentioned it's a char. To convert simply subtract '0' (by giblit)
Multiple inheritance. Ambiguous access errors
 
Hello, I have to implement multiple inheritance. But i met these errors: ambiguous access of 'a' and...
[2 replies] Last: And favour #include <iostream> over #include "iostream" ... (by JLBorges)
hangman game help !
 
guys i have made a hangman game and its working well! the problem is that when i repeat a letter th...
[no replies]
Can i use = between class instances?
 
I need to change a class instance to another instance of the same class. I'm also using SDL; Here'...
[1 reply] : You can do so! See http://www.cplusplus.com/articles/y8hv0pDG/ for how... (by tcs)
Need help with return functions
 
Hey guys. I have a programming class that I take once a week at my college. I had to miss last weeks...
[16 replies] Last: thank you! You're great! (by melgunn6)
Pages: 1... 6061626364... 107
  Archived months: [oct2014]

Cannot post in this page. To post a new message, go to the first page.