Beginners (Page 68)

Help with SDL sprite animation using SDL_Event
 
What I'm trying to do is have a function that returns the correct animation based on the key input o...
[5 replies] Last: Don't call the cGameLoop destructor explicitly. It will be called auto... (by Peter87)
What is the difference between enum and enum class?
 
From my understanding, enum declares a bunch of identifiers with an internal integer value starting ...
[3 replies] Last: Because it is strongly typed. Even though it has an internal type, rem... (by NT3)
changing private reference through external function?
 
Hey guys, quick question. How would I be able to change a private variable from one class in an exte...
[3 replies] Last: Thanks guys, I realize this question has answers much simpler than I a... (by bryan177mcsc)
Need help with plinko
 
I'm supposed to make a plinko simulator for my class. I've been working on it, but for some reason t...
[1 reply] : Lines 49, 52, 56 and 59 all use assignment in an if condition. Is tha... (by cire)
char sentinel value in a switch structure!
 
Since this is an ongoing project, I am only going to post the beginning of my code. I have a switch ...
[1 reply] : I'm not fully sure of what exact error that you are getting, but the i... (by Keene)
small problem with finding equation of line when user enters negative points
 
I created a program which calculates the equation of a line for the two points that the user inputs ...
[5 replies] Last: the reason why i declared the character punct is becasue my professor... (by kemort)
by BigPun
I want to set std::cin to the function value
 
I want to streamline my code by having the user's input be = to the value of the function's paramete...
[11 replies] Last: Oh wow! I didn't know that JL. Thank you so much. That's exactly what ... (by BigPun)
Capitalizing first letter in string array
 
I'm writing this code and I don't know how to capitalize the first letter of each string in the arra...
[2 replies] Last: Thank you, I really appreciate it. (by Juan3273)
Attempting to write functions, getting errors
 
Hi Im trying to write a program where I write and use my own functions to calculate time in seconds....
[1 reply] : int calcSec(int hr1, int min1, int sec1) { int hour = hr1 * 3600;// ... (by kemort)
Really don't get this function thing
 
Yeah, this program doesn't work like its supposed to. Basically, its required to have 4 functions...
[4 replies] Last: You are a life saver. Perfect, that's exactly what it was. They turn g... (by Culbrelai)
Ofstream is not making an output file (1,2)
 
Hello everyone, I'm new to the forum world as I have generally in the past just scrolled through ...
[21 replies] Last: Ok I tried something today where I replaced the code in the solution t... (by RiLee92)
error LNK2019 and LNK1120
 
I am getting these two errors: error LNK2019: unresolved external symbol "public: class Store __t...
[3 replies] Last: You're welcome. You should also read the tutorials on this site. There... (by giblit)
Compiler error ISO C++ forbids initialization
 
The compiler is giving me an error: iso c++ forbids initialization of member 'raceFinish'. Is there ...
[2 replies] Last: line 48 is the problem. you can only initialize a data member from... (by shadowCODE)
by JJRR26
The Sieve of Eratosthenes Algorithm
 
Hello, The algorithm consist in that the user give a number (n) and the program have to find the ...
[15 replies] Last: @ JJRR26, as i mentioned earlier you cannot use any random number algo... (by anup30)
help with assignemnt plz
 
how would i print a upside down right triangle formed with "*"? The number of rows in the triangle w...
[3 replies] Last: add if((a-b)==d){ cout<< '\n'; continue;} (by anup30)
Arrays with random numbers and looping
 
I'm having a problem with this code I wrote. Basically it is supposed to roll two dice 36 times and ...
[5 replies] Last: I meant where to put sum=0; but as Keene said in the first comment it ... (by Juan3273)
by fritzy
cant find c++ file
 
can you pls help me. i made a program in our class and after saving it the only files that i saw ...
[no replies]
Function arguments, skip and use defaults
 
I am wondering how to make a function where when you skip an argument, it will automatically use its...
[6 replies] Last: How about this: class Store { std::set<std::string> products; publi... (by keskiverto)
Using #define and grabbing the information with a certain input
 
With what I have so far, how would I code as to ask the user to input the the name of an item and ou...
[7 replies] Last: Well, you need to stick that all that in a valid place. Start with put... (by ResidentBiscuit)
I am looking for help with openGL.
 
I want to find a little more advanced tutorials for openGL. I have done the basics but those are the...
[3 replies] Last: Best tutorials out there on the subject I would say are these http://w... (by Z e r e o)
Pages: 1... 6667686970... 72
  Archived months: [sep2014]

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