General C++ Programming - August 2008 (Page 4)

Iterators and Templates of Templates
 
Hi All, I am getting compile errors that I don't understand when trying to declare an STL map ite...
[2 replies] Last: Bingo. That's it. Thanks!! (by TimMoore)
by Javac
Brute Force Multidimentional Array
 
Hey all, Just worken threw an assignment and i have some working code that will get me the marks ...
[5 replies] Last: Dijkstra's algorithm is A* with h(e) = 0 for all edges e (usefull if n... (by exception)
I need prog. will accept dollar value & convert it to peso using "BREKDOWN"
 
Write a program that will accept a dollar value and convert it to peso equivalent to 1dollar=44.76 ...
[2 replies] Last: thank you for your reply (by kokie29)
Stray '\239' in program
 
After compiling I get this error message: 'Stray '\239' in program' I've been programming in C++...
[6 replies] Last: Today I went back to trying to solve this problem, and I was able to u... (by Corsican)
Please correct the example in the string library
 
While I am looking at the example at http://www.cplusplus.com/reference/string/string/reserve.html...
[1 reply] : It should be ifstream file ("test.txt",ios::in|ios::ate); //Or mayb... (by helios)
by mj4u7
C++ Programming Code won't work!!
 
/* Week 4 Individual Assignment Class: C++ PROGRAMMING II PRG/411 Assignment: SR-mf-003 ...
[2 replies] Last: Few suggestions 1. Similar to other methods, create a method doub... (by anilpanicker)
by astro
changing memory values.
 
Greetings i need to know how to change values of specific memory addresses in c++. So far i have be...
[2 replies] Last: sorry, i htought i posted the link http://www.dreamincode.net/forums/... (by astro)
Finding which point is convex in a simple polygon
 
I have a n vertex 2D polygon. I wish to determine if a point is the convex point. I would prefer...
[12 replies] Last: You can make a function with this formula and then pass as parameters ... (by Mitsakos)
by g0dwyn
Header/Source Pecularity
 
Hey all, So I've got a header/source pairing, with the usual guard words, properly arranged curly...
[6 replies] Last: Ahh, wonderful. Problem solved. Thank you very much! (by g0dwyn)
How to sort a string vector
 
Hello, I have never worked with vectors but is finding them not difficult. However I am trying to s...
[5 replies] Last: You have to provide a 'comp' parameter which behaves case insensitive... (by Mitsakos)
Polymorphic object pointer question
 
I have a abstract class with one single virtual member function. From this class I derive a lot of o...
[10 replies] Last: To the original question, can a derived class have a base-class type p... (by satm2008)
MULTISETS!
 
hey guys. really sorry. i'm due for an assignment on multisets. can anyone help me spare an example....
[1 reply] : Try the references on this site, they are really good. Here is the ref... (by mahlerfive)
ISO C++ forbids declaration of 'Node' with no type
 
Helo, i'm trying to implement the singly-linked list data structure. The problem is, that i'm get...
[12 replies] Last: Okay, now the program compiles... and the Chained List datatype seems ... (by kanesoban)
Equivalent to serialization in Java
 
I was wondering if there was an equivalent way to serialize objects like in Java. For example, let's...
[2 replies] Last: The C++ standard doesn't specify any such library, but they do exist. ... (by Duthomhas)
by sfx81
error when using input iterator
 
Hi all. I am a newbie and trying to use stl input iterator. Here is the code std::istream_iterat...
[2 replies] Last: Lovely. Thanks mate for the quick reply. Appreciate it. (by sfx81)
<ctime>
 
Hello, I'm tring to get into using some time functions. I looked at the <ctime> overview here...
[3 replies] Last: I thought a macro is the same as a defined constant...? and I understa... (by enduser000)
program tha obeys the rules of logic gates(AND, OR)
 
Hi,I have been trying to write a program that obeys the operations of logic gates(AND and OR).I'm cu...
[15 replies] Last: I can't find it. In any case, mentioning a particular architecture in... (by helios)
problems with getline
 
I have this code: string tempParam = ""; for(int i=0; i<numParams+1; i++){ cout<<"Please en...
[8 replies] Last: Thanks much. Nvm though, I fixed it myself =D cin.ignore(1024... (by BobFijiwinkle)
problem with STL containers
 
Hi, I've developing a socket-based network piece of software as hw. I ran into some problems usin...
[7 replies] Last: I've solved the problem guys... the problem was related to the fact th... (by djalexd)
by mws535
Dynamic allocation of templates
 
Hi, I'm having some problem with dynamic allocation of templates. My code contains a template cla...
[7 replies] Last: But that doesn't solve the problem of why it's failing to construct an... (by helios)
August 2008 Pages: 123456... 9
  Archived months: [jul2008] [sep2008]

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