General C++ Programming - March 2011 (Page 8)

Function Pointer
 
Hey, I have a header file with this line of code: extern "C" void amqC_dataInit(const char *uri, const char *channel,int (*cb_MessageReceived)(const TRAN...
[5 replies] Last: I forgot to suggest boost::function. (by closed account S6k9GNh0)
help with drawing a triangle plz
 
I have made a program to draw only the outline of a triangle which ask the user to choose a character and the ask for the height of the triangle. but I'm not s...
[no replies]
Little help here please!
 
My name is Rachael and I am a recruitment consultant for software developers across Scotland. Being honest, I am fairly new to the market and still trying to wr...
[5 replies] Last: I was chalking it up to a confidence problem, it's common enough espec... (by Computergeek01)
Thread exited with code 1 (0x1)
 
Hi, I am working with two threads. At the end of the program I am getting the message in the debug info as, The thread 'Win32 Thread' (0x898) has exited wi...
[2 replies] Last: Check kbw's point first. My guess would be that your threads aren't... (by Computergeek01)
Translating to pseudocide!!
 
#include <algorithm> #include <cctype> #include <functional> #include <string> bool palindrome( unsigned long n ) { unsigned long x = n; unsigne...
[5 replies] Last: pseudocide = pseudo suicide =) (by ultifinitus)
reference counting with smart pointers
 
hi, could anyone please point me towards a good link or post a code that helps explain how these could be implemented? thanks a lot,
[1 reply] : http://www.lmgtfy.com/?q=c%2B%2B+reference+counted+object (by kbw)
by Scharl
Hexadecimal input and output problems
 
I am having some problems with handling hexadecimals. I first want to input a string, then get individual chars of the hex values in the string. Thus, i...
[5 replies] Last: High byte is the one with most significant digits, low byte is the one... (by hamsterman)
Creating a CD menu with extended functionality.
 
I need help creating a CD menu, I know basic C++ though I dont know how to go about this, I dont know how to work with visual aspects or even create anything I'...
[10 replies] Last: Er, use tclkit . (by Duthomhas)
program works not well.. (data structure problem)
 
Dear all: My program runs slowly. And I’m not sure if there is any problem with building a tree procedure? Can anybody please help me out? ( when the dataset...
[no replies]
Need to finish program! Due soon! Need guidance
 
I have been trying for a while to figure out how to put my program together where it writes to a file the height of a projectile. The exact problem is state...
[8 replies] Last: And it should be while (h > 0.0); (by Caligulaminus)
Suggestions needed for my Process Management Code
 
Hi. I'm writing code for process lists (executes every 'process' each 'frame') and process stacks (executes the top 'process' each 'frame'). The question I have...
[3 replies] Last: @ModShop Thanks for idea. That is in fact what I have done - I should ... (by anonymous23323124)
system("cls") troubles
 
the code is posted below but what i'm having troubles with is around line 153 at the end of func2 and what i want it to do is only refresh the array but let the...
[2 replies] Last: Hi , system("cls"); is not used for clearing the buffer or an ar... (by bluecoder)
copy constructor for linked list
 
Hi , I need help for creating copy constructor for linked list with structure member. It compiles correctly but gives runtime error . The problem here is in m...
[2 replies] Last: "Array(const Array &a,string st)" is not called as you expected. Since... (by b2ee)
Drive Recognition
 
I have a web browser program that I have put on a CD. I want to find a way when i open it it needs to open an html file i have specified on the CD with it. I ha...
[6 replies] Last: Alright, if you're having troubles you could simply learn QT. =) (edi... (by ultifinitus)
Question about bracket style
 
This is kind of a useless thread but w/e. In all of your programs, do you use the first option, or the second? And is the 1st example a bad coding style? I usua...
[5 replies] Last: I find option two cleaner. You can quickly see the matching brackets. (by Return 0)
by Soko
Array/Vector Accessing large index numbers errors
 
I am working on a project involving a join algorithm (similar to a SQL join, coded in C/C++). I have tried both arrays and vectors as follows: ...
[3 replies] Last: Problem solved. For future reference, somewhere between the for loop ... (by Soko)
Using binary_search and count
 
When we use binary_search, if the value is found, can we make function returns the position of that value? Them same question with count function. Thank you f...
[2 replies] Last: Yes, a list of the positions. Thanks for your help :) (by Forte 201092)
Variable being used w/o being initialised
 
Hi, After compiling without errors in MS Visual Studio; when I hit Ctrl F5 and enter 2 digits to test it , I get a message that says "variable tr...
[2 replies] Last: Your code does not compile. :/ #define rate 0.35 //Interferes with yo... (by Albatross)
by vved
Strange function definition/declaration
 
Hey guys. Recently I come across function declared line this: type (function)(argument list); example void (free)(void *ptr); Definition is the same voi...
[2 replies] Last: Thank you, all. I got it myself finally. There is this define: #d... (by vved)
by fparan
merge sort runtime and logical errors
 
Hey there, Can anyone kindly please help me or give some ideas on how to make my merge sort program work the way it should work, based on the functions I've d...
[no replies]
March 2011 Pages: 1... 678910... 31
  Archived months: [feb2011] [apr2011]

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