General C++ Programming - August 2009 (Page 8)

test question
 
Run into a question in a test recently, not quite sure what is the right answer? Any suggestion? Thanks What kind of variable do you use if you need to ...
[3 replies] Last: It's not very well redacted, but yes, the answer is 3. (by helios)
Complete Picture
 
Gentlemen, Ladies; I have searched in vane for any forum or course or book for tutorial that gives the complete picture. First, I'll never live long enough ...
[2 replies] Last: What? To be able to read or write something from/to disk in a singl... (by jsmith)
Calculating Pi (from International Obfuscated C Code Contest)
 
Can someone explain to me how the following program calculates Pi from its own area? It's a winner entry of the International Obfuscated C Contest. link: http:...
[4 replies] Last: Thanks very much. Your reply was very helpful and pointed me to the ri... (by petergreat)
STL Iterator and user-defined class
 
Is is possible to make STL-Iterator to work with user defined class ,like the one below? #include <iostream> #include <stdexcept> using namespace std; te...
[1 reply] : In all cases STL "iterators" are types owned by the container. You ha... (by jsmith)
Any one can do?
 
ANYONE CAN HELP TO DO THIS? 2. Problem statement Assume that ABC bank has three types of deposits and saving account for customers as shown in the ta...
[5 replies] Last: Thanks hypercube1 but can u or anyone help me with the program? thank... (by lonerever)
best language
 
Which is the best langage and please support with facts. Thanks just wanna make sure i'm learning the right one.
[17 replies] Last: IMO, yes. (by helios)
another maze problem
 
i had construct another maze which i could setup the n x n with user input successfully.The problem is i cannot correctly specify the visited area with 'R',whi...
[no replies]
Correction (1,2)
 
#include <iostream.h> #include <string.h> #include <conio.h> #include <stdio.h> void main() { char a ; cout <<"Enter a word: "; cin >>a; gets(a...
[21 replies] Last: how will i do that? (by forgottendreams340)
Maze problem
 
The robot which signify as 'R' cannot correctly marked on the right position of the maze .I suspect there is something problem occur within the temp variabl...
[no replies]
Anti-Cheat Program
 
There are a RIDICULOUS amount of cheaters that play this game (Counter-Strike.) The game creators, VALVe, have an anti cheat in place (VALVe Anti Cheat/VAC.) Ho...
[6 replies] Last: If it is ok for you, may you tell us how you did do it, how it did wor... (by Incubbus)
reading 8, 16, 24 and 32 bit data from file
 
hey guys, I've come across a little problem in a program I'm writing. I need to read data from a file with the following size blocks/chunks: 8bits, 24bits...
[3 replies] Last: Hey, i'm marking this topic as closed, sorry for being a little lazy..... (by mrHappyPants)
copying data between (similar) classes
 
I have two classes which are essentially the same, only with different array sizes. ie: class A{ char character; short shortArray ; } a ; ...
[5 replies] Last: That's what I need to do, essentially a 1201x1201 matrix of elevation ... (by mrHappyPants)
Malloc() & Free()
 
struct node{ char *data; struct node *link; }; struct node first; int main() { char *ptr; ptr=malloc(sizeof(char)*100); first=malloc(...
[3 replies] Last: Works for me. (by helios)
maze in an array
 
Here is the problem once i initialise the n x n area of maze in array ,i cannot correctly specific the exact location of the robot starting point to move #i...
[3 replies] Last: - screw multidimentional arrays. - screw nested vectors (such as vec... (by Disch)
by Alaric
Template object within template member function
 
I've been having a problem with my gcc compiled program. The program itself is a text-based MUD server that I've been working on for a while. The problem comes...
[3 replies] Last: Because you are trying to use a dependent type name. Here is some g... (by Duthomhas)
by jsepia
MSVC in professional game development: what's the big deal?
 
I've been making C++ games (both 2D and 3D) for years with GCC and several IDEs. But I get the impression that most professional game development teams use MSVC...
[10 replies] Last: ¯\(°_o)/¯ I guess it can do it then. (by helios)
hash_map
 
Always there is problems with a hash_map, but google has a solution: You must install "sparsehash" (apt-get install sparsehash) The documentation is h...
[no replies]
Construction of Member Objects
 
Let's say my program has 2 classes, CInner and COuter. One of COuter's members is an object of type CInner. Fact: Creating an object of type COuter runs the c...
[2 replies] Last: I see...thanks :) (by Tom Backton)
by OSU123
Suggestions for Class Implementation Project
 
Hi, I need to suggest an idea for a class implementation project in C++. The program needs to include multiple classes and incorporate C++ concepts such as i...
[1 reply] : A few days ago I gave an exercise to someone. Check it out: http:/... (by webJose)
by jsepia
"variable = clock()" makes my program crash
 
This is my Timer class: typedef clock_t TIMER_TYPE; class Timer { public: Timer(); ~Timer(); void StartTimer()...
[3 replies] Last: As a matter of good practice, since TIMER_TYPE is used only privately ... (by jsmith)
August 2009 Pages: 1... 678910... 12
  Archived months: [jul2009] [sep2009]

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