General C++ Programming - January 2011 (Page 9)

DLL Interface for static template array
 
Hello, I'm trying to figure out the proper syntax for addressing a warning I am getting with my project. The specific warning is C4661 and I'll try to explai...
[no replies]
Creating Registry Keys Using C
 
Can anyone help me how to do this thing. I'm using Borland C compiler. Please Help me guys. I don't use MS Visual Studio just Turbo C only.
[1 reply] : Please do not double post. You asked this question a week ago and got... (by PanGalactic)
Convert Double to Char Array
 
Hi, I am having a lot of trouble copying a double value 'x_pos' into a char array 'x_position_string'. I have been trying to use sprintf but i am getting an ...
[2 replies] Last: I usually use a template function with a stringstream to do this but y... (by quirkyusername)
High resolution cross platform timer...
 
I have some old code that I use for ad hoc profiling of algorithms. It is Microsoft/Windows specific and uses the CPU Time Stamp Counter (maybe Intel CPU speci...
[4 replies] Last: That's good to know. :0) (by closed account z05DSL3A)
working with matrix and header
 
Hi guys! I'm a c++ beginner working on ArcGis derived .asc data, with the follow form: ncols 572 nrows 375 xllcorner 614271.24923309...
[3 replies] Last: I just try to follow indication, but I have already some problem... I... (by beccotrat)
by ladman
cant get sort program to work
 
Im working on this program for class. I have an idea on were the problem lies, but i dont know how to begin fixing it. i beleave the problem is in the void fu...
[4 replies] Last: i was told it would work with either or. im not sure what the differen... (by ladman)
Hash table
 
I know i can find notes and tutorials on hash functions and hash tables on Google. However all the notes and tutorials i have found are not very clear. They all...
[3 replies] Last: For a general introduction on how hash tables work, see http://en.wiki... (by softweyr)
Price Manipulation
 
Problem Statement: Price manipulation You are required to create a class in C++ named Price with the following Data members, Data members should be publicly ...
[2 replies] Last: when i type c++ in google this is the first site that comes up. it wou... (by acorn)
how to merge arrays into one.
 
Hi Guys. Happy new year to all. New semester kick off and program started, so I have a small question. I just want to know how to merge arrays into one in...
[1 reply] : in this case temp = ary +10*ary +10*10*ary . to make it loopable you h... (by hamsterman)
by declan
Safe programming practice -- set pointer to NULL after delete?
 
Hey everyone, I have noticed that heap corruption is one of the hardest things to fix. I find a common one for me is deleting heap memory that has already be...
[4 replies] Last: +1 kbw. Use a managed pointer class instead of raw pointers. std::... (by jsmith)
Where do you prefer to declare variables?
 
Do you like having them all in one spot at the beginning of the program, or just declaring them as you go?
[7 replies] Last: Yes, I agree -- the reason why you think it isn't very readable is bec... (by jsmith)
by uiiihr
Unsolved problem, don't let it sink: Read huge txt's into memory efficiently? (1,2,3,4)
 
I am using the method below to read a Large space delimited txt files(About 900 Mb). It took me 879s to load the data into memory. I am wondering if there is a ...
[65 replies] Last: About the firs part of the file, I just wrote a little code that shoul... (by beccotrat)
Date class with problems
 
hello, i have create a date class to compare dates, but there is a problem in my code, when i create a new date object it changes the values of others date obje...
[2 replies] Last: ok... xD thanks, i have actually read that but i didnt realize what i... (by janomichi)
by mals1
dijkstra's algorithm
 
i have a small catch in following code. /* to implement dijkstra's algorithm in c*/ 2 3 #define MAX_NODES 1024 //maximum num of nodes 4 #de...
[4 replies] Last: now how do i add a predefined dictionary to my program and add words ... (by mals1)
maximum in its row and minimum of its column at the same time.
 
if there are any element that is maximum in its row and the minimum of the column at the same time. If so, the program displays the position (row and column) o...
[no replies]
operator of template class
 
Is there a way to set it up so that the complex class when set = to a double its makes (double,0) heres what I'm tryin: complex::operator=(double param) ...
[11 replies] Last: Quite right, my mistake. (by kbw)
by gpfs7
formatting
 
I read from a file and am printing to another file this what the printerfile looks like, what is wrong with the source code for it to not format correctly ...
[no replies]
problem with loading WSDL int Visual Studio 2008 (C#)
 
I was given a wsdl file to create a web service client. When I use VS to load Web Reference, from the wizard screen I can see the three methods. But once I g...
[no replies]
by gpfs7
aborting error
 
when i run this program it asks me for the first file , then when it asks me for the second file i get an abort error, I am not sure what I am doing wrong, I a...
[2 replies] Last: im sort of confused with what your saying, im confused overall with th... (by gpfs7)
Cannot find a way to define my functions..
 
I have a big function problem. I am trying to make a program that writes the user input to a file until the user inputs '*'. Then closes the file, reopens it an...
[1 reply] : You have some brace errors. Functions need to open with {, and close w... (by Zhuge)
January 2011 Pages: 1... 7891011... 24
  Archived months: [dec2010] [feb2011]

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