General C++ Programming - September 2010 (Page 15)

by LB
Why are there Vector Iterators??
 
I can see the point in map iterators and they make perfect sense, but vector iterators?? What is the...
[2 replies] Last: Adding to what Disch has already said about the common interface, the ... (by Galik)
by riun23
Classes won't compile
 
Hey guys, i was wondering why Dev-C++ won't compile the following code: (P.S. This is coming out of...
[8 replies] Last: dev c++ it's open source download the patches. (by clover leaf)
by ps1000
Segmentation fault when calling function
 
Hello I had a problem with calling a function ... (it's working now, but I'd like to know why ;-)...
[5 replies] Last: [quote=Disch] } // EXPLODE Thanks for this, it gave me a real laugh :... (by LB)
by wtf
Testing for logic errors in non-optimized recursive loop
 
I had trouble with my previous diminish functions in my sudoku class so I rewrote them, this time re...
[3 replies] Last: think i found out what it was. I was using a int points; to keep trac... (by wtf)
WWaaarnniiing??!!
 
Hello.I get the warning 125 Z:\media\g_\fff\implementation.cpp address of local variable `szr...
[15 replies] Last: They are. But the point is, if you pass the pointer to the function... (by Disch)
by saik
Issue with Vectors
 
I am trying to initialize a vector with zero and assign values to it(10,20,30 in this example).The p...
[5 replies] Last: Hi Galik, Thanks for your prompt response. Yes, after making the c... (by saik)
by JaR
Pointer-to-Member-Function Conversions and Virtual Base Classes
 
Hello! I would like to have some input on this obscure feature of the language. First some code t...
[no replies]
Handling arrays of objects in memory (1,2)
 
Hello! I want to understand how dynamic memory allocation works for some code I wrote, so I'll try...
[21 replies] Last: I cannot change my implementation now cause the code is almost compl... (by deluvian)
by mTy
[C++] Button handle
 
Hey, i have a small question. How can i get a handle form a other button in another programm and ho...
[5 replies] Last: Haven't you taken a look with Spy? WM_LBUTTONDOWN and WM_LBUTTONUP (by kbw)
by saturn
traits classes
 
Hi, I am trying to figure out how to generically wrap some similar classes from an external libra...
[3 replies] Last: [bangs head on wall] thanks everyone, that's brilliant. The magic t... (by saturn)
Serial Port Communication Problem
 
Hey all, I have a project that I am working on to take machine information via serial port and mo...
[no replies]
Ponters to function and to member function
 
Hi, I'm using GSL libraries to solve a system of ODE. To set the system, the code is like this: ...
[1 reply] : How can I pass member function pointer to sys? You probably shouldn't... (by kbw)
by RS232
rewrite all bytes in a file with a 0.
 
Hi to all, i have some notes regarding to secure delete of files uisng c++, but due to lack of my k...
[1 reply] : Why don't you post what you have so far and say what you have problem ... (by Bazzy)
by saik
Pointers to object
 
Please explain what does "item *d=p" mean here. #include <iostream> using namespace std; clas...
[8 replies] Last: item *p=new item ;//NOW P POINTS TO THE FIRST array element item *d=... (by hooshdar3)
Accessing the caller
 
Hello.I am wondering how can we determine type of tne caller?Any Idea?
[10 replies] Last: Thank you all. Disch, you helped me a a lot. I will do it throug... (by hooshdar3)
pdcurses sound
 
Hi there, my first post on this forum :) Is there possible to have sound in a pdcurses project? I ...
[1 reply] : Yes, but [N|pd]curses does not provide the ability to produce sound. Y... (by Duthomhas)
hash vs array
 
I have a vector of strings. For each string, an integer value is associated. I want to retrieve the...
[5 replies] Last: (The following are the average times.) Sorting a vector once takes ... (by helios)
Object is set to NULL after returning from a member function
 
Hi guys, My program seems to crash in the weirdest state. While debugging with gdb, I found that ju...
[2 replies] Last: You didn't post enough code for us to spot the problem. You'll need t... (by Disch)
How to get rid of brackets on C++ macro expansion?
 
For example, indstead of this macros(param1,param2,param3,param4,param5,param6,paramN); ;macros p...
[1 reply] : You can't. And macros are evil. You should prefer inline functions... (by Disch)
Single inheritance and Multiple inheritance
 
Anybody help me ! C++ support multiple inheritance. And multiple inheritance certainly contain sing...
[7 replies] Last: Because, in msdn, microsoft say about single inheritance in C++, but ... (by warrant)
September 2010 Pages: 1... 1314151617... 20
  Archived months: [aug2010] [oct2010]

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