General C++ Programming - July 2011 (Page 13)

by gizzmo
overloading pointer operator
 
Hi, I want to design a class which is going to hold a set of n+2 numbers: object(i) = (n-1, 0, 1, 2, 3, ..., n-1, 0) Later, I want to use that object in an...
[9 replies] Last: class A { private: NearestNeighbour n; public: A(NearestNeig... (by webJose)
working with extremely large numbers
 
First time poster here. I took a c++ class in high school about 12 years ago, but haven't done any programming since. I'm trying to pick things up again, but I ...
[6 replies] Last: Try declaring long long instead of just long. For grins I tried that ... (by pchelms)
game programming
 
HI I am designing a game using only graphics.h and using keyboard hits. In my program i detect keyboard hits inside a while loop and then the changes(walking/r...
[2 replies] Last: i'm in my school and doing my project... they allow only borland c++ c... (by rambo1177)
How to convert string "1+3" to operation
 
I am working on a c++ assignment , I figure out how to determain the numbers , but what about the operation in the string , for example 1-2 or 1+2 right now my...
[5 replies] Last: i didnt check for the dmas rule.... i got used to borland and i'm stil... (by rambo1177)
size of the executable
 
I am using the following code on linux platform and using the g++ compiler. (test.cc) int a ; main() { a =1; } g++ test.cc Size of a.out is 4706. Cha...
[2 replies] Last: I did not understand the question. Are you referring to the page size.... (by ashishkumar)
accessing serial COM port using c++
 
hello, can i access a serial COM port to send and receive data..... are there any built in classes or functions...
[4 replies] Last: Well, accessing the serial port is not quite trivial. Maybe it's the b... (by coder777)
by zbart
can somebody please help to format a text file
 
can somebody suggest or comment how to build the algorithm cause I'm really stucked. GEO,POPR R MC52 ,POPRNI S 2 082,MC, ...
[3 replies] Last: You can write code faster in Perl and it's pretty easy to grasp the ba... (by Silvermaul)
by Jega
Solution to Telephone Bill Programming
 
Problem statement Assume that ABC telephone corporation offers three types of services for customers as shown in the table below. Home ...
[1 reply] : Are you looking for a solution to your problem? I think in this forum ... (by sohguanh)
by fsshl
invalid conversion from 'bool
 
Dear Advanced c/g++ on boost programers: I have copied and testd a simple (Copy a file with Boost) program from page 372, Example10-10, book(C++ cookbook) ...
[5 replies] Last: No, he has not linked to boost_filesystem anywhere on his command line... (by closed account S6k9GNh0)
How do i make a play again button?
 
So im making a tic tac toe game, and i want a play again button to appear if the user wins. Here is some pseudocode i sketched up to give you an idea of what i ...
[1 reply] : int main() { bool __continue= false; do{ // game ... (by mindfog)
Is Dev-C++ Form App Real?
 
http://www.youtube.com/watch?v=GeM-FQSXuls After i have seen this video, i was wondering if anyone knows how to make something like this, specifically for dev-...
[2 replies] Last: thats exactly what im looking for...thanks ;) (by alhenry92)
by aj3423
error: expected nested-name-specifier before 'writer_trait'
 
the code: template <typename writer_trait, typename reader_trait> class filer_trait { public: typedef typename writer_trait writer_type; typedef typena...
[3 replies] Last: it seems typedef typename is MSVC style, not for g++ I just removed t... (by aj3423)
Code help
 
I need help writing a loop function. I need to use a while loop to find the smallest integer (n) so that n^2 > 12,000. expl. 109 x 109 = 11881 110 x...
[2 replies] Last: This is what I got: int main() { int number = 0; while (1=... (by creekist)
by Brad1
How to add cases together
 
How would i add these individual cases together?? This is what I have but I am not sure how to add the cases together properly. Any help is greatly appreciated!...
[5 replies] Last: After each calculation, add the tuition to total. (by Zhuge)
What does this error mean?
 
I tried to compile a program including this header file with g++: #ifndef TEST_H #define TEST_H int double (int); #endif Then I got this: In file includ...
[2 replies] Last: Yes, that's probably it. Thanks. (by blueeyedlion)
by bacpp
multiset
 
hi, I am reading data from a text file into a multiset. After getting all the data into the multiset, I want to compare the value in each element of the contai...
[1 reply] : sts::multiset<> is an ordered container. That means it will always app... (by Galik)
How to put files into executable?
 
So i just made this tic-tac-toe game using SDL. I want to show my friend the game. So i made a folder with these files -SDL Includes and Libs -a bunch o...
[8 replies] Last: If in doubt, just ship the DLL in question with the game. (by zahn)
Improving speed of the math.h libraries
 
Hello, I have written a neural network training algorithm that leverages multicore processors and runs more or less as efficiently as I know how to make a pr...
[13 replies] Last: About fixed point numbers, they are real numbers, represented with a d... (by bartoli)
by shank8
Help with efficiency!
 
I am trying to practice my skills in C++. I just created this Tic Tac Toe game from scratch and don't really know if I did it in a very effective way, especiall...
[2 replies] Last: Thanks alot, I will look into it. (by shank8)
Please suggest me some source codes to learn.
 
I have learned programming for a few years, and I have wrote codes for some projects. But these projects are not serious production projects but demos or toy pr...
[no replies]
July 2011 Pages: 1... 1112131415... 30
  Archived months: [jun2011] [aug2011]

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