General C++ Programming - July 2010 (Page 6)

C++ Portability General Question
 
If I design software under a POSIX environment and I use specific POSIX software, how "portable" am I making my program? If a client needs the software to ru...
[4 replies] Last: Thanks all! I'll keep this in mind. (by carlodelmundo)
Need CryptoPP Assistance
 
Hello, I've been trying to use the cryptoPP library for some time now, and I've been coming about some annoying issues with it. I have this function to use t...
[9 replies] Last: Your first function still has that bug I mentioned on my first post, t... (by helios)
trouble with 2D vector calculations
 
I am writing a game with directx in which the player can hurl himself off of planets, into space, at which time he will be affected by gravity of other planets ...
[8 replies] Last: Good stuff. When I first read your problem it reminded me of Super Ma... (by carlodelmundo)
two dimensional array any suggestion?
 
i have a code, pseudocode can u help me make a program a two dimensional array using pseudocode please help me set i to 1 while(i<=m) { set j to 1 whil...
[1 reply] : #include iostream #include string int d; int o; string your; ... (by qabil)
by Azar
use Html code in C++ programming...
 
I have a program sourced with C++ and used HTML code from External codes... I wanna use this HTML codes in the C++ program... Does anybody know how can I do...
[5 replies] Last: It's not so easy if they reference other pages or resources (like pict... (by kbw)
by dawies
how do I get an byte[] from HGLOBAL?
 
Hi there, I am writing some XML to a stream using XMLLite. xmlOut is a byte array class that I use. When I'm done writing the XML I want to get the stream...
[3 replies] Last: You have to write your XML with an IXmlWriter. The IXmlReader only pa... (by kbw)
Design patterns
 
Can anyone please give me practical examples of design patterns in C++. I know only Singleton. I would like to learn other design patterns like Factory Method...
[3 replies] Last: Design Patterns by GoF is the book that you need. Read it and become ... (by moorecm)
How to print and delete all the jobs from the printer
 
Hi All, I am new to this forum and also to C++ program. I tried a program to send the jobs to the printer and to delete the jobs from the printer. Fo...
[13 replies] Last: Hi,, Yes.. Exactly..... Thank you so much. Everything is work... (by ananth304)
Need to read/write/verify io string through RS232 com port
 
Hi all, Currently im doing a little coding to communicate between two PCs through RS232 ports. i am thinking of using: "writeFile" to send a string to the ...
[4 replies] Last: thank u guestgulkan... (by solycutema)
software projects
 
dear all i have a problem in C++ for connect/attached hardware with my programming code, i have to perform embeded programming in c++ so please help me if any...
[no replies]
how to get display content from html file?
 
I want to get the text content from a html. exactly I am tring to chansfer a *.html to a *.txt. get rid of <B>...</B> etc such control characters.
[2 replies] Last: can you show me some codes? I am a beginner.I often open file using... (by peripheral)
by pillow
Destructor for 2-d dynamically allocated array
 
I don't think my destructor is right. Can someone help me? // constructor code int **array = new int*[capacity + 1]; for(int i = 0; i < capacity...
[4 replies] Last: What @darkestfright said. You need to declare the array with width*hei... (by PiMaster)
Physical attributes, objects and etc.
 
My question is fairly simple, though I'm not experienced enough to really answer this one. Let's say I'm designing a game, or a simulation of real world phys...
[4 replies] Last: Awesome answers everyone, I like the thought process on all of this. ... (by aerowenn)
Where should I place an If/then statement in this code?
 
I need to place an if/then statement in this code that outputs that the number factored will return a negative result and for the code to not factor that number...
[5 replies] Last: Good point. I was moving through so fast I didn't really stop to che... (by Galik)
Variables Problem
 
hello every one. i am making a brick breaker game and im trying to detect when the ball hits the bricks. something quite strange happens. for(unsigned in...
[5 replies] Last: IT seems like that only bricks that are close enough to the ball are w... (by Galik)
by amiref
Priority
 
Hi In this code , compiler first calculate ob1=ob2 or ob2=ob3 ( in that line that has written ob1=ob2=ob3 ) ? #include <iostream> #include <conio.h> usi...
[2 replies] Last: loc loc::operator=(loc op2) should be loc& loc::operator=(const lo... (by kbw)
double number was cut off
 
Dear all, My script aims to save data in vector. However, the original data was cut off after the script's running. Like this: original data is : 9.996885...
[2 replies] Last: Hi, guestgulkan, Thanks a lot for your comment. Based on your expl... (by Junhui Liao)
problem with gmp in dev-c++
 
after reading about the rsa cipher i wanted to make my own version. it uses the gmp library, i think the code is all correct (except the chartonum, it encipher...
[8 replies] Last: Should've said so in my first post, but first thing you should do is t... (by Athar)
by amiref
Operator Overloading Problem
 
Hi Why sometimes we ovrload operator as member function and sometimes as friend function ( and out of class body ) ?
[3 replies] Last: See here - a comprehensive list : http://en.wikipedia.org/wiki/Operat... (by guestgulkan)
Near OR far ?
 
Hello. What are near, far and huge keywords? Thanks :-)
[4 replies] Last: http://www.cplusplus.com/forum/general/12435/ (by kbw)
July 2010 Pages: 1... 45678... 20
  Archived months: [jun2010] [aug2010]

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