General C++ Programming - April 2012 (Page 47)

Graphics in the console???
 
Hey all =) I was wondering if there was any way to display graphics in the console window. Like for example, let's say I have a bmp and I wanted to load it a...
[9 replies] Last: I'll do you one better, let's display a pseudo 3D animation in the con... (by Cheraphy)
Correct opening of dataset for update
 
Hello! The situation: Local(!!) Interbase database -> Dataset -> Datasource. My data is correctly being displayed in a DBGrid, but...as I am trying to update ...
[no replies]
by wtf
Well finally
 
Got Java jdk 1.7 installed on a disc, along with netbeans so I can copy them onto the HD on this computer, (which i cant install onto directly). Now any r...
[3 replies] Last: I don't think you are going to find a programming related forum that... (by hanst99)
Bitwise Comparison
 
Hello, Can someone please help me out with a solution? I need to compare two int values to each other and return the most significant bit position in which ...
[6 replies] Last: Or you could just use the standard bitwise XOR operator "^". (by mpauna)
OpenRTL - A new base library for C and C++
 
Hello, I have this library ready now for beta use... http://code.google.com/p/openrtl It can be used as is for Unicode collation, all CLDR locales for ...
[no replies]
Singleton classs
 
HI , I read that Singleton class is the design pattern .. but i am not able to understand as what is singleton class and why is it used ( pratical use ) ?
[no replies]
Program of Palindrome..
 
This is my simple program. However, I'm not getting correct results.. void main() { cout<<"Enter the sentence you want to check if it is palindrome or not"<<...
[2 replies] Last: Thank you a lot! I've been wasting so many minutes trying to figure ou... (by gethelpcpp123)
by snig
brute force text file help
 
hello i am sort of new to c++ but i know about arrays and all that sort of stuff. I want to creat a program that calculate string like aaaa then aaab but for th...
[3 replies] Last: No, there is always a zero at the end of a C style string, which is an... (by Moschops)
function definition
 
I have this definition : virtual const boost::any operator() ( OperandList operands ) = 0; what the " = 0 " means?
[1 reply] : It's a pure virtual function, meaning it must be overridden in a deriv... (by Athar)
little question - boost
 
Hello!.I am trying to understand a code and I have this definition (using library boost) boost::shared_ptr< Node > m_node; and then I have : if ( m_node...
[7 replies] Last: It doesn't compare it with a type, it compares it with value it holds.... (by morando)
Array Referencing Errors
 
Hello All. I'm new to C++ and am working on Arrays for the first time. I'm trying to create a program that takes input for an array, then orders the input (us...
[9 replies] Last: Thank you for the suggestion. I will try to add that once I can get t... (by crumbhead)
Electronic Workbench Program
 
Anybody has any idea how to write a program that can draw and save the electronic components like the Electronic Workbench program? Any idea or sample code is a...
[3 replies] Last: I am not looking to code same program. I want to do similar thing but ... (by Cyberghos)
by Exiled
Crash on my Flood Fill algorithm
 
I'm working on a map editor for my game. I have designed a flood fill algorithm. It was working fine until last night. I added some new features, then discov...
[6 replies] Last: You could use an stack or a queue (changing DFS to BFS) to store the n... (by ne555)
vector addition
 
high i have a vector class with 1 default and 2 overloaded constructors that look like: Vect :: Vect() { mode='r'; x=0.0; y=0.0; m...
[3 replies] Last: I mean the full message In function ‘int main(int, char**)’: 11:1... (by ne555)
array sorting
 
Hi, I wonder if there is a function that can sort one column of array according to other array. e.g. first columns contains names, the second column contains ...
[2 replies] Last: Or, you could introduce your own comparison function with a functor an... (by TheDestroyer)
tile based collision detection?
 
i cannot seem to figure out how to do tile based collision detection, no matter how i do it i seem to fail. any sugestions on how i can do this?
[16 replies] Last: ah that makes sense :) thanks a bunch. (by even821)
by shaggy
Function/loop issue
 
Hey i want to create kind of like a bullet shot in c++ and SDL. I have a method in my player class: void player::bullet() { glBegin(GL_QUADS); //GL_...
[7 replies] Last: vector<Bullet>bullets; Google is your friend. (by Exiled)
Compile errors/ programming errors
 
Heres the code... Problems encountered are listed at the bottom ...thank you. #include <iostream> #include <iomanip> #include <cmath> using namespace...
[3 replies] Last: How do I use the loop in main()?? int main() { bool keepGoing = tr... (by Moschops)
Allocating space for arrays in heap
 
Lets say i have this piece of code class wat { public: int data; wat::wat() {} //empty constructor for declaring arrays with new wat::wat(int a...
[3 replies] Last: > Also allocating array space with new seems like a bad idea to begin... (by JLBorges)
by idks16
bool function
 
this is my working program: #include<iostream> using namespace std; int main() { int temp; cout <<"Enter the desire temperature: "; cin>>temp; ...
[2 replies] Last: what is the exact question. I am not sure what you are asking. Wheth... (by Bhadri Narayanan)
April 2012 Pages: 1... 4546474849
  Archived months: [mar2012] [may2012]

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