Beginners - December 2014 (Page 36)

i need help with SDL
 
im having a problem with getting my snake a vector on line 71 it said the no 'operator=' im tryi...
[no replies]
calling function to read in array from a file
 
I am a bit confused on what the code for reading in an array from a file is. I keep getting error me...
[5 replies] Last: You are passing "n" by value, so "n" in main won't get changed. Try th... (by JayhawkZombie)
Need help!! why am i getting uninitialized local variable?
 
#include <iostream> #include <string> using namespace std; double mean (int grades , i...
[13 replies] Last: Well I found out why, I had copied a loop I made for an arbitrary ques... (by thinker85)
Error- request for member ' ' in ' ' which is of non-class type ' '
 
I keep getting the error "error: request for member 'firstname' in 'object2', which is of non-cl...
[6 replies] Last: Okay yeah that makes sense. the prompt I was given only included the "... (by brandona15)
question about pointers
 
I have to answer some questions that does not require me to write a program. I have some of it done,...
[2 replies] Last: Thanks for clearing up my answers and the hints for the next questions... (by Endymion)
How to add columns
 
How do I go about adding columns into this code that solely has rows included? Should be 4 rows ...
[2 replies] Last: It's certainly closer to what I need than what I've got right now! Tha... (by lollipoppop)
Function Help (1,2)
 
So i posted a previous thread about mapping, I got that down. This is the background to my assignmen...
[28 replies] Last: By the way, passing i was the correct way right? Lol just want to doub... (by justinc978)
by Korcha
A little help debugging my sin(x) approximation
 
So I have written a Maclaurin series approx. for sin(x) and it works for values really close to 0 bu...
[3 replies] Last: [(-1)^n/(2n + 1)!] * (x)^(2n+1) Maybe double check your parenthesis i... (by JayhawkZombie)
how to link GD library
 
OS Ubuntu 14.04 I am trying to run a basic C program using the GD library. The include line is #in...
[1 reply] : nevermind forgot to link the name -lgd (by metulburr)
by rayna
Help with counting the number of characters in a file
 
I have this code that tells you the numbers of words in a file, number of lines, and each letter and...
[2 replies] Last: where should i put that (by rayna)
Including implementation in header file
 
I am not entirely understanding the format of a header file. Why we need to include the implementati...
[2 replies] Last: Don't need to include the implementation file at the bottom unless you... (by JayhawkZombie)
How to parse this data in c++?
 
Hello, I am doing a project where the user inputs the name of a file, (the format of the data for th...
[5 replies] Last: Okay I am going to use a debugger and see if i can figure out what is ... (by rustyrustyrusty)
Does a pure virtual function (that is defined in a derived class) have access to the private members of the base class?
 
I thought pure virtual functions have complete access to the private members of the base class, sinc...
[3 replies] Last: Having a pure virtual method just means that the derived class MUST pr... (by JayhawkZombie)
How can I accept both int and char input?
 
I have a program where the user utilizes both char and int input at anytime. Is there a way to let t...
[8 replies] Last: Without templating, I'm unsure of any way to return an arbitrary type.... (by JayhawkZombie)
by rayna
Help with counting the number of characters in a file and the percentages of the numbers used
 
I have this code that tells you the numbers of words in a file, number of lines, and each letter and...
[3 replies] Last: how do i find the total number of characters? The same way you find a... (by MiiNiPaa)
Memory Concentration Game Issues
 
I'm attempting to create a 4x4, 6x6 and 8x8 grid for my concentration game, but whenever the game co...
[3 replies] Last: OK it's starting to look better, but now I have two new questions. 1)... (by lollipoppop)
by Z feng
Need help on this Quick Sort function
 
Hello all, I know there are tons of quickSort algorithm out there already, however, I tried couple o...
[5 replies] Last: Yes, you can. (by MiiNiPaa)
inheritance
 
Hey hoping you guys can give me a push in the right direction. I can enter information up til positi...
[3 replies] Last: Check other functions, say, in name class (by MiiNiPaa)
SDL snake game I could use some help?
 
im having a hard time trying to find out how to make the snake grow after it eats the food? i will l...
[no replies]
Unable to match functions definition (1,2)
 
I have two errors that I am not sure how to fix, please let me know what I need to fix. Here are the...
[26 replies] Last: Welcome XD. (by closed account SECMoG1T)
December 2014 Pages: 1... 3435363738... 55
  Archived months: [nov2014] [jan2015]

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