Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #3K
~4K People Reached
PC Specs
Linux (Ubuntu)
Favorite Tags
Member Avatar for kutuup

I have no idea what is going on here, first, the code: [CODE] #pragma once #include <stdio.h> //#include <stdafx.h> #include <allegro5/allegro.h> //#include <allegro_image.h> class DisplayController { public: int bitmapx; int bitmapy; // ALLEGRO_DISPLAY display; ALLEGRO_BITMAP *crosshairs; ALLEGRO_EVENT ev; ALLEGRO_EVENT_QUEUE *event_queue; void display() { this->event_queue = al_create_event_queue(); al_register_event_source(event_queue, al_get_mouse_event_source()); al_wait_for_event(event_queue, &ev); …

Member Avatar for kutuup
0
1K
Member Avatar for big24fan

I have a MySQL Database with several tables that have the same fields in them. I have updated the "cp_ads_welcome_msg" field of the "WP_7_OPTIONS" table with the data that I would like to update all the other tables with. This code works if wanted to update each table one at …

Member Avatar for EmilyJohnson
0
73
Member Avatar for prajesh2

I'm looking for any website or online book on object oriented in php to learn more about how to use classes and objects better. I would appreciate beginners level and expert level resources.

Member Avatar for macobex
0
62
Member Avatar for curbster

Hi, I'm in my first Java class and I am working on a problem that I could solve if I just figure out how to convert a char to an int. i.e. convert A to its letter equivalent with a function like this: [CODE] intLetter = charLetter.parseInt(); [/CODE] am I …

Member Avatar for curbster
0
1K
Member Avatar for vjcagay

What is the significance of using packages in java? How does this help in programming? Pls reply asap...

Member Avatar for ~s.o.s~
0
99
Member Avatar for BuhRock

How would I go about converting a string to an integer? Say someone enters a 4 digit string. Like 1234. Could I use the place of each digit and work with it? Pretty much, I wanna get 1 from the string "1234" and put it in a variable. Then get …

Member Avatar for coil
0
175
Member Avatar for manofhouse

The program runs but only switches the player once [CODE]#include <iostream> #include <string> #include <cmath> #include <ctime> #include <cstdlib> using namespace std; class TicTacToe{ public: TicTacToe(void);//constructor void playOneGame(void);//member function void switchPlayer(char &);//member function void showBoard(void);// member function void postMove(int, int, char);// member function char determineWinner(void);// member function private: char Board[3][3]; …

Member Avatar for macobex
0
138
Member Avatar for showman13

OK, I know this subject has been covered extensively, and I have read numerous threads on this and other forums. Problem is that the more I read, the more confused I got. I would simply like to know, for my particular application, what is the best way to handle the …

Member Avatar for macobex
0
138
Member Avatar for Obsidian_496

There are function and class templates in C++. They can operate with generic data types. There's some ifnormation on it. [URL="http://www.cplusplus.com/doc/tutorial/templates/"]http://www.cplusplus.com/doc/tutori al/templates/[/URL] This is a compile-able example from the site linked above: [CODE] #include <iostream> #include <conio.h> template <class T> T GetMax (T a, T b) { T result; result …

Member Avatar for macobex
0
127
Member Avatar for mshauny

Hi can anyone help me out here, I did a class working fine but i can't make objects out of it. do i need to include the file that has the class in my new file? with an include statement? say i have this. #file 1 <?php class foo { …

Member Avatar for macobex
0
133
Member Avatar for macobex

I'm in the middle of a project development, and I'm frustrated with this problem. Im running XAMPP under Ubuntu 10.04 (Lucid Lynx) mySQL version : Ver 14.14 Distribution 5.1.41 The problem is that, mySQL is accepting null values even if the field is declared with the NOT NULL constraint. Example: …

Member Avatar for macobex
0
250
Member Avatar for macobex

I've just learned how to use vectors. I'm thinking about, what is the best way to create a vector, IF you do not know its initial size. Here are some of my options. 1.) This is the simplest I think, but is there any memory issue about this technique? [CODE] …

Member Avatar for n.utiu
0
133
Member Avatar for macobex

So, I'm really frustrated with this problem. I desperately need some good explanation about this. Why does the calling function does not reflect the change done in the called function? despite the fact that I pass the variable via pointer. Any explanations please. Thanks in advance. [CODE]#include <iostream> using namespace …

Member Avatar for dgr231
0
121
Member Avatar for gretty

Hello I have 2 functions that are just playing up. One is a function that takes in a string & should output the string backwards. [B]Problem:[/B] the syntax to insert a character into the string is wrong, I dont know the correct syntax. The other is a function that takes …

Member Avatar for mrnutty
0
198
Member Avatar for packrisamy

i am little bit confused to access the class function through pointer. Whether Consider the pointer variable Class Ball { Void Do() { } } Void main() { Ball &r = *(new Ball ); } Can i access via r.Do(); r->Do(); Which way is correct and please explain me why …

Member Avatar for macobex
0
136