General C++ Programming - March 2009 (Page 17)

c++ and .inl files
 
hi folks, i would like to know what an .inl file is? from searching the internet i learnt that it...
[1 reply] : .inl files allow you to avoid putting implementations of inlined funct... (by jsmith)
what is the formula for prime numbers
 
im writing a program to test numbers to see if they are prime but what is the most recomendable form...
[5 replies] Last: LOL to original post. If such a simple formula existed then encryptio... (by jsmith)
by valdyr
operator overloading (left or right)
 
Hi I have a class string that overloads operator + to accept a char* (string) and adds it at class'...
[2 replies] Last: Thanx, I copied your example of "friend" function. I'm doing somethi... (by valdyr)
by messer
How to write an access operator on a typed pointer?
 
Consider the following template class: template <class Real> class Matrix34 { public: inl...
[3 replies] Last: @kbw: thank you very much. This is exactly what I needed. @disch: t... (by messer)
Is memcmp() Comapres Characters Length As Well As Data in This Length?
 
1. Is memcmp compares length as well as data to see if they equal? or just compares number length? ...
[5 replies] Last: I knew the answer already...thx (by f ben isaac)
by pliu00
how can i use <dirent.h> in VC++6.0?
 
how can i use <dirent.h> in VC++6.0? when i downloaded <dirent.h> and put it in correct directory,c...
[no replies]
by pliu00
Visual C++6.0 vs Dev-C++ 4.9.9.2
 
dear all,i have a problem in compiling .. my program consists of main.cpp ,a.cpp,b.h,and c.cpp i c...
[2 replies] Last: o thanks helios~ but will there be any other i need to amend,THZ (by pliu00)
Reinitialize Int Array
 
Hi all, I am just wondering how do i reinitialized or make a new int after it has been declared ...
[4 replies] Last: Why not use an vector<int> ? It's much easier to increase the size of... (by onur)
C++ Math Crisis! :x
 
Hey everyone, umm I got a problem with this C++ program I'm writing. The objective of the program i...
[3 replies] Last: hwrong and hcorrect have couts in them how do I return values when I'm... (by bloodyhell)
POPPING UP DOS WINDOW WHEN RUNNING SYSTEM() COMMAND IN C PROGRAM
 
Hi, I want to run a DOS command from my C program - and I can do that fine, but I want to do it w...
[no replies]
by qasam3
Play sound file
 
I need a way to play a sound file in the background when the C program is running.I'm using windows....
[10 replies] Last: "If you are not willing to learn then forget programming." Understan... (by qasam3)
Map not inserting
 
Hi Guys, I am having a really weird problem, I am trying to insert a value in the map and for som...
[6 replies] Last: Thanks a lot guys ! (by kevinchkin)
How to get Input in 2D dynamic array??
 
i m making a hotel database management system and i have to add records, update and delete them.i m ...
[2 replies] Last: You can try cin.getline(array_name, length_of_your_array); ... (by CKShia)
Problem with drawing sprite (SDL)
 
I'm not succeeding in drawing a sprite. I use the function: void drawSprite(SDL_Surface* imageSu...
[7 replies] Last: All is good - main thing is it's working now :) (by Mythios)
Calling Functions
 
This is going to sound redundant until you realize what I'm doing, but I want to send a function nam...
[4 replies] Last: Also look at boost::function and boost::bind, which are more flexible ... (by jsmith)
Bmp File Loading into 2D array
 
Hi all. I am new to image processing and as a first step I am trying to load the pixels of a bmp in...
[6 replies] Last: Thanks a lot turbozedd. I managed to solve all the problems and made a... (by Silvermaul)
C++ factorization
 
I've been working on a program and have hit a roadblock. I know conceptually what to do, but I'm ha...
[11 replies] Last: You can save lots of time by only checking odds, lastfactor+=2 , but ... (by turbozedd)
Create a library
 
Hi all, I want to make a library of locks like TAS, TTAS, Array lock and etc. So that whenever I ...
[no replies]
type streampos
 
Hi, I have quite a large binary file( size ~ 10GB), which I want to direct access using istream::se...
[1 reply] : On 32-bit implementations, the standard library has a random access se... (by helios)
sorting and comparing
 
so i made this sort and i have to sort it by a string so i made my own compair but im having troubl...
[8 replies] Last: with a bit of tinkering i figured it out and heres my product incase s... (by CrimsonAngel)
March 2009 Pages: 1... 1516171819... 21
  Archived months: [feb2009] [apr2009]

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