General C++ Programming - January 2009 (Page 11)

User Input in FLTK
 
While using FLTK graphics libraries for basic game writing how do you take user input? getch() doesn't really work since Visual Studios opens up a console windo...
[4 replies] Last: You can use a Windows32 API call to check the state of a key. This is ... (by Zaita)
how to impement tic-tac-toe using STL list
 
hello! i would like to know how to to create a tic-tac-toe using STL list to implement the game? i do not understand how to make use linked list to implement it...
[2 replies] Last: I think he means that the game's first row occupy positions 0-2, secon... (by Corpus)
A general question regarding profile settings
 
I apologize if this is in the wrong forum, but I didn't really know where to post this. My question is: is there a way in which I can set my profile to notif...
[1 reply] : click on [user cp] at upper right most corner :) (by minix)
Using class objects with stack stl
 
Hi all, this is my first post to the forums! I'm currently working on designing my own card game while simultaneously trying to better my OO programming...
[8 replies] Last: where did u put the ifndef directive it should be given in MakeDeck... (by cppgans)
Trying to make the mouse move...
 
I have got some code from this website and messed around with it. I am trying to make the mouse move right 1 coordinate when you press the 'a' key. It is not do...
[2 replies] Last: Thanks! I will fix it now based on your information. Thanks again!!! (by Codeboy)
structs and arrays
 
This is a program that is supposed to use structs to be able to enter a courses data and output it again. I can not get the data to correctly input and then out...
[1 reply] : Ok...A couple of things: 1.) use [co de] tags around your code 2... (by firedraco)
Missing Information
 
The C++ tutorial was very helpful to me, but I found things in other tutorials that I didn't find here : structure initialization lists, const pointers and po...
[no replies]
float
 
please help me,, example: a = 4.5937; c = a + 4; ->( a = 4.59).. thanks
[1 reply] : + (plus) is a binary operator. It takes two operands. The result is... (by guestgulkan)
count how many times a number is used in a column
 
HI; (using C++) I would like to count how many times a number is used in a column. example: 23 45 67 45 67 89 23 45 67 in the first column 23=2 45=1. seco...
[5 replies] Last: how do u do????you use "stuck"or "stack".please share your code to us ... (by roodtree)
an example public library program
 
Hi I was wondering if anyone on here would be able to create or direct me to an example program which is designing a computerised records system for a public li...
[2 replies] Last: Just an example program of what I have stated because I cannot find an... (by rushhour)
Using the infamous delete operator
 
Hi all. I am a beginner in C++ and I have this question. #include <iostream> using namespace std; class myDouble//random class { friend ostream...
[2 replies] Last: Thanks for the answer helios. The infamous was ironic :)..However the ... (by Silvermaul)
by wlijiu
how to resize vectors vector?
 
So somewhere, I got this code: vector<vector<int> > items; but how do i resize it, for example to items ?
[3 replies] Last: vector s have also a resize function ( http://www.cplusplus.com/ref... (by Bazzy)
searching_sorting 2d array
 
please help, my task is to make a program that will accept no. input from the user (an array of A ). the entered values will be sorted and lastly, the user w...
[1 reply] : It would be better if you posted the code with which you are having di... (by buffbill)
by lyro42
Memory address issues with classes
 
I'm a beginning programmer and I've been writing a simple game. Unfortunately in my player class the last part of an integer array and a bool variable have the ...
[3 replies] Last: Whoops, thanks for the help. I knew it would be something basic. (by lyro42)
January 2009 Pages: 1... 91011
  Archived months: [dec2008] [feb2009]

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