General C++ Programming - June 2012 (Page 16)

Program closing after execution
 
using System; namespace Permutations { /// <summary> /// Permutations in C# Using Recursion: /// Caluclate permutations of a set of elements ...
[6 replies] Last: before the end of main() (by viliml)
I dont understand the question!!!
 
imagine we have 2 empty stack of integers S1 and S2. pushStack(S1,2); pushStack(S1,3); pushStack(S1,6); pushStack(S1,9); pushStack(S1,11); pushStack(...
[15 replies] Last: Here, try this out, it might clear it up a bit how to do your excat as... (by viliml)
DirectX Detailed Tutorial? (1,2)
 
i cant seem to find a detailed DirectX Game Programming tutorial... i am a person that does not know how to install the SDK nor do i know where to place it or a...
[23 replies] Last: This is why I think people should learn from reading documentation, a... (by BHX)
by sanyam
select() function not removing unresponsive file descritors
 
This program is supposed to wait for user input for 2.5 secs before printing time out. or print "A key was pressed!" if user presses a key within 2.5 secs. ...
[5 replies] Last: iskeypressed() for Windows: http://www.cplusplus.com/forum/beginner/56... (by Duthomhas)
by Nanne
2D string array as parameter to function
 
Hi, Is it possible to pass a 2D dynamic string array to a function as a parameter? For.Ex: string stringArray2D = {"Hello", "How", "Are", "You"}; ...
[4 replies] Last: Thank you for suggestion and example too. I use MS VC++ .. I will go w... (by Nanne)
Including headers
 
Is it wrong to take it for granted that some standard headers include others? An example would be iostream which seems to include iomanip , ostream , istr...
[3 replies] Last: Don't sweat the small stuff. (by moorecm)
SFML how to in MonoDevelop (Ubuntu 11.10)
 
Hello, After I got the SFML tip from someone among you I decided to try it on both Windows and Unix platforms. The Visual Studio 2008 tutorial on the SFML si...
[2 replies] Last: It doesn't bother me, it works well with C++ (as far as I've used it).... (by closed account 3TXyhbRD)
by Yocomp
need help..
 
Martha takes a jar of quarters to the casino with the intention of becoming rich, She plays 3 machines in turn. Unknown to her, the machines are entirely predic...
[16 replies] Last: @Yocomp: here's the fixed code, all you have to do now is: 1. READ THE... (by viliml)
how do i make a 2D pc game?
 
ive tried using directX and i noticed you have to make the models Point by Point and i cant fucking stand it, im about ready to literarly fucking kill myself. C...
[6 replies] Last: Blender isn't what you want for 2D, really. Stick with something like... (by MrHutch)
by webbro
Why i can't create HandleScope?
 
Hellow! I'm having a little trouble! I'm using v8lib (v8 JavaScript Engine). In function that is call from reference i'm creating HandleScope, but on it t...
[no replies]
Strange for loop error using arrays
 
I came across a strange error tonight writing a simple for loop in code::blocks. This function returns true if the input does not match the good characters, but...
[2 replies] Last: wow, what a dumb mistake lol. I think ill have to get some rest for to... (by Need4Sleep)
by sanyam
sockets and stdin program. Need assistance.
 
#include<winsock.h> #include<iostream.h> #include<conio.h> // file descriptor for standard input int main(void) { struct timeval tv; fd_set readfds; t...
[no replies]
C++ TR1 Random Number Gen
 
Anyone know of any good documentation on the <random> header of TR1. I can hardly find anything. I did find the following example for picking a random# ...
[3 replies] Last: Thanks. I'll try the boost libraries sometime. For the TR1, So "eng... (by closed account 4oL1hbRD)
vector class?
 
Hay all. At the moment I am trying to make my own 2D vector library just to get a better understanding of vectors, I like the <Vector.h> standard library in Mic...
[3 replies] Last: If I were you, I would leverage complex numbers in your code -- if you... (by Cubbi)
by Yocomp
calendar program
 
need help with program to print out a calendar for a particular month given the day on which the first month occurs together with the number of days in the mont...
[5 replies] Last: If you'd like some help with perspective, describe what you've done an... (by kbw)
Interesting problem creating bitmaps
 
Problem Description: I'm writing some code for the Microsoft Kinect and have borrowed some of their functions which I wish to modify for my own use. The overall...
[1 reply] : I didn't read your code, but why not use a counter in your file name: ... (by exiledAussie)
by neurax
Taking things a little further..
 
Current programming experience: C++ (all knowledge about object orientation) Java (all knowledge about object orientation) mySQL (accessors, sorters) Wh...
[1 reply] : I'd suggest you start looking at communication protocols and the libra... (by exiledAussie)
Time complexity for merging two sorted arrays of size n and m
 
I was just wondering what is the time complexty of merging two sorted arrays of size n and m, given that n is always greater than m . I was thinking of usi...
[2 replies] Last: Mergesort would be O( (n + m) log(n+m) ), because it must do the sorti... (by doug4)
question about template class
 
Why the following code can't be compiled? thanks! #include <cassert> #include <iostream> using namespace std; template<typename T> class Vector { T ...
[5 replies] Last: template<typename N> Vector(const Vector<N> & t) { ... (by guestgulkan)
Problem with STL and Composition
 
I am writing a code which is similar to the below module. class testclass5; //Forward Declarations class testclass4; class testclass3; class testclass2; ...
[4 replies] Last: Its working now. thanks for the help :) (by hello 12345)
June 2012 Pages: 1... 1415161718... 33
  Archived months: [may2012] [jul2012]

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