General C++ Programming - April 2011 (Page 6)

Queue Of Functions.
 
Hello all, I'm new to the forums, though I'm not new to the language. I have a fairly simple questio...
[9 replies] Last: Yes, running hundreds of threads in any environment would slow the sys... (by Computergeek01)
initialize variable as global
 
Hello everybody. I try to handle a matrix in my programm. I still reached to declare this matrix a...
[3 replies] Last: vector<vector<double> > B; Edit: too late again :| (by Caligulaminus)
trouble with static
 
Hi, i have problem with code in my Master's degree work. I have class A and class B. In class C ...
[3 replies] Last: i have another problem. data in B::i is changing by itself. at init i... (by Eskalante)
Vectors, DirectX10, and Buffers
 
I'm trying to write a simple geometry loader that loads data from a .OBJ file. The vertices, and ind...
[3 replies] Last: Nevermind my previous post. Apparently, since vectors store their dat... (by blargl124)
Number of word occurrences in a text file
 
Hello, i'm having some problems with a task I was given. I was asked to read a text file which conta...
[9 replies] Last: Thanks CreativeMFS that did help. I took a different approach at this... (by mex2005)
including libs in a build
 
I've got a project that requires a lot of directx9 libraries, can I configure visual studio to inclu...
[6 replies] Last: Never tried "additional path's" so i don't know for sure. Common way i... (by savavampir)
No matching constructor for initialization
 
I am converting a program from Java to C++ which involve me creating a dynamic array of objects. In ...
[2 replies] Last: Ah okay, I see and why shouldn't be including .cpp files? I am new to... (by cyberamc)
What task has "&" in the following c++ code?
 
Hi all, I need to understand the task of " & " here. it uses without varible and with varible. ...
[1 reply] : The & there denotes a reference! http://www.cprogramming.com/tutorial/... (by Albatross)
Improvements I could make to my Bships code.
 
Hey guys, was just wondering if anyone can list me any improvements I could make to my code? Mind...
[1 reply] : if (PlayerWon=17) should be ==. CPUTurn doesn't need to be recurs... (by hamsterman)
bug with input of text files
 
I took this function from one of my bigger programs, and made it a program in itself for the conveni...
[11 replies] Last: Move the "cout << " above the if checks. That would just bring back ... (by hamsterman)
Simulate KeyPress
 
I am a novice at c++ so please excuse my basic questions. I have a custom game controller that I can...
[4 replies] Last: According to some guy on the internet: A sure fire way would be to w... (by ultifinitus)
Boost.asio problem at compile time!
 
Hello everyone, I have to use the library Boost.asio in C + + Visual Studio 2005 (Windows XP). I ...
[no replies]
Exceptions Thrown by the Constructor
 
If I do: MyClass * p = new MyClass; And an exception is thrown by the constructor of MyClass, do I...
[2 replies] Last: Question 1: No; an object that is dynamically allocated and fails to c... (by jsmith)
getting error..
 
#include<iostream> #include<conio.h> using namespace std; class evs { private: ...
[7 replies] Last: thats good :).. (by raheelmarwat)
Assignment problem
 
im haveing a problem with a c++ assignment that i have to do, i finished reports 1 & 2 already but r...
[13 replies] Last: Hi im trying to design a menu system on C++, i cant seem to build anyt... (by damthegunner)
Calculation code problem
 
I was trying to calculate the age of a person. I used the following code to get the weeks and days l...
[14 replies] Last: I used search to find cur_days in the article. I found it three time... (by Nisheeth)
Stack Trace Error
 
Hi guys, I'm coding a program here that has an array of classes representing a student. I have a ...
[7 replies] Last: Okay then, but if I were you I would still ask your teacher about del... (by anonymous23323124)
Combinations
 
Hello, I am trying to write a program that does combinational logic based off C(n,r)=n!/r!(n-r)! to ...
[4 replies] Last: You got confused: You started out thinking "I need a factorial functi... (by webJose)
by NGen
GUI API Design
 
I've been assigned with the task of writing a GUI framework for a game, but I'm not entirely sure on...
[9 replies] Last: Have a look at the design of QT at: www.qt.nokia.com There is a lot ... (by writetonsharma)
Write a find function for BST
 
Hi, I want to write a function find() for recursively for my BST Can anybody tell me how can i impl...
[1 reply] : Firstly, when using new, it doesn't return NULL when there is an out o... (by Zhuge)
April 2011 Pages: 1... 45678... 37
  Archived months: [mar2011] [may2011]

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