General C++ Programming - May 2012 (Page 7)

How to make a game engine
 
I want to make a game engine by myself. And yes I know how long it could take but I want to get more in depth into programming and see what actually makes the g...
[1 reply] : There is no clear definition of what a game engine consists of, but it... (by Athar)
unresolved external symbol
 
I have written a code and there is an error witch I could not fix. The code: triangle.h #include <iostream> using namespace std; template<type...
[4 replies] Last: Yes @ Framework. I was just trying to keep my response simple =P (by Disch)
random dice roll
 
Hi, can someone look at this code and tell me if it matches the requirements. I need to write this program which simulates a game where a player throws 5 dice ...
[2 replies] Last: Looks ok to me. You may want to add const to the getValue() funct... (by JLBorges)
Delete from binary tree
 
Hi, I was trying to hands on binary tree. I was able to successfully create and print the binary.But when I trying to delete node than it is going to infinite l...
[3 replies] Last: You need to be able to link them, so don't stop where you find the dat... (by ne555)
Your vectror::push_back() crashes....
 
have you ever experienced program crashes with push_back() function? how you solved it? do you know why it happened or when it can happen. now in my program ...
[14 replies] Last: Yeah, the problem is not with std::vector but in how you use it. (by Peter87)
C++ Index Values
 
I'm trying to figure out where I messed up in the valid index values. When it compiles, it accepts 1-9 except for 9. I thought I went through all the index ch...
[5 replies] Last: Use code tags and indent the source code, thanks. (by closed account 3TXyhbRD)
Is it a concept or just my VC compiler?
 
Hi, During developing a few classes for a product, I came across a weird error compiler showed. So I created a small c++ prototype to check it out. pleas...
[7 replies] Last: > Why this concept itself? Or what may be reasons behind this concept?... (by JLBorges)
by rian
C++ Design pattern
 
Hi Guys, I am working on a task to write a data extractor from a database to a flat delimited file. The trick is that the output format although is fixed (...
[6 replies] Last: Either the strategy pattern http://sourcemaking.com/design_patterns/st... (by JLBorges)
time function
 
how can i make a date entered the date that time uses instead of jan 1 1970? please i need this for a class project!
[1 reply] : http://en.cppreference.com/w/cpp/chrono/c/mktime (by JLBorges)
Count Vowel C++
 
// =============== bool isVowel( char ); // ============ int main( ) { int vowel=0,i; char text; cout << "Enter a sentences:...
[13 replies] Last: For your flowchart: #include "stdafx.h" #include <iostream> using na... (by crystalgem)
Switching from C::B to NetBeans and STL is gone
 
I was recently wooed by NetBeans' text editor so I tried transitioning my project. Using the same code and a fresh MinGW installation, I tried to compile and wa...
[no replies]
Buffers or Protocol Buffers
 
I am confused. As I self-study c++ I come across "streams" , "streamstreams" , "buffers" , "protocol buffers". If I just load a data file that has alphas, digi...
[2 replies] Last: Thanks, that helped. (by therry1)
Vector Association
 
I am curious as to how I can assign a pre-determined vector (of size 3) to another variable. This is just a very small piece of the code (I do not want to at...
[2 replies] Last: The first one will do just fine, and it worked! And I'm sure that that... (by Justin Sharp)
Must read C++ book list
 
This link shows some C++ books we must read. http://pixelstech.net/article/index.php?id=1337796210. Do you have any suggestions about what we should read?
[1 reply] : Decent list. Here's another one, peer-reviewed by Stackoverflow users:... (by Cubbi)
Placement in unordered trees??
 
Hi, as the title says, i want to write a recursive function that implements a full or quite full tree by inserting one int at a time.. this is the classes that...
[no replies]
Reading files - varying offset from seekg
 
Hello everyone, I'm trying to do some very simple logic to read numbers from a file. The numbers are separated by a line break. For that purpose I thought...
[11 replies] Last: This is why I wish you had provided more of your code. The most you g... (by doug4)
by Qqite
Can not compile Boost libraries with /MT :(
 
So I've compiled boost with this command: bjam toolset=msvc-10.0 variant=debug,release threading=multi link=static And it works fine with /MD but when I cha...
[7 replies] Last: @Yarlini Download the latest version of boost libraries. Navigate to ... (by Qqite)
Trouble with structures
 
Lately Ive been modifying a Wavefront Obj model loader to use textures and Im modifying the "Face" structure to incorporate the texture coordinates into the fac...
[6 replies] Last: *EDIT* still not working (by TheRocketRocketMan)
double linked list
 
I found 'double linked list' with using 'class' but... can i successfully compile program without using 'class'? If possible, can you show me some examples?
[3 replies] Last: Define a node with a structure then create the list that retains a poi... (by closed account 3TXyhbRD)
"Fif" game in C++ involving alpha-beta-pruining
 
Fif Game: 9 squares labeled 1-9. I'm taking turns against the computer to place an X or O on each of the 9 squares. The first to get a sum of 15 with atleast 3 ...
[1 reply] : You're never checking BEST_MOVES , since arrays start at zero. // th... (by whitenite1)
May 2012 Pages: 1... 56789... 41
  Archived months: [apr2012] [jun2012]

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