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

C++ Exercise Issue
 
I need some clarification in tracking down a problem I am having. Attached is a zip file that has a bulk of the files used in this assignment. I am recievi...
[1 reply] : Have you got any virtual functions? and do the virtual funtions have t... (by guestgulkan)
Why does this program give -1.#IND
 
Hi guys, why does this code give -1.#IND? I've tried evaluating cos(i*dN) by itself and it doesn't return 0 for pi/2. I'd appreciate your help very much. BTW...
[1 reply] : if(i == 0 || i == n) sum +=sin(z*sinh(tan(i*d... (by ne555)
speed of calculation in microseconds question
 
Hi guys, I was reading another post and someone wrote about how many microseconds two different functions took to calculate the same results... (i didn't want t...
[8 replies] Last: The "epoch time" is a system-specific timestamp. (by Duthomhas)
English Word Database
 
I'm just looking for a good English word database. If you know of a fairly complete one please provide a link. It must be formatted, or easily formattable, for ...
[5 replies] Last: Thank you for your help. I think these will be good for now. I'll test... (by Browni3141)
Double arrays occupy overlapping memory
 
I'm coding in C++ on MacOS 10.5 and I was debugging a BAD_EXEC_ACCESS and I came across a strange issue. I noticed that an array entry was consistently being au...
[3 replies] Last: copy constructors, assignment operators and destructors : If you need... (by PanGalactic)
by zeos
compiling enigma plugin ERRORS
 
hello. i want to build plugin that when i put a code the programme add this code to the url and connect to the host for activing account url = "http://w...
[2 replies] Last: thanks thanks thanks thanks Mr Moschops Now it work perfectly .... (by zeos)
Console Based RPG
 
***FIGURED IT OUT WOOT!*** So I am working on a console based RPG game where you play as a brave ampersand symbol sent into a dungeon to collect dollar sym...
[10 replies] Last: Thanks for the advice =] I'm going to check it out. (by macrophage001)
linking error in declaring the template declaration in separate .cpp file
 
hi . I have a 3 file static.h ,static .cpp and main.cpp , In the static.h ,class template Typec is declared having the static member variable and function...
[2 replies] Last: very much thanks to simeonz on explaining very briefly I ever seen ...... (by chnnaveen)
problem about iterator in class
 
Dear all, Now I have to treat data in vector format. What I want to do now is to either insert ot erase an element to or from vector respectively. However, a...
[2 replies] Last: You may need typename vector< vector<T> >::iterator . But why are y... (by ne555)
Constructors and deconstructors.
 
Hello everyone, new member here =). I'm having a problem with a lab I'm supposed to do for school and can't figure out the code >=(. Hopefully I can get some he...
[1 reply] : Read the section on constructors and destructors http://www.cplusplus.... (by Return 0)
by vladi
getData for multidimensional array! *IMPORTANT
 
I have to read this input file of arrays. The first column is divers second column is difficulty and third array is 5 judges scores. HOW do input this file a...
[no replies]
Need explaination with string find
 
Hi, can anyone care to explain to me how the following code work? I got a code to basically to remove duplicate character but I do not understand how it work. T...
[3 replies] Last: Thanks for the reply! Am I right to say if the char had not been added... (by shanex88)
C++ Alternating players
 
I want it to alternate from player to player but I cant figure out how. This is what ive got so far. #include <iostream> #include <stdlib.h> #include <t...
[12 replies] Last: Also: about vectors and dynamic allocation, vectors are harder to teac... (by sargon94)
Redefining the visibility of virtual functions in their subclasses
 
Hi Everyone, I came across this problem recently. If I have some abstract interface and a class that implements it: class IFoo { public: virtual...
[1 reply] : I know I'm probably violating some sacred c++ rule of good practice ... (by Disch)
stack overflow
 
I will be learning about stacks next week in school but am wondering if anyone can give a generalized answer to this. How can a stack overflow be used to gai...
[10 replies] Last: so jsmith, one would basically want to make another process (that has ... (by closed account zwA4jE8b)
rand_s() issues
 
I am trying to include rand_s() into my source code. #define _CRT_RAND_S #include <cstdlib> I convinced this would work... BUT IT DIDN'T!!! ARRGH! ...
[11 replies] Last: See the post here: http://www.devmaster.net/forums/showthread.php?t=12... (by closed account S6k9GNh0)
by fengxu
Exponent part in scientific notation
 
When I use %E for scientific notation, different result will be obtained if I use different compiler. In windows (mingw), I got 3 digis in exponent part 1.600E...
[4 replies] Last: To generate a standard output file with X.XXXXXXE+XX (like 0.123456E+0... (by fengxu)
Value intitialization, default initialization
 
This default initialization and value initialization business is killing me. It is rephrased in every next version of the standard. I can understand the basic i...
[18 replies] Last: [quote=ne555]I don't see in your quote any form that a variable could ... (by simeonz)
Managing Multiple Threads
 
I am using SFMLs "System.hpp" file and "windows.h"+"WinBase.h" and no namespaces everything else is from the standard C++ library Hi Everyone, Let me ...
[6 replies] Last: Actually Windows centric is fine, since you made your suggestion I too... (by Computergeek01)
Replacing tabs with spaces in txt file
 
What commands i have to use to replace tabs with white spaces reading an input txt file? Thank's to all!
[3 replies] Last: '\t' is the tab character. '\0009' is a multi-character constant (NUL... (by PanGalactic)
January 2011 Pages: 1... 34567... 24
  Archived months: [dec2010] [feb2011]

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