Beginners - August 2011 (Page 16)

Game engine design
 
Hi, I just started getting into game programming (read through the lazy foo's tutorial up to multithreading) and I'm a little stumped. I'm trying to make a bas...
[6 replies] Last: thanks shacktar, I completely forgot about quad trees, that's exactly ... (by rorozero)
Converting a string from getline() to an int
 
Hi! Me and my friends are quite new in programming but we have decided to increase them by making a game project. We have gotten up to the point where we ...
[3 replies] Last: Works like a charm, thank you. PS: Didn't see that post when I searche... (by Jonas Wingren)
by wasabi
str.substr(5).c_str() error
 
I've got a pretty odd error in this code: const char* cstr = str.substr(5).c_str(); Where str is an std::string . If I run that, cstr == "" . However, if I...
[4 replies] Last: Ah, thanks. It's pretty obvious once you think about it, but it hadn't... (by wasabi)
Scope of Functions
 
I've been studying functions for a while and have come across a big problem... Consider the following program: #include <conio.h> #include <iostream> usin...
[2 replies] Last: The point of prototyping a function or class is so that the compiler k... (by ascii)
Template Default Arguements
 
// How to pass default arguments to function templates. ? #include <iostream> using namespace std; // template<typename A=int,typename B> //Code Produces ...
[4 replies] Last: Thanks, your fix works for me. (by Vikram Narayan)
Getting input for char array with spaces
 
I did a quick search and didn't find this question on the forums. If it's already been asked and you have the link, could you please post it? Thanks in advanced...
[1 reply] : Consider using noskipws (http://www.cplusplus.com/reference/iostream/m... (by webJose)
New to C++ want to try it out
 
Im new to C++ and want to see what I can do with it. My main goal is to learn to write programs, mostly for running. I would like to make a small program that ...
[1 reply] : Do you know any other languages? If this is going to be the first time... (by Liuqahs15)
First chance exception
 
Hi, I haven't programmed in years and I'm trying to create a simple program for the school I work in that will change a file extension when the files are droppe...
[5 replies] Last: Technically the language is C++/CLI . The project templates under CL... (by closed account 1vRz3TCk)
some qustion in classes (1,2)
 
hello, i have some programes and i want to correct them to work fine i can only modfiy the code within the the line // Write your code below first progr...
[27 replies] Last: i see, becuase i don't know virtual yet and now i read about it thank ... (by empror9)
Problem with private data.
 
Hello, When I tried to write simple OOP program with Qt, I got an error and actually I don't know how to resolve it. I wrote a simple class called Dispa...
[2 replies] Last: That was it, thanks :) (by piotrekd)
How to change string into array for get file? thanks (:
 
Here is my code, i am trying to get file and read it as array so i can make my thing move in the map. Please help me if you know how to thanks alot (: #inclu...
[1 reply] : Please take a look at this example http://www.cplusplus.com/referen... (by gaorozcoo)
So I'm really confused about headers, implementations, and #include
 
I still don't get all that, mentioned in the thread title. Right now I'm using the Code::Blocks IDE, and it's getting me really confused about headers, impl...
[2 replies] Last: Put class definitions in header files. Put inline function definitions... (by Catfish)
Class problems
 
#include <iostream> using namespace std; class Person { public: //constructor always have same name as class Person(); //constructor with...
[8 replies] Last: shacktar, thanks, that works fine for me =) (by deathmoon)
Pyramid Numbers
 
Hello all, one of my task is: 1.5 Modify the program so that the program will output the numbers below: 1 12 123 1234 12345 123456 1234567 ...
[2 replies] Last: This should be simple program :P void p(int x) { int i = 0; while(i... (by qwerber)
Solution, txt document work? (That is how it works). C + +, how to achieve?
 
See some documents have their own extension, I was very confused, how these extensions are real. For example: . Txt document How these extensions are to be i...
[2 replies] Last: As hamsterman says, the extension is just used by the OS to figure out... (by Zhuge)
how to create convertable variables?
 
I dont know how to make my program to write 1gold and 0 silver when I input 1000 value of silver coins? Help me please ! //Gold and silver! #include <iostr...
[2 replies] Last: You have to assign the values yourself. For example, after reading the... (by Zhuge)
by zander
code blocks 10.5
 
i just finished the tut on this site and am now trying to build a game but the smfl keeps giving me errors when i try to set it up on code blocks
[2 replies] Last: Thsnks ill try its giving me hell to install sfml (by zander)
Variable trouble
 
Hey i recently wrote a program using variables. The program works fine but when compile nd run the program the variable always comes out as "4370436". Here is t...
[1 reply] : hello Dan Why is the variable not Dan??! Because you're trying... (by shacktar)
Whats wrong with this?
 
Hey I just started learning C++ today and am already encountering problems. I recently wrote this program: #include <iostream> #include <cmath> int main(...
[2 replies] Last: haha thanks cant believe i didnt see that -.- lol thanks :) (by BlackCr0w1)
by tarapg
abstract ans interface
 
why do we need to extend some classes and what is the purpose of doing so ,,,,also why we need to implement some classes like class A implements B.
[3 replies] Last: Basically Polymorphism allows us to use the same piece of code in many... (by TheMassiveChipmunk)
August 2011 Pages: 1... 1415161718... 39
  Archived months: [jul2011] [sep2011]

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