General C++ Programming - August 2012 (Page 17)

getting an error from a library include
 
Hi - I have a program with an include for the first line: #include <iostream> And it gives me a slew of errors: make: Entering directory `/Volumes/1_TB_...
[3 replies] Last: Problem is resolved. Evidently I was using in include path that contai... (by mzimmers)
LOOPING
 
Hey guys im doing some basic programming using loop statements my target is to produce an output like this: ***** **** *** ** * but no luck? :( her...
[7 replies] Last: #include<iostream.h> char x; //this isn't in the right place main() ... (by dem7w2)
Please help with this ..
 
#include <iostream> #include <fstream> #include <string> using namespace std; int main () { ifstream inputFile; inputFile.open ("proud_mary.tx...
[1 reply] : What would the function if (word >= target) do? it finds the first c... (by coder777)
Use Of Lists
 
Hi! Can I please get some sample code, with the use of Lists.
[2 replies] Last: http://cplusplus.com/reference/stl/list/ There are examples for each ... (by moorecm)
Thread question
 
I'm pondering a question, and have made a harness to do some testing, and would like someone who is smarter than me to straighten my head out. Here's the imp...
[5 replies] Last: Hehe. You guys are fast. I should have waited a few more seconds befor... (by JMJAtlanta)
need help with my sdl rpg game
 
i am writing an sdl rpg at the moment, and i have run into a bit of a problem. i have one class for the player, wich contains all the atributes and stuff like ...
[7 replies] Last: @Script Coder Include guards doesn't prevent player from being defined... (by Peter87)
by SVD400
URGENT NEED OF HELP!!
 
Hi guys I'm doing a Ray cast function and have been given 5 steps on how to do it this is step 1-: for (int nColumn = 0; nColumn < m_nViewWidth; nColumn++)...
[1 reply] : why did you make a new thread when we answered half of your questions ... (by viliml)
Scope of objects declared/defined in header file
 
Is the scope of all objects declared in a header file a file scope? I know that objects in a cpp file declared outside of the main function are considered glob...
[6 replies] Last: @Veltas I've always assumed the compiler doesn't care about files to... (by vlad from moscow)
by devync
any recommendations on programming away from pc?
 
As I am learning more and more c++, I am having more and more snippets of code I want to write while away from my PC, but I don't want to have to get up and go...
[4 replies] Last: That is an awesome web site (by Script Coder)
Sharing information between two different programs
 
I have a program written in C++, which evolves a neural network and, whenever a new solution is found, saves it to a binary file using an ofstream . I would li...
[3 replies] Last: The simplest solution I can think of is to write every solution to a d... (by kev82)
Problem with calling function from derived class by base class
 
I can't figure out why the Node Class is unable to call the derived class Grocery to set the Item. The Grocery class is a derived class of the Node class. ...
[3 replies] Last: that did it I totally had that backwards. (by jonyrk3)
by aj3423
implement template class like std::tr1::function
 
Hi, I'm trying to implement a simple signal class, here's the code: //R=return value, T1=arg type1, T2=arg type2 template<typename R, typename T1, typename T2...
[2 replies] Last: That's it. Thanks viliml. (by aj3423)
Need some Extra Eyes on this HomeWork Assignment
 
I have been fighting this for almost a week now and I can't figure out the issues. The program is not working the way that many of my previous assignments did. ...
[7 replies] Last: Too much information jonyrk3, but I'm glad I could help! (by Veltas)
by kkg
printf vs cin
 
This may be a stupid question but I have to ask, is there a greater advantage to printf other than formatting I should be aware of? That is there something deep...
[4 replies] Last: printf is hard coded to support the built in types. C++ allows the cr... (by kbw)
A bit of object collision help please
 
I'm working on an object collision engine for a game and I have run into a bit of a problem. If I have 2 overlapping circles A and B, how far must A be moved...
[7 replies] Last: The link was exactly what I needed. Thank you! (by blueeyedlion)
by RyanM
segmentation Fault - Pointers
 
Why do I get a segmentation fault? #include <iostream> using namespace std; int main () { int x = 5; int *a; int *b; *a = x; b = &x; cou...
[4 replies] Last: GOT IT! THANKS :) (by RyanM)
Need some help with a program ..
 
#include <iostream> #include <fstream> #include <string> using namespace std; int main () { ifstream inputFile; inputFile.open ("proud_mary.txt"...
[1 reply] : I did this program above It is very bad in C++ to write a program w... (by Moschops)
by RyanM
Constructors copying other objects (1,2)
 
I have been looking at lecture notes from MIT to learn C++. In specific: http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-096-introduct...
[21 replies] Last: Thanks everyone! (by RyanM)
by Sak J
How to connect to a boost::signal with a void returning function?
 
Hi All, I'm trying to connect a simple void returning function to multiple signals of varying signature, I can see some references mentioning its possible usin...
[1 reply] : It compiles with only one warning on my compiler: [quote=the compiler]... (by viliml)
by fan90
Display
 
I am trying to output the result but it doesn't show anything. In my header file i have this struct info { char * name; int age; }; class player { publi...
[6 replies] Last: Thanks all for the reply. I was able to display successfully. Instead ... (by fan90)
August 2012 Pages: 1... 1516171819... 31
  Archived months: [jul2012] [sep2012]

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