General C++ Programming - December 2009 (Page 9)

Explicitly call of desctructors
 
Hi, i have some function which works with linked list, this linked list is created in this function, the size of linked list can be more than 100 000. the probl...
[1 reply] : In principle, you can, but you need to be clear on what you intend to ... (by kbw)
C++ programming using tesseract
 
Hi, I would like to ask whether anyone here knows how to use tesseract in c++? I need to do some character recognition but I do not know how to implement tesse...
[no replies]
multiple threads
 
Can someone give me an example of how to create and use threads in C++? Just a very simple example would suffice...
[4 replies] Last: Hope it makes sense and it's what you needed :) (by Mythios)
CSV File C++
 
This is actually based off an example helios gave me a fair while back. I needed to do this in C back then though. But now I wanted to throw it into C++. Any...
[1 reply] : Just clicked then. I changed it too: void LoadDataBase( std::vec... (by Mythios)
by sporx
load an unknown named .txt file c++
 
here is what i currently have ifstream Myfile("tests000.txt"); int trow=0; int trow0=0, trow1=0, trow2=0, trow3=0, trow4=0, tro...
[2 replies] Last: If you know the amount of files there are going to be you could do som... (by Mythios)
Any Good Sites With Coding Exercises?
 
I'm trying to stay up with my C++ and build a small portfolio of code that I can show potential future employers. I have been looking for small projects to do t...
[1 reply] : http://www.cplusplus.com/forum/articles/12974/ You could try the la... (by firedraco)
Task
 
Hello I am writing a program in c++ which consists of a menu where the user has to choose between buying a plant or quitting. Each plant which the user can b...
[no replies]
by flo
How to use RIPEMD160 to convert string "abc"
 
Hi I have a problem I'm trying to hash a string "abc" with function RIPEMD160, but my hash_value is not correct My code is: string s=”abc”; int a ...
[3 replies] Last: Ideally, a hash function interface should have only three or four func... (by helios)
by Howie
Best/Fast structure for variable "variable"
 
Hi, i am new to this forum. I read a lot but this is my first post. I need an universal variable which can hold long,double,std::string, double most of th...
[8 replies] Last: Well void* isn't universally compatible. Acutally, I should leave... (by jsmith)
by CQ75
Linked list: Array problem
 
The point of this program is to take information from a text file (consisting of several sets of data, each set including a word not bigger than 30 characters a...
[2 replies] Last: Thanks! That worked I didn't want to use char arrays. Every program... (by CQ75)
File scope variables
 
I am a little bit confused about file scope variables. As far as I am aware, if I declare a variable as static whilst it is outside of all functions, then ...
[2 replies] Last: Ahh thanks. Suddenly I think I understand the point of the extern k... (by arathalion)
by madhuk
Operator overloading for heap objects.
 
Hi all, Operator Overloading for Stack members In MyClass.h class MyClass { MyClass operator +(MyClass inVar); }; In MyClass.cpp M...
[4 replies] Last: jsmith said that it wouldn't be 11. Anyway, I would advise agains... (by Disch)
how to convert double to string in ####.### format
 
is there any function in stl or anywhere to convert it quickly? thanks
[2 replies] Last: thanks (by chrisben)
by madhuk
using const return value for method..
 
Hi all, //////////////// Vector class ////////////////// In Vector.h: Class Vector { private: int X; int Y; public: Vector(int x , int Y)...
[2 replies] Last: Hi Bazzy, Thanks for the reply. I will try that one. -Madhu. (by madhuk)
error LNK2019: dllimport with multiple template instantiations
 
Hi, I've run into a nagging problem and I hope somebody can help me. I'm using visual studio 2008 I have a template vector class in a dll that I am exporting ...
[no replies]
structure not working
 
I am trying to incorporate the following information into a structure: 45256 Rodrigues Joana 58 75 58 61 59 75 63 92 37915 Wright Michelle 98 83 56 62 63...
[13 replies] Last: You have 8 gr in each line but read 9: int gr ; for (int i = 0; ... (by melkiy)
by giro82
TChart logarithmic scale
 
Does anyone know how to set vertical axis in TChart component to show logarithmic scale from 1 in direction to 0 with marked points on scale as: 1 10-1 10-2 10-...
[1 reply] : What does this have to do with programming in C++? http://lmgtfy.com/... (by Zhuge)
by sporx
search for string within a string
 
Hi, in my current project there is an instance where i need to search a string of letters for another given string. both strings are declared as strings, and no...
[5 replies] Last: totally makes sense now, ive actually noticed that but never put two a... (by sporx)
Algo challenge
 
This is a general challenge, opened to all. Recently, I saw code I wrote when I was a kid that shuffled a regular deck of cards. I made no attempt to rando...
[13 replies] Last: Can you come up with a better/shorter/(more elegant) solution? ... (by jRaskell)
Time complexity of map functions: erase V/S clear
 
Hi All, Have look at the following code snippets. map<string,Object*> amap; // delcartion of map for ( map<string,Object*>::iterartor amapitr = amap.be...
[9 replies] Last: A general rule of thumb is to trusy the algorithms and container membe... (by kempofighter)
December 2009 Pages: 1... 7891011... 16
  Archived months: [nov2009] [jan2010]

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