General C++ Programming - January 2010 (Page 3)

problem with double precision *.dat file
 
Hi, I am trying to create a ".dat" file in which I want to save the numbers in double precision wit...
[6 replies] Last: Thanks a lot to everyone. The use of manipulators that Bazzy suggested... (by awcplus)
Getting specific text from a file using function find()
 
Hey guys , i have a sting which contains data like this. <fefefefefwfwfewfew>124s2d33<!xewexewxw...
[1 reply] : You can't. String's find function only works on strings. Reading a... (by kbw)
Contests
 
can anybody from this forum initiate a contest in anyway he/she likes.LOL
[8 replies] Last: if that's the case you should start feeding your cats with mice, same ... (by pyschoder)
Can't Find Error URGENT!!!!
 
I m able to read my HTML file but correct results are not being produced, can someone help run my p...
[1 reply] : Please post the error message your compiler is giving. (by iharrold)
non recursive function (1,2)
 
Hi I have to write a non recursive function named 'fracts' which is identical in operation to the re...
[35 replies] Last: Thank you so much I figured out the program. (by coolProgramer5)
string& and string
 
Have a question on those two functions //global var string var; void func1(string myvalue...
[5 replies] Last: thanks for the help. for immutable, i think i messed up with some othe... (by chrisben)
Error with strcmp
 
Hey, I'm trying to recursively go through a C-Style char array to find a letter. Unfortunately t...
[2 replies] Last: I agree, that iteration would have been better but this is the way its... (by kenshee)
by Zhuge
Accessing defaults values for a class's members
 
So I have a class, and I'm using boost::property_tree::ptree to serialize the data. My question re...
[no replies]
A broad code design question
 
Hi, I apologise if this is too broad or if it sounds like "how do you make a game?". I have made ...
[5 replies] Last: Sounds to me like you have no idea what you're trying to do. I didn... (by JoeCoder)
Link a VC++ static lib to Dev C++ program
 
Hi, I have problems to compile a c++ program that uses a static lib that I made in VC++, I've use vc...
[no replies]
by frufu
multimap with list
 
Hi all, i'm trying to insert values into this multimap: multimap<string, list<pair<string, ...
[2 replies] Last: ok .. thx all. resolved the problem :) (by frufu)
by sushi
Center-symmetric pattern
 
Hey guys, I have a problem about programming one excercise. Here's the thing: I have to find which ...
[no replies]
Can't Find Error, PLS CHECK URGENT!!!
 
This is a program I created which reads data grom the Yahoo Finance page but despite the program bei...
[7 replies] Last: finance.htm is a sample HTML Finance Page taken from Yahoo Finance, Si... (by Suzanne)
Accessing a class stored in a vector, factory pattern
 
I have been trying to get a working factory pattern up and running, eventually for a simple strategy...
[7 replies] Last: Yeah, this is my first time attempting any STL stuff so I'm still lear... (by JoeCoder)
by Nikhar
How will I solve the following problems?Urgent!
 
Hey guys, I have got a C++ competition tomorrow and it is very important for me. Following are few o...
[15 replies] Last: @blackcoder41: anyway in first problem you post why is the answer 4?... (by poet)
Char Pointers/ String NO TIME PLS ANS
 
Ok I have been circling a long time thanks to issues with char pointers & strings.My question is how...
[3 replies] Last: True. (by Zhuge)
by sporx
reading integers from a txt file
 
my txt file looks like this: 36 6 19 15 11 7 41 8 40 9 11 3 23 22 1 30 12 13 0 0 0 ...
[2 replies] Last: nvm, i figured it out=] (by sporx)
vector of objects corrupted when sorting
 
Hello everybody. I face a weird problem. I have a vector of objects that I sort using the sort() and...
[6 replies] Last: Unless you are using dynamic memory allocation in your class you do no... (by closed account 1yR4jE8b)
Freeing char array.
 
I was working on some code that opens a file using the ofstream class and a pointer to a character a...
[16 replies] Last: helios speaks the truth. My advice about "don't hesitate to use it"... (by Disch)
copy constructor template class
 
I am trying to use a copy constructor with a template class. Here is the prototype: Vector(con...
[10 replies] Last: An article on the copy/swap idiom would be an excellent addition to th... (by kempofighter)
January 2010 Pages: 12345... 17
  Archived months: [dec2009] [feb2010]

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