General C++ Programming - May 2011 (Page 26)

by Divad
STL compare function in a struct
 
bool comp(int a, int b) { return true; } bool(*fn_pt)(int,int)=comp; set<int,bool(*)(int,i...
[1 reply] : because what you wrote there is a member function declaration. (by hamsterman)
by Skills
Thank You (1,2,3)
 
smoking and non smoking
[43 replies] Last: thank you i knw i have done that. and thnx 4 ur help...... (by Skills)
Need to create C++ Programs
 
i need to bild program this is a screen or output to black screen Useing For Loop 01111111111111...
[3 replies] Last: Don't give people code. It's not going to teach them anything. (by hamsterman)
Adding functions in to C++ code
 
Hello I have a pythagDistance function and i am unsure how to enter it into my main code. Any ideas...
[no replies]
by jackie
Menu Error Checking
 
I have the following bool Exit = false; while (!Exit) { int choice; ...
[1 reply] : if( cin>>choice ) //do stuff... else{ //input could not be inter... (by hamsterman)
Linked List/Stack/Queue Template problems
 
I've designed a linked list for an assignment and it works by it self fine, but when I inherited fro...
[4 replies] Last: I´m not sure about exception handling myself too, but why are you thr... (by HenriK)
I need help with hangman
 
#include <cstdlib> #include <iostream> using namespace std; int main() { string words =...
[1 reply] : Firstly, strings need quotes around them ( "cat","dog" ... ) Have ... (by hamsterman)
meaning of a=b>>1
 
I am cheking a function writed in a library dor digital image processing by other programmer, bo...
[4 replies] Last: it is a division by 2, which I forgot. (by Azagaros)
Creating a file by name of user input
 
I need to give the user the option to write the name for a new file and then write an array to the f...
[5 replies] Last: I guess I don't understand why you need to dynamically allocate it wit... (by Azagaros)
by gizzmo
calling an object
 
Hi, How can I write a class which instantiation can be called this way object(1,2) ? To be specifi...
[1 reply] : class matrix{ public: T& operator()(int, int); const T& operator(... (by ne555)
If Statements
 
This has been really bugging me. I see codies using if statements like this: int Variable( 10 ...
[3 replies] Last: int n = ...; bool b = n; //implicit cast //now if( n == 0 ) ... (by Mathhead200)
Hello I am new
 
I am new to the Forum. I'm a good programmer, best in class, not to brag, but I have never actually ...
[3 replies] Last: You might want to put your words in quots too: string words ={"cat",... (by Galik)
HELP WITH HANGMAN
 
Could someone please help me create a hangman game. Tell me where to get started at least? Thanks fo...
[5 replies] Last: Got to get into my chat type of mode. (by mcqueen)
Hangman Update But Still Need Help
 
#include <cstdlib> #include <iostream> using namespace std; int main() { string words =...
[1 reply] : #include <cstdlib> #include <iostream> using namespace std; int mai... (by mcqueen)
Writing, compiling, and linking against DLLs
 
How does one make and use a DLL? everywhere I've looked is in fragments and the fragments don't add ...
[6 replies] Last: Not yet, but its methods described looks alien to me. (by Ignatus)
Please help me with reading data
 
I'm trying to read data from a separated file into array of structures. Somehow this thing is drivin...
[2 replies] Last: Thank you very much. I figured out what I did wrong. Again, thanks (by leotime429)
by msem92
C++ program to detect palindromic words
 
Google works well to find palindrome programs for numbers, but the ones I find for words generally d...
[2 replies] Last: Compilation errors/warnings: line 16: Error: Multiple declaration for... (by msem92)
by HenriK
Problems with pointers
 
Hi, what´s wrong with this code: #include <cstdlib> #include <iostream> #include <time.h> us...
[5 replies] Last: Oops, my bad. It seems to work now, but could somebody please explain ... (by HenriK)
using std::maps
 
I've been trying to get my head around maps having never used them before but I'm confused at to how...
[9 replies] Last: That's because it is a bad iterator when you try to print it in Star... (by Disch)
Multiple class inheration problem
 
Hello everyone! I'm trying to make a program with multiple class inheration, but I get some really w...
[3 replies] Last: No problem. You´re welcome. (by HenriK)
May 2011 Pages: 1... 2425262728... 32
  Archived months: [apr2011] [jun2011]

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