General C++ Programming - January 2014 (Page 17)

VGA's nonplanar memory layout?
 
Anyone knows what the VGA's real (256k) memory is like? My emulator currently reads the VRAM as a 65k times 4 array of bytes with each plane byte following the ...
[3 replies] Last: @Duoas, so in fact (if you look to the VRAM addresses as 32-bit intege... (by superfury)
by Mishu
bubble sort
 
my following code is not running properly plz suggest a solution #include <iostream> using namespace std; int main() { int arr ; int n; cout<<"E...
[8 replies] Last: thnx a lot! (by Mishu)
by ace799
Simple Question
 
I have created an error message if the user inputs the wrong selection number if (choices < 1 || choices > 5) { cout << "\n Please Enter a number between ...
[5 replies] Last: Hi ace799 , I think @kevinkjt2000 offered a good solution for your ... (by Yueeng)
by Kubani
Problem with Polygon in Stroustrup's PPP book
 
Hi guys, I read Programming Principles and Practice using C++, Stroustrup's book. In chapter 12 and in page 441 (first example) there is this code: // /...
[4 replies] Last: I also inputted the graph_lib.lib library into linker input but th... (by Kubani)
single Keystroke issues ALLEGRO 5
 
I'm making a menu screen and am having issues keeping my program from flickering to the active game and the menu screen. I'm using the M key to toggle between t...
[1 reply] : I've never used Allegro. I glanced at the documentation, and I slapped... (by xismn)
typedef std::vector <const void *> (1,2)
 
Dear Sir, I have defined a pointer ptr2 as follows: const void * ptr2 ( new A(20) ); In this case I expect the data pointed by ptr2 must be constant....
[22 replies] Last: @Dish thanks for your clarification :) (by JewelCpp)
minimum gap between two primitives
 
if(rand() % 200 == 0) { switch(rand()%8) { case 0: //T triangle = new Triangle(850 + Cameraposition ,319); ...
[2 replies] Last: hey! thanx buddy ....that would work . I also solved this by storin... (by CodeONE)
help on some details about Hooking API
 
Hallo people I am new to Hooking,Please don't see as spoon feeding. Please I need help on a correct step for doing a correct hooking process for API I believ...
[no replies]
Avoid bad iterator with static list
 
Hey, yet another quick question... I'll spend an hour helping on the beginner forum afterward. I have the following class which forces dynamic memory managem...
[2 replies] Last: Oh, off course! That's a great example of where you put the ++ matters... (by pivottt)
How to acces previosly created classes from a sub class? (1,2)
 
Well the problem sems to be quite simple, but I'm a bit lost in code right now. Here's some example code: myclass.h include "subclass.h" class MyClas...
[26 replies] Last: Oh silly me, I had it commented out... Now it works, Thank you veryver... (by ravel1989)
How to print out a cycle
 
Hi guys.I have a question.I do not want to any code,only can you explain your ideas in a few sentences. if the graph is found to be cyclic how to print out a c...
[1 reply] : http://stackoverflow.com/questions/8495439/printingnot-detecting-cycle... (by JLBorges)
Looking for an alternate method(s)
 
I was modifying someone's Tic-Tac-Toe game for fun, and this is the function s/he used to check if a Tic-Tac-Toe was made: if(BOARD == BOARD && BOARD ...
[2 replies] Last: > win unique to each player which utilizes the location the player jus... (by JLBorges)
Why use pointers to pointers?
 
Pretty much what it sounds like. I know that using pointers is obviously quite useful in C++, but Ive never understood what the use of pointers to pointers coul...
[9 replies] Last: Oh right, yes, my mistake. (by BruceJohnJennerLawso)
Classroom Structure
 
The assignment is Create a structure for a classroom. Make sure it includes the following: Room Number, Lecture Name, List of Students, Number of chairs, ...
[2 replies] Last: Thanks much. The assignment does ask for the ability to add data to ... (by James Turnham)
Why will my overload constructor not let me put values into my arrays?
 
I'm still pretty new to classes so what am i doing in this code that is wrong. #include <iostream> #include <stdlib.h> #include <time.h> #include <string...
[6 replies] Last: Thanks that solved it. (by piperpipe200)
Very simple game idea
 
Hi, I want to my first simple GUI game using SDL or SFML. But I want it to be really simple. I don't want to make a hard one like Mario implementations or somet...
[8 replies] Last: Zhuge is right. I would also like to add that OOP is helpful too. (by Stormboy)
static classes vs namespaces?
 
so i was trying to find out how to do unbuffered input in linux and came across this class: http://www.cplusplus.com/forum/general/29137/#msg157988 . i didnt li...
[3 replies] Last: Yeah, you're right, the anonymous namespace didn't occur to me. I can'... (by Zhuge)
by azad90
Mark "X" in 2D board
 
I managed to create a 2D board containing random numbers. My task now is how could I mark "X" in that board once any number in the board is selected by entering...
[4 replies] Last: @Mats Yes, you're right, that's not good, but I think the main probl... (by Yueeng)
help
 
can help create mini prog in c++ Machine learning on multi label classification 1- do data collection related to multi label examples. each example ...
[4 replies] Last: Please show what you have written so far. (by Largins7)
Manipulating Rand()
 
I have a question: so I know of the way to have rand() come up with a new random number every second, is there a way to have it give me a new random number, say...
[4 replies] Last: in essence getting the same number for several thousand times until r... (by Disch)
January 2014 Pages: 1... 1516171819... 25
  Archived months: [dec2013] [feb2014]

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