Beginners - September 2011 (Page 25)

Begginer Excercise
 
Soo... After learning some more C++ I decided to write the "Graduation" program from http://www.cplusplus.com/forum/articles/12974/ . But I am stuck at very be...
[8 replies] Last: If you need to remove elements from the middle of the collection duri... (by closed account 10oTURfi)
Regarding build process.
 
I have an application that is dependent on a dynamic external library. To compile my application I give include directory of the library . I understand that I n...
[6 replies] Last: I even tried calling the interface that changed, one of the input par... (by Athar)
multiple definition error with Dev-C++
 
Well I thought it was working... I seem to be having an error with my code that's assuming I've defined functions twice. I have a class broken down in header ...
[7 replies] Last: I just switched to using Visual C++ and suddenly everything works like... (by huitlacoche)
by chrarv
simple template compile error
 
Hi to every one I have a very small question: Trying to mimic functors i have a simple compare template function which i try to pass it to calculate a sim...
[4 replies] Last: thnks it worked ! (by chrarv)
by tonnot
Any way to pass 'nothing' to a function member defined 'by ref'
 
I have this function ( depending on some criteria id will have 1 or 2 ) my_function(int &id) { id=1 .... id=2 } Ok, sometimes I want to call the f...
[5 replies] Last: I reserve opinion as to what I like as a solution as the full details ... (by closed account 1vRz3TCk)
New to C++
 
So I'm playing around trying to teach myself some stuff in C++ from this book I got. Can you take a peek at my code and read what its suppose to do from the com...
[7 replies] Last: Makes sense, sorry forgot about the tags! Thanks for the help though... (by needtopass)
“getline" and "cin" conflicts
 
Hi I just wonder why can't the program run as it is supposed to. Could anyone explain how it really work? THX! #include <iostream> #include <string> ...
[11 replies] Last: IIRC, the standard doesn't actually require sync () to do anything ... (by Duthomhas)
recommended references
 
any recommended texts/reference books to c++ correct coding? other than 'a first book of c++'
[4 replies] Last: http://www2.research.att.com/~bs/C++.html (by hanst99)
by tonnot
Is possible to add empty data to a vector item ?
 
I have a vector that stores data from a custom structure. Ok, depending of some value I need to store addicional data of another structure. In example : s...
[4 replies] Last: I understand. I know that I can have two vectors the main for A and an... (by tonnot)
by Vhorx
How to link a button to a new window
 
Hi everyone, back again. Obviously im new to C++ but i have big dreams :P This is a pretty newbie question, Anyway, i have been reading a book and i h...
[7 replies] Last: You probably need to include the header of 'Form2' (by coder777)
What's std::vector::reserve() for?
 
Hello all, just wondering. I know I should use resize() if I'm going to assign new values with the subscript operator, but what purpose does reserve() ha...
[3 replies] Last: Kyon - it's not everytime. I am not sure if this is guaranteed by the ... (by hanst99)
Grabber utility for Allegro not working
 
Hello everyone, I'm trying to get into game programming but I'm having a hard time on this certain step in allegro. In a specific allegro tutorial they're askin...
[5 replies] Last: You never *had* to use it in the first place. You could have used zlib... (by hanst99)
Skipping left over lines in a text file
 
say i have the following text in a file: . 2546 S d5e3 Bill 5151 C d5e3 Bill what I want to do is check the first item, if its...
[4 replies] Last: You can move to the next line using inf.ignore(std::numeric_limits<s... (by Galik)
Need advice on nested if-else statements
 
Can someone please help me figure out the error? After I input the number of wheels, if it is greater than two, then I want it to go to the statement asking how...
[1 reply] : Use == instead of = for your if statement. And [co de] tags.... (by Zhuge)
Need Help with *Understanding Concepts* with fstream
 
So, I recently started using name "fstream" in my programs. I even have an assignment using fstreams for class, which is really...really basic, so before I sta...
[no replies]
Clarification on what is an object
 
Hey everyone, I am just a newbie so please bear with me. For my assignment I was specified to not use any c++ string objects. What does this mean exactly? ...
[2 replies] Last: thankyou (by coolbran)
Seeking basic RPG Critique
 
It's really simple- you select a class, and that class affects how much damage you do to the one monster. This is all procedural programming- would it have bee...
[2 replies] Last: Hi Noah, The code looks nice and clean. I haven't ran the code. Just ... (by carebearboy)
Help with a Tax Table
 
Hi all, I am new to the forum and also to C++ programming. One of my projects is that I have to write a program that calculates taxes for different brackets...
[4 replies] Last: I do need to create a loop and use break to exit the loop with negati... (by shacktar)
character sequences using array
 
int main () { char nom ; string name; cout<<"entrer votre nom \n"; getline(cin,name); nom...
[2 replies] Last: As Athar said, most of the time you don't need C type strings. If you ... (by sbroadfoot90)
Declaring Variable Inside Member Function
 
Hate to ask this, because I've worked around it in the past, but I can't recall how to fix this issue. So I have an assignment in a class, I can only have on...
[4 replies] Last: If you declare a local variable that is not an integral type (ie some ... (by sbroadfoot90)
September 2011 Pages: 1... 2324252627... 48
  Archived months: [aug2011] [oct2011]

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