General C++ Programming - October 2010 (Page 17)

by azzaq
Quadratic solution
 
Write and test program that solves quadratic equations.A quadratic equation is an equation of the fo...
[1 reply] : This really isn't hard to create. Try it yourself. If you don't succee... (by Kyon)
regular expressions
 
How do I validate the users inputs. I want to validate to ensure that the user is entering numbers ...
[6 replies] Last: i have seen this and does not cater to my , in between the numbers tha... (by carlsum1986)
by geek4u
Memory Management
 
how will u know if memory is available before using new operator? any mechanism
[9 replies] Last: Thanks. That's what I get for using a 12 yo textbook. It used to wor... (by closed account D80DSL3A)
Are automatic char arrays expensive any more?
 
In the olden C days, code like this was deemed expensive: void foo1() { char str ; // alloca...
[9 replies] Last: Excellent. TYVM, jsmith - that info's exactly what I was looking for. (by kfmfe04)
by levone
warning: deprecated conversion from string constant to 'char*'|
 
Images typdef typedef std::map<char*, SDL_Surface*> Images; Code in question. bool LoadResou...
[5 replies] Last: It is likely that if you have more than one .cpp file that accesses th... (by jsmith)
switch and visibility (1,2)
 
Hi@all I use switch to create a template class at runtime but once the switch is finished the cla...
[24 replies] Last: IT WORKS!!! I had to use AbsFiguraT<K> * tmp_fig = dynamic_cast... (by TiaSorella)
Unknown Error?
 
I do not know exactly what this error is trying to tell me. Am I missing a #include or something? If...
[2 replies] Last: I see! Thank you so much! forgot the extra parenthesis. (by LittleQuick)
removing duplicates from union, intersection, and difference functions
 
I am almost finished with this programming I am working on but I am having one problem with a segmen...
[2 replies] Last: C++ already provides the algorithms for dealing with sets. Go to this... (by kempofighter)
C++ Templates And C++ Preprocessor
 
I thought I might be able to see how class templates actually expand by using the /E or /P command l...
[2 replies] Last: Thanks R0mai for the info. That's about what I figured. I thought it... (by freddie1)
To obtain Line from a square grid
 
I need to find all the squares in the grid which include a part of the line drawn in a grid. Infact ...
[1 reply] : for (m=dy/dx, y=y1, t=round(x1); t<=x2; t++, y+=m) glVertex2i(t... (by ne555)
how can i group the names into three group using 2D arrays??
 
pls help me about my problem.. i dont know how to group the names into three group.. pls help me. a...
[no replies]
how can i group the names into three group using 2D arrays??
 
pls help me about my problem.. i dont know how to group the names into three group.. pls help me. a...
[no replies]
by fukki
Char & string problem after space..
 
I try both char and string to store 2 words, for example "my dog". The program after display onl...
[5 replies] Last: I found the solution. I just put cin.ignore(); before the getli... (by fukki)
concurrent access to sqlite
 
For concurrent access to a single sqlite database, do I still need to use a mutex lock on the handle...
[3 replies] Last: http://www.sqlite.org/lockingv3.html try this link (the same thing ... (by Thenero)
by DLNOOP
Convert array to text
 
I am using MS Visual Studio 2008. This is a CLR Windows Forms Application. I have an array; arra...
[no replies]
C find files in a directory.
 
I was wondering if there was a way in Standard C to get the names of all the files from a certain di...
[1 reply] : http://www.cplusplus.com/forum/beginner/21043/#msg110215 (by kbw)
Compiling Error in Overloaded Operator =
 
Dear all, I have my Node class: #include <string> #include <set> class Node{ priv...
[10 replies] Last: I added body to the destructor, and voila! Its working! You are a geni... (by Ana Developer)
A template Member inside a non templated class?
 
Hey geeks, why is it not possible in C++ to have a virutal template member function in a...
[1 reply] : You can't have virtual template functions in any class period. The ... (by jsmith)
Exceptions, from a higher view
 
OK... Can someone justify common exception usage? I have come into programming from mathematics f...
[9 replies] Last: What I said above, which is mostly what Sutter and Alexandrescu say in... (by jsmith)
(Almost Complete?) Database Connection Pool
 
I fell in love with the C++0x lambdas with this one after trying for a while to find an elegant pool...
[1 reply] : Hi Luc, it would be good if you intend to carry your database connecti... (by sohguanh)
October 2010 Pages: 1... 1516171819... 23
  Archived months: [sep2010] [nov2010]

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