Beginners - June 2012 (Page 22)

Dynamic memory allocation;
 
Hi forum, I'm making a space invaders clone with SDL, as part of my learning. I want the player to be able to shoot a bullet. I have a bullet class. In short, ...
[7 replies] Last: Hmmm. I must look at the source of other programs and read some more b... (by camelCase69)
Evening everyone, need help and suggestion for creating a program
 
Hello everyone, I'm new to programming and don't really know how everything works so far, so please don't laugh at me. Well. I'm trying to create a program that...
[10 replies] Last: Got it, thank you guys (by NewInTown)
c++ standard library???
 
hi Is it reasonable to expect the c++ standard library to be specificity/optimised for closed embedded systems. For example for the Ninteboxstation console o...
[1 reply] : Yes. You can expect an optimised release build of the C and C++ runti... (by kbw)
by sanu
How to Create a own Vector Class
 
Hi Everyone!! I am trying to write my own template vector class but I don't know exactly how it works.. I need only some basic functions to store the el...
[no replies]
terminate called throwing an exceptionAbort trap: 6
 
terminate called throwing an exceptionAbort trap: 6 I am having difficulty finding a clear explanation of what this error is. This is making it difficu...
[8 replies] Last: I found the problem. It was indeed in line 3 and line 27. After two co... (by vckngs7)
void
 
Hi In almost all the books about C and C++, void is introduced as a data type, though comparitively it doesn't seem to be a data type like int and double ...
[7 replies] Last: I think it is a matter of classification of topics to include void a... (by Khosravib)
Input Unknow Variable
 
I need to be able to input any of 118 pre-programed variables or any number into a program, and I don't know how many inputs there are going to be. I need umber...
[1 reply] : The simplest way is via a sentinal: int count = 0; int input; int... (by Lowest0ne)
Sprite collision method
 
Hello, I am rather new to c++ (I've done Java previously) and I'm working on trying to make a collision method. This is what I have so far: bool Collision(bool...
[5 replies] Last: Chaining together a million && and || conditions is ugly. Look at how... (by Disch)
by digrev
why need constuctors
 
hi everybody my question is simple why do we use them For examle there are two sample below arent they same thing #include <cstdlib> #include <iostream> ...
[4 replies] Last: > why need constuctors? Because classes have invariants. The values... (by JLBorges)
how do i simplify this
 
the program reads from memory each variable has 4 bytes and it is stored in a dummy variable, then moved to a matrix. i know it is possible to just store it ...
[no replies]
How to manually input an EOT ?
 
Hi all, I am writing a function to be used from the command line. So I have a loop on cin. What condition shall I use to break the loop ? Or what escapre cha...
[2 replies] Last: Thanks ne555, I am on Linux. I found already Ctrl-D that works in the... (by lalebarde)
Menu Class v1 and v2 (1,2)
 
Here is the Current Release of my Menu Class (Feel free to reuse, share, etc.): An example to demonstrate the different features of the Menu class Menu_Exa...
[21 replies] Last: 2.0 has been added to the main page. I'm still working on getting my Z... (by Volatile Pulse)
by Thumb
Need beginner's projects
 
Hello, I am new to this forum and C++.I am self taught. My goal is to become proficient and become an indie game developer. I have already finished my first sim...
[2 replies] Last: Ok. A Blackjack game is simple enough. Thanks! (by Thumb)
Help :( Newbie
 
Hi everyone. I want to be a game programmer but... Idk how this Microsft Visual Studio 2010 works. I got a book (Computing concepts with C++ essentials) that my...
[4 replies] Last: Hey there, when you get a good handle on c++ there is a really good se... (by colourfulbananas)
no match for 'operator>>' in 'std :: cout >> "Nice to meet you."'
 
I have an extremely simple code that I did, and that ^ (up there) error. my code goes like this: #include <iostream> using namespace std; int main() ...
[4 replies] Last: Why not just use strings? (by ResidentBiscuit)
Problem with getline()
 
I am working on a program that counts the votes of N candidates and print the winner and votes received. Here is the input format: The input begins with a p...
[2 replies] Last: Sir, here's the code for the function. void process(int N, string ca... (by galiwocky)
Do math
 
Thanks to coder 777 my code "works", it just doesn't do what I was hoping it would. I want it to calculate the weight of a compound (the reason for the first 20...
[2 replies] Last: Oh yeah thanks. (by Perry Turner)
power point
 
I wrote a little game where it picks a number, and you have to guess it, and I put together a single slide in power point with animations that says "you win!". ...
[2 replies] Last: Whatever you would type into a command prompt to make Powerpoint show ... (by Moschops)
by hrva07
delete objects
 
Hi. I monitor memory usage with windows task manager. After statement: VisualShape* object = new BlockArrive(); memory usage by this process raises ...
[9 replies] Last: Maybe class VisualShape has data that it doesn't free? (by coder777)
How to initialize max variable
 
I have to make a program that stores the biggest sum you can get from a vector's integer elements. So how do I initialize max? If it were about finding the m...
[1 reply] : If you're using a modern C++ compiler and not Borland C, you could use... (by Catfish2)
June 2012 Pages: 1... 2021222324... 51
  Archived months: [may2012] [jul2012]

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