General C++ Programming - August 2013 (Page 11)

Poker game help - enumerated data type in c++
 
Could someone help me to put enumerated data type in c++ for a poker program (specially for color and cardtype)? I can sent the hole program to your mail. Pl...
[1 reply] : http://www.cplusplus.com/doc/tutorial/other_data_types/ (by Chriscpp)
DLL plugins
 
I need a multiplatform (Linux and Windows) way to load DLLs as plugins. I'm using Codeblocks with Mingw. Is there a way to load them in a way like Notepad++ lo...
[no replies]
Windows.h (1,2)
 
Hi. I have recently hit a spot where i need to use windows.h. It is for simulating keystrokes and other stuffs. Now the problem I face is for the statement #i...
[22 replies] Last: Well, the Windows SDK has been suggested. If you are using a 32-bit c... (by andywestken)
Write cross-platform file IO.
 
Hi. I discussed a topic about how to write cross-platform file IO code with a member named Disch for about a year ago. Since I am a beginner I am not sure if...
[3 replies] Last: > Why didn't the developers who created the standard library develop f... (by JLBorges)
by xAphex
visual studio 2012 express *Error*
 
i was making a downloader and when i was debugging it i found 1 error: Handles clause requires a WithEvents variable defined in the containing type or one of...
[1 reply] : It looks like Visual Basic. Maybe you should have posted it in the Lou... (by S G H)
by Gor
error C4368: cannot define 'p' as a member of managed 'snake::Form1': mixed
 
who can help me? error C4368: cannot define 'p' as a member of managed 'snake::Form1': mixed types are not supported //Form1.h #pragma once #include "point.h...
[4 replies] Last: Sorry, been a bit busy with work. I have put your (original) code int... (by closed account z05DSL3A)
by Skid
C2491, Templates and DLLImport
 
Hello, my project folder contains two projects. The first one includes a gbArray class which is responsible for array handling. This project is build as DLL...
[4 replies] Last: Argh, I'm an Idiot. You're right! I only saw the DLL, not the header ... (by Skid)
by Daleth
Parameter pack of const-references
 
I have this basic prototype: struct int_wrapper{int i;}; template <const int_wrapper&... IPack> void display_all(const int_wrapper&, IPack...); ...
[5 replies] Last: #include <iostream> struct int_wrapper { int i ; /* .... */ } ; std... (by JLBorges)
tictactoe - revisited
 
I made a tictactoe game a while back, and for basic functionality, it seemed to work fine. I'm now trying to find a way to teach it how to never lose, without e...
[4 replies] Last: I think I found where my problem is, a bit mystified about why it was ... (by manudude03)
rigging the rand function
 
I'm writing a program that select 12 numbers then plays notes according to those numbers but currently the notes are random(using rand()). I was wondering if th...
[1 reply] : The keyword is "distribution". C++11 has some http://www.cplusplus.co... (by keskiverto)
Converting Visual Basic 2010 code to C++ ?
 
It is for a guessing game, I have the Visual Basic code here; Public Class Form1 Dim Numberhidden As Integer Dim Numberguess As Integer Dim...
[8 replies] Last: Try qt4 $ g++ $(pkg-config --cflags Qt{Core,Gui}) -c -std=c++11 foo.c... (by ne555)
size of object ?
 
what is the size of object in c++ , if there is no data member in the class ?
[3 replies] Last: @Nabeel Nazir what is the size of object in c++ , if there is no dat... (by vlad from moscow)
.OBJ file help?
 
I decided I was going to work with .obj files as a custom format was overkill for my needs. I'm having trouble understanding this. (I'm not following a tutoria...
[10 replies] Last: I'm using OpenGL 2.1. I don't know how to use GSL you aren't loadin... (by closed account N36fSL3A)
Can't Open chrono header file in Visual C++ 2010
 
Any fixes for this? Its really essential for the program I'm trying to write.
[3 replies] Last: Or #include #include <boost/chrono.hpp> , link with libboost_chrono, ... (by JLBorges)
Passing 2dim array through an median function to the one of 2 other function
 
I want to use one median function "selectfunction" to choose one of the 2 other functions at random to pass my 2-dim array to the selected function. There is a ...
[1 reply] : case 0: proc1( iArray ); brea... (by vlad from moscow)
by Ceset
data types
 
if in a console program i were to declare a int and closed the program with return 0 , everything is fine but when it comes to SDL_Surface . u need to clean...
[6 replies] Last: thx all for your helpful answers (by Ceset)
Benford’s Law C++
 
How to write a code for Benfor's Law. program that loop through the list of numbers and count how many times 1 is the first digit, 2 is the first digit, etc. ...
[7 replies] Last: I would use std::stringstream and output the integer to it. Then take... (by kevinkjt2000)
member in static method
 
Hi @all, another Question: Theres a class named "A" which has got a static function named "sfA". Now I instance an object of class A and call a method ...
[4 replies] Last: Why do you make it static if it needs to access member variables? (by LB)
by coder1
Vector Iterator Not dereferencable
 
Hello I was writing a program, it should take an integer (n) and then do the following n times: 1) read an integer k then read k integers. 2) take the max in...
[19 replies] Last: I am glad that at last you have understood (?) that the error message ... (by vlad from moscow)
Hangman C++
 
Hey everybody, I am creating a hangman game with C++ and I am having a little bit of trouble with a part of the code. My question is, for the secret word i...
[2 replies] Last: @omiexstrike Hey I tried to run your program on Borland Turbo C++ but ... (by agnibho)
August 2013 Pages: 1... 910111213... 28
  Archived months: [jul2013] [sep2013]

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