General C++ Programming - June 2010 (Page 13)

Template subclass of a template superclass
 
Hi! I'm trying to run this code, nevertheless complier keeps on telling me further errors...any idea? What kind of theme should i be looking for in a book, in o...
[1 reply] : #include <iostream> using namespace std; template<class T> class... (by Galik)
Rotate Vertex (1,2)
 
Hi, How exactly does one rotate a traingle by one of its vertices? I think, that I need a combo matrix because not only will the vertex be rotating, but the ...
[24 replies] Last: This is close: t1.makeTranslationMatrix(-pts .x,... (by lampshade)
How to use RegExp in C++?
 
Hi, Is there a C++'s Standard way to use RegExp in my application? If not, which C++ library can do it in both Linux and Windows? Thanks, Mohammad
[4 replies] Last: Actually, you do not have to multi-post and it's actually frowned upon... (by Albatross)
How to use RegExp in C++?
 
Hi, Is there a C++'s Standard way to use RegExp in my application? If not, which C++ library can do it in both Linux and Windows? Thanks, Mohammad
[2 replies] Last: Clone thread: http://cplusplus.com/forum/general/24864/ -Albatross (by Albatross)
Class Constructor Warning/Error
 
template< class NODETYPE > class R_Tree { public: // Constructors R_Tree(); // Destructor ~R_Tree(); } void main() { R_Tree...
[7 replies] Last: That is called the inclusion model, and it is a widely accepted/suppor... (by moorecm)
Visual express
 
Hello guys, At this very moment I'm using Code::Blocks for my C++ apps. A few minutes ago I found MS VE 2010 on their website and I wondered if it was better...
[6 replies] Last: I'm not sure why people think Code::Blocks is GNU-based or something..... (by closed account S6k9GNh0)
cin.get() doesn't terminate
 
I used cin.get() for two programmes and both of don't work. 1) int main (int argc, char * const argv ) { std::cout << "Enter a string for analysis: " << std...
[14 replies] Last: Please post the full code that you're using... Never mind, I'm so... (by closed account S6k9GNh0)
by ucinc
calling fortran from borland c++ builder
 
Has anyone called intel compiled fortran library from within borland C++ builder on windows. Thanks.
[no replies]
Overloading '*' Operator
 
My question is if you can overload the unary '*' operator. I'm hoping to create a smart pointer and it would be much easier to dereference the smart pointer wit...
[8 replies] Last: Good point. I forgot about that possibility. (by Dudester)
by korg
STL Algorithms & Iterators
 
I am trying to understand relationship between algorithms and iterators. What is a one pass algorithm and multipass algorithm.... what relationship does it have...
[1 reply] : A one-pass algorithm walks the data structure on which it operates exa... (by jsmith)
advantage of static member function
 
Hi, Could anyone tell me what is advantage of static member function.why we need static member function when we have normal function....
[2 replies] Last: Some times the semantics of a member function or a data member dictate... (by msram)
writing hexnumbers bytewise to a binary file
 
Hello again, some threads earlier I posted a different question for the same problem (thanks for the help there) but was confronted with some other issues. I...
[2 replies] Last: Don't you mean 00 00 00 02, or 00000100? (by magnificence7)
Templates + member inheritance
 
Why can't an inherited member be accessed directly, if it's inherited from a template struct? #include <iostream> using namespace std; template <typena...
[1 reply] : The high-level answer is that allowing it to accessed without proper q... (by jsmith)
by vivmen
Union Output ?
 
Hello All, i am using following code in vs 2008. template<typename T> char * my_fun(T t) { union my_enum { T tx; char buf ; }e; m...
[10 replies] Last: vivmen, if you after all need to use an union, perhaps you can improve... (by KarlisRepsons)
Connection Problems
 
I've had a few problems accessing the web because my internet goes through a wireless network connector which is also being used by my sister through a switch ...
[3 replies] Last: Your sister's probably running something that uses a lot of bandwidth,... (by Athar)
FinalProject: Creating my own stream ... or not?
 
Hi C++ Forum, first of all: Thanks for supplying this great C++ ressource. It already helped me a bunch and sure will in the future. I'm a "Electronical Engi...
[4 replies] Last: "can 32bit XP read 8gb of RAM?" No. But I expect it to adress the RAM... (by Jan Kiessling)
Template , Inheritance and the good ol Linker
 
I have the following piece of code, which resolves in 2 linker errors [quote=Dialog_h] template<class DT> class CDialog { private: CDialog() {}; publi...
[11 replies] Last: EDIT: Got it... I forgot, that You should never call DefDlgProc to han... (by Incubbus)
strings and character sequences? (1,2)
 
Why would you ever prefer character sequences above strings? Xander
[22 replies] Last: [quote=helios]Can you name a character sequence that can't be interpre... (by m4ster r0shi)
Initializing struct
 
I have a struct struct Date { int day; int month; int year; } ; I instantiate an array of Date Date* dates = new Date ; ...
[8 replies] Last: Also, is Date d(31); valid? Can you really call it a 'date' ... (by rollie)
Thread question
 
Ok, when you have like 2 threads, 1 writes into a variable and one reads from the same variable, when you are not synchronizing, what can happen? I know that if...
[9 replies] Last: in answer to you original question, here's an excerpt of a test i did... (by bigearsbilly)
June 2010 Pages: 1... 1112131415... 18
  Archived months: [may2010] [jul2010]

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