General C++ Programming - January 2010

Array Output Error
 
My program will not output a random value from the array I initialized in the constructor. I can't find any reason that it is only outputting the default case! ...
[5 replies] Last: yeah -- you can't initialize them that way. That's not how it works. ... (by Disch)
Expose Only Certain Methods From DLL
 
Hi there, I'm writing a DLL and I have a bunch of classes. Some of which have virtual private or protected members. These methods don't really need to be exp...
[no replies]
"CALL" keyword/modifier?
 
Hi, I'm trying to compile a project, but am running into errors. Opening up the IDE, I am getting problems listed for the following: (.h file) virtual v...
[1 reply] : CALL is not a keyword It was probably #defined in some header as a ... (by Disch)
Array Randomization Error
 
I am trying to randomize the value of the array so that each time the Getters are called they will select a different name and level. Right now when I compile a...
[1 reply] : Call srand() at the beginning of main() not each time you use your m... (by mcleano)
Input sequence: code annotation
 
Hi, folks, Looking at the following code: template< class In, class T> In find( In first, In last, const T& v) { while ( first != last && *first != v...
[1 reply] : [quote=Robertlzw]in order to resolve r.first and r.second, my_iseq(C& ... (by PanGalactic)
by Mole
I want to know how to write logarithm in C++
 
The following series summation is an approximation for computing the natural logarithm of a floating-point value x: Log x=(x-1)-(x-1) 2 /2+(x-1) 3 /3-(x-4)...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ You could at least do... (by hamsterman)
collate::hash
 
Hey Guys, I am creating a application in which I need to store user's login name and password. Recently I happened to read about cryptography's hash functio...
[4 replies] Last: Thanks so much for the explanation TheBear (by kevinchkin)
by w0ot
C++ Average grade Calculation Error
 
Hi all, i have this codes, but i came across some problem. let say i input 4 modules. and i have like A,A,F,F. by right the ans should be (4+4+0+0)/4 = 2 But p...
[2 replies] Last: thanks helios. got it. (by w0ot)
Experienced Programmers Pls See This (1,2)
 
Closed
[21 replies] Last: i sent you another email, i have fix your code.. ~hope that is what ... (by blackcoder41)
structure of a text file, which is supposed to be readed
 
Hi, Hi I have a text File with a lot of data, which I am supposed to use as an input in a C++ program. There are several thousands observations and each obse...
[2 replies] Last: Would it be possible to edit the file by adding sentinel separators at... (by buffbill)
Morse to english and the other way
 
Hello! I am suppose to build a program that convert Morse-code to English and the other way. I will use arrays to define letters and Morse-code. I don't know...
[3 replies] Last: You have initialized the text and morse arrays with the required data.... (by buffbill)
Function operator
 
I have to build a menu driven application that calculate fraction.I want to know how the get the function operator from the user(+, -, *, /) and also how to ass...
[1 reply] : You should post some code and pose a specific question to indicate the... (by buffbill)
Find Date
 
What can I do to find the date in the HTML page of a Yahoo Finance Page?
[3 replies] Last: I have to do it in C++ only, its a requirement. I have written my own ... (by Suzanne)
"-858933460"
 
why is my program printing this strange negative number when it runs? It compiles just fine but for the age, target heart range, and maximum heart rate, it prin...
[7 replies] Last: @Bazzy hahaha. that was funny.. ^^ (by blackcoder41)
a big problem reading from a file
 
Hi, I have to make a program that includes two classes - CBirthDate keeps the information about the date of birth of a person and the second class - CStudent ke...
[7 replies] Last: Thanks a lot!!! It really works now but only when I initialize the vec... (by evanescence)
What is wrong with the following file handling code snippet ??
 
There seems to be some problem with the file pointer manipulation! PS: 'bk' is an object of a class 'book' fstream file; file.open("Books.dat",ios::binary|...
[1 reply] : In general it is a bad idea to write classes to file as streams of bin... (by jsmith)
by xyzt
error while parsing using stringstream
 
I want to parse a semicolon seperated string into integers. I used stringstream, it parses the first string but it fails while parsing the second one. Here is ...
[3 replies] Last: thank you very much for your answers. "clearing" solved my problem. (by xyzt)
How can I make a dll?
 
How can I make a dll? Thx in Advance :)
[2 replies] Last: http://www.google.com/search?q=c%2B%2B+dll+howto (by Duthomhas)
Dump all Private Data Member to File
 
Hello all, I have a poorly written class which has about 300+ private data members. I would like to know if there is a method that already exists somewher...
[6 replies] Last: Couldn't you make the members from 2 to 367 into a union? Etc: ... (by Mythios)
by dkaip
a litle problem
 
In code compiller say "std::ifstream file' has initializer but incomplete type". I work on codeblocks, wxwidgets, and windows xp. As i see the code works in o...
[2 replies] Last: Ok all, thank's for help. (by dkaip)
January 2010 Pages: 123... 17
  Archived months: [dec2009] [feb2010]

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