Beginners - February 2009 (Page 11)

Game loop
 
Can some1 describe me how does the games main loop look like? I have a problem with AI for a simple...
[3 replies] Last: try something like this: if ( GetAsyncKeyState(VK_SPACE) ) //if... (by Bazzy)
C++ Beginners Challenge
 
The project is to make the "Hello World" program, but make it as rotten as possible. Anyone can make...
[15 replies] Last: Really nice cake! Can I eat it ? And another crappy program :D (or "h... (by Fififox)
How to make a 3d array?
 
how can I create a 3d array?can someone give me ideas?
[2 replies] Last: is it possible to use it in a priority queue?can you give me some samp... (by acedman)
by selder
getline
 
I've seen getline used with a string from a cin statement. Is it possible for me to use getline with...
[4 replies] Last: Is it a syntax thing? I'm not quite sure if I'm using the correct form... (by selder)
Some problems on Inheritance
 
Here is a code from textbook: #include<iostream> using namespace std; class Shape { public: ...
[1 reply] : 0 and 0 [line 27] are passed as i and j to the Rectangle constructor o... (by jsmith)
by wretch
const string& -- what does '&' signify?
 
class Cat : public Animal { public: Cat(const string& name) : Animal(name) { } virtual const str...
[4 replies] Last: In my world I wouldn't say "severely", but I would frown upon it. (by jsmith)
Question about static_cast
 
I would like to insert a static_cast code into my program so that when the weight of each person...
[1 reply] : Use round() instead of a cast. double round( double x ); r... (by jsmith)
by Atrus
expected `)' before ‘::’ token
 
With the below code snip: bool organism_cell::operator==(const organism_cell &O) // chec...
[3 replies] Last: organism_cell() is not declared as a const member function, so you can... (by jsmith)
minesweeper
 
Hey, I'm making my own version of minesweeper. I've made an string-array (called a) of 10 rows an...
[7 replies] Last: 1. The way you're doing it, not only the corners, but all the rim is f... (by mordekai)
by elliet
from "i hate you" to "i love you"
 
every four-letter word is supposed to be replaced by the word love. unfortunately, only the first fo...
[2 replies] Last: I think, you should have a close look on your if-else statements. For ... (by mordekai)
Classes and Objects - Getting two errors when compiling program
 
I am a distance student taking C++ for the first time (not by choice, it is a requirement for my BSc...
[4 replies] Last: Thank you!!! The Employee(string = "", double =0); is what fixed i... (by greenbluekidz)
by tcbaby
.h file
 
I'm trying to make this into a .h file and a new object, a storyWordManager object, instantiated fro...
[4 replies] Last: How to: Put code into your postings http://www.cplusplus.com/forum/... (by closed account z05DSL3A)
by Mav22
Unknown error in program.
 
Hey, I'm new to writing c++ programs and I have run into a problem. The program is supposed to take ...
[4 replies] Last: I think this thread got reposted here: if else statement question ... (by closed account z05DSL3A)
by Sathed
Function issues...
 
Here is my code: int compare(string first, string second, int c) { int l = second.length(); ...
[4 replies] Last: int compare(string first, string second, int c) { int l = second... (by kevinchkin)
by Faysal
c++ PROBLEM!
 
How can i change the window size of a program? So that its exe opens according to given window size!
[3 replies] Last: wxWidgets is a decent one and it's free as well! (by Sathed)
set get clarification
 
I am just starting object-orientated programming and this topic is giving me some problems. Can s...
[1 reply] : Generally, class definitions and method/function declarations are done... (by Zhuge)
by masiht
int main()
 
can we make any program without using int main() ??
[7 replies] Last: But the entry point has to be in global namespace (i.e. not a method o... (by helios)
.. . . .sample
 
#include <stdio.h> #include <conio.h> #include <windows.h> void box(int x1,int y1,int x2,int ...
[2 replies] Last: compiling.... compilation finished with error(s): Error: Question ... (by anders43)
by tcbaby
Trying to create health and damage gauges for my primitive game
 
I need to Create a getHealth member function at the Creature level that returns the value of m_Healt...
[no replies]
by yamaha
Maybe a stupid question
 
Maybe this is a stupid beginners's question: Inside my class I need to use a structure. This stru...
[6 replies] Last: Ok, I got it. Thank you guys for your support. (by yamaha)
February 2009 Pages: 1... 910111213... 22
  Archived months: [jan2009] [mar2009]

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