Beginners - March 2011 (Page 16)

I want to programming a Playstation 2 gamepad but with USB.
 
Hi. Does anyone know of website concerning the gamepad ? I ask because I am not happy with the windows and linux driver which is in the driver/kernel mode.
[1 reply] : Most gaming libs worth using have an API for using gamepads. The li... (by Disch)
Mad libs program
 
I'm writing a program that reads txt file that has a mad libs story in it like this Zoos are places where wild <plural_noun> are kept in pens or cages <#> so...
[4 replies] Last: It reads reads a file that has a mad Libs story and then based on what... (by ElectricClam148)
First post for me! I need help with this code!
 
Hi, I'm a computer engineering student who happens to be taking his first programming course ever (and my first encounter with programming). I can't really s...
[16 replies] Last: Yes (by guestgulkan)
Basic stock market game
 
Hello! I'm new to c++. For the last few days, I've been doing some very basic programs, such as a calculator, a tic tac toe game, a type save app and a stock...
[2 replies] Last: Thank you! I've been trying to find the problem, until you mentioned ... (by closed account NURL1hU5)
Audio Manipulation In C++
 
Hi all. I hope this is the right place to post this. I am a music technology student and I've recently picked up learning C++ as it would greatly help my car...
[3 replies] Last: I'm not sure what you're asking. If you're familiar with the structur... (by Disch)
Problem with while loop and if.
 
Hi. I have a problem processing some while and if statements. I have created two lists (nodes) called stack and postfix. I have two important methods: (1)...
[1 reply] : I am assuming stack1 is of type char*. If it is of this type, then yo... (by webJose)
static functions?
 
What is the difference between a normal and static function? Most people try to explain it in terms of class level and instance level... I am working in C, n...
[2 replies] Last: In regular C (no classes), a static variable or function is a variable... (by webJose)
Breaking line in C/C++ code...
 
Today my question is a bit C-oriented (although it applies for C++)... I know line break or new line is '\n', but how do you break line in code? Like in VB.NE...
[9 replies] Last: Thank you. I received my answer by reading just the first three replie... (by Zia Ur Rehman)
pass and return array in a function
 
I am having two matrices, A, B. I would like to pass A and B into a function, which calculate C=A-B, and return it. How to write this function using pointer ...
[2 replies] Last: Some template magic could also be useful here... template <class T, ... (by m4ster r0shi)
Student Struct Passing to an Array
 
Write a program that inputs students’ names followed by their test scores. The program should output each student’s name followed by their scores and grades...
[2 replies] Last: Thanks i will give it a go if i have any questions i will post them (by jaimesharp)
by ogward
remove elements from an array
 
Hi! I have this function { int pos=-1; for(int i=0;i<this->nrOfDiets;i++) { if(name==this->dh ->getUsrName()&&date==this->dh ->getDate()) { ...
[2 replies] Last: It works, thanks a lot! (by ogward)
by ogward
remove elements from an array
 
Hi! I have this function { int pos=-1; for(int i=0;i<this->nrOfDiets;i++) { if(name==this->dh ->getUsrName()&&date==this->dh ->getDate()) { ...
[no replies]
Referencing the calling object within a function
 
I'm creating a fraction class from scratch, and, in doing so, defining operator +,-,*,/ (and += etc). I already wrote the code for + and += and they work fine. ...
[3 replies] Last: I don't know what you mean but you need to write it like so (*this)+=... (by coder777)
Application not closing down correctly
 
Hey there, I have recently been building an asteroids game. Before last night, it would close down fine when I pressed the relevant button to do so but now for ...
[4 replies] Last: ty98 (38) Mar 21, 2011 at 11:25pm I would say you have a bug! T... (by Chazzmundo)
a can not be explicitly specialized issue
 
My code as follows,and the compiler shows "C2910: 'Gobj<std::string>::operator ' : cannot be explicitly specialized\genericarray.cpp 32",it seems a hopeless im...
[2 replies] Last: I'm very appreciated . you gave me such sufficiency explaination more ... (by gelenbertang)
How can I get the sum of the numbers?
 
In this program you can type in any non-negative integer and it will go through the formulas inside the program and give you an output. the program runs perfect...
[3 replies] Last: You don't do anything with 'sum' not even intialization. -> sum = 0; ... (by coder777)
undefined reference
 
#include <iostream> 2 #include <new> 3 4 5 using namespace std; 6 7 8 class Singleton 9 { 10 private: 11 static Singlet...
[2 replies] Last: Your Signleton class contains pointers to itself, not some data type l... (by firedraco)
undefined reference
 
#include <iostream> 2 #include <new> 3 4 5 using namespace std; 6 7 8 class Singleton 9 { 10 private: 11 static Singlet...
[2 replies] Last: line 13 doesn't have a body like so: Singleton() { } (by coder777)
by cc89
Accessing overloaded operator through pointer
 
I'm using the tcp::iostream from boost to send a message to a server, but i'm getting a weird issue where my program sends out a memory address instead of the s...
[2 replies] Last: Due to the syntax of the way you're calling it: conn->operator << mu... (by Disch)
how to get out and print
 
I am writing a program that will print out a normal equation into Reverse polish notation....My problem is that now I am in a forever loop and can not print it....
[no replies]
March 2011 Pages: 1... 1415161718... 52
  Archived months: [feb2011] [apr2011]

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