General C++ Programming - January 2009 (Page 9)

Where can I find thorough tutorials?
 
Hi, I consider myself a beginner programmer with some (or even very little) experience in programming. Is there a website (besides this one), that has C++ tu...
[1 reply] : You're on the right site! http://www.cplusplus.com/doc/tutorial/ htt... (by Bazzy)
intance object from string
 
I have a String instance which contains a name to a class. Is there some way I can instantiate that class from given the class name in the string? thanks!
[1 reply] : If you want to instantiate an object of a class specified at runtime, ... (by seymore15074)
How can i write data in to file nicely???
 
i'm do my assignment and i have a bit confuse in writting to file method.This is my Uncomplete code: #include<fstream.h> #include<stdlib.h> class variab...
[8 replies] Last: implement the fuction in the student class, after/before dpl(), then: ... (by lightlord)
error: no match for 'operator='
 
Hi, I'm having a problem with this error message. To summarise the code I have done the following: 1) In a Point class I have an overloaded operator =...
[5 replies] Last: Thanks guestgulken, wooyen, you have been most helpful. My inherita... (by Hammertime)
by sadaf
oriented program
 
hi,in oriented programming i want to know how we use public in the first part for describing classes why should do we do this ?because we called them by value ...
[2 replies] Last: got any examples? It's difficult to know exactly what you want to know... (by Dacster13)
do while
 
can anyone share with me on how to make a do while statement producing the sample output... *** ** *
[2 replies] Last: #include <iostream> using namespace std; int main() { in... (by grey127)
by wooyen
seek in a large file stream
 
I need to use seekg in fstream class of a very large file, but in Visual C++ STL library, the type pos is a 32bit int up to 2GB, so when I seek to the position ...
[9 replies] Last: You're working beyond the bounds of the standard library's default mem... (by kbw)
by RossMc
Connect 4 - Column Change
 
Hi i am just looking for a bit of help i am creating a connect 4 programme in c++ and it all works fine so far just the bit i am stuck on is when the player ent...
[1 reply] : Why are you even asking for a Y co-ordinant? All that matters is an X ... (by Malachi)
Guessing Game
 
I am trying to create a c++ number guessing game. I need the program to be able to generate a random number between 1 and 100 and the user will guess it till h...
[6 replies] Last: Take a look at this article: http://simpleprogrammingtutorials.com/cpp... (by kdenisk)
by Crul
line editor problem
 
Hi, I've uploaded the files to pastebin.com dtio.h (http://pastebin.com/m3cbd209a) dtio.c (http://pastebin.com/mcea9743) a2test.c (http://pastebin.com/m...
[5 replies] Last: Have you solved the issue? (by Zaita)
class templates + inheritance
 
Hi, I'm trying to run the following code: #include <iostream> using namespace std; template <class T> class A { public: A(int a): x(a) {} pr...
[10 replies] Last: I found the answer http://gcc.gnu.org/onlinedocs/gcc/Name-lookup.html (by SuperGreenhorn)
I am wondering
 
Hi ! I am wondering what -> means ? Is it some kind of pointer? Then when do you use it cause in a code there were a -> and I changed it with a * pointer and it...
[3 replies] Last: Thanks for the reply , I will start reading about it (by Chris140)
by jrohde
What's wrong with this class template?
 
Hello, I created a floating-point 3d vector class, which I decided to make into a template so I could choose between float, double, etc. I will not post t...
[2 replies] Last: Yep. That worked. I put all the function definitions in the header fi... (by jrohde)
give an error if input file doesnt contain real numbers
 
Hello, im trying to make a program that reads real numbers line by line in an "input.dat" file (The file contains only the values to be read and has a single v...
[2 replies] Last: This article could be useful : http://www.cplusplus.com/forum/articles... (by Bazzy)
vectors to files
 
hello,, my first post here.. im a 1st year CS student.. i need a help on having the idea of how to make this assignment.. i need to make a program,,a quest...
[3 replies] Last: With strings you won't have any problem in storing them using file str... (by Bazzy)
by jorijo
How to arrange data in multiple class project
 
Hi! I'm new to C++ and developing a project but I´m confused when deciding to place vectors/lists data types. I don't know if the best way is to define t...
[3 replies] Last: Define them within the classes that the data stored relates too. e.... (by Zaita)
Creating a Poligon class
 
Hi all! I created a Poligon class ( http://www.math.com/tables/geometry/polygons.htm ) and the code is the following: Poligono.h #ifndef POLIGONO_H #define...
[6 replies] Last: Yeah ... that is correct. With more then 3 sides i will have a lot of... (by graciano)
by koliva
Variable in watch list
 
Hello, I am debugging my code and adding a variable in the watch list but I cant see the detail. I think it is because of my variable. My variable is Var::m_...
[7 replies] Last: Mmn, the thing is that namespace variables are initialised to zero (u... (by guestgulkan)
Why i can't delete a leaf from the binary tree
 
Acturally, i am not really understand the whole program. I just want to delete a leaf from the Binary tree. But i can't. Can anyone help me? with my unde...
[8 replies] Last: @roodtree: Incorrect. Please don't post guesses. free() is a C call... (by Zaita)
by xanmas
2d Array Troubles
 
Hi, I am trying to do a time evolution of a pressure wave in 2 dimensions for a computational physics class. Well, I have to define a 2d array for all the gr...
[5 replies] Last: @roodtree: incorrect. Vector of Vectors. #include <iostream> #... (by Zaita)
January 2009 Pages: 1... 7891011
  Archived months: [dec2008] [feb2009]

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