General C++ Programming - May 2011 (Page 3)

compiling problem (Windows, NetBeans)
 
Hello, I'm working on an overdue lab for my computer science class at home. At school we program in a basic text editor and compile in Ubuntu's terminal win...
[6 replies] Last: Alright. Sounds good. Thanks a lot. :) (by khristostellan)
initializer list use question
 
I understand intilializer lists mostly but am wondering if you can call a function in them. the following code initialized two nodes, but then calls the initqu...
[1 reply] : The only purpose of the initializer list is to be able to call constru... (by Athar)
Sequence class - HELP!
 
When I compile and run the program, no error is given.It gives me an unexpected result, and the output is -858993460 . I thought it should give me the first ...
[1 reply] : Don't use namespaces in header files if you can avoid it. Your cons... (by Computergeek01)
by ramako
Pointer that should NOT work is working.
 
Hi, I made a matrix with 2 rows and 3 columns, and then I try to set in row 1 column 5 a specific number. But it does not give me an error when executing the p...
[16 replies] Last: Ok, thanks to everyone ;) All cleared now (I already looked up "undefi... (by ramako)
Need help!
 
Hello everyone, I need to make a program for school, but I'm just without ideas, I'm trying now for over a week to figure out how to do it, but I just can't so ...
[1 reply] : Repeated post, please see here: http://cplusplus.com/forum/beginner/4... (by Moschops)
asbtract class and interface question
 
Hi, I'm working on a project where I have to modify existing classes etc. I see the following comment beside an abstract class definition: // This interface...
[2 replies] Last: To expand on jsmith's post, the equivalent to an interface from Java o... (by helios)
is there a way to determine if 2D array have equal number of X and Y?
 
as above is there a way to determine if 2D array have equal number of X and Y? like if my 2D array supposed to have 5 by 5 means 25 in total and i d...
[6 replies] Last: ............. (by nanochan1)
A difficult one(At least for me:D)
 
Hey guys, I have to make a program and i really struggle to deal with this part of it: I have a char from 50 symbols in which i have to CIN the names of the ...
[3 replies] Last: #include<iostream> #include<iomanip> #include<fstream> #include <cst... (by lubomir)
opengl pointers to non-static member function
 
Hello all, I'm just starting with OpenGL and I'm trying to figure out how to stick all the functions like drawScene, handleKeyPress, etc, into a class. This ...
[1 reply] : glut functions will only accept static functions. Static functions can... (by hamsterman)
Const Correctness/Private Member Variables
 
Good Morning, I hope I explain this properly but if I don't please tell me... I need to return a const pointer to a const object from a method, however t...
[3 replies] Last: You'll return a copy, so the member can't be modified. The object also... (by helios)
Which Design Pattern?
 
I have five classes A, B, C, D, E that are unrelated (really more like 20). I have to create five classes A_X, B_X, C_X, D_X, E_X that have almost identical ...
[4 replies] Last: The below should be appealing enough: I don't know how different A, B... (by webJose)
working on banking system project (there r errors need to fix)
 
# include <iostream> #include <string> using namespace std; # include<iomanip> class Bank { private: char name; int acno; float balance; public:...
[1 reply] : Have you tried using a debugger? (by Zhuge)
Need help on Visual Studio 2010 databinding
 
I am doing a project which require me to use visual studio and chart control with databinding together with SQL database. By the way, I am not very good in p...
[5 replies] Last: Use SomeDB Go Create Procedure myschema.MySP @param1 int , @p... (by webJose)
help for save list
 
hi i have a struct like this struct list { char name; char family; int age; int tel; } and i can't save this to .txt file. can a...
[9 replies] Last: i find a way to save struct on .txt file now i need help for load a sa... (by knight0black)
Files. First attempt, problem
 
#include<iostream> #include<fstream.h> using namespace std; class Student { public: Student(); ~Student(); ...
[2 replies] Last: Thank u a lot! (by lubomir)
by ryf123
Vector pointer problem
 
#include <iostream> #include <vector> using namespace std; main(void){ vector<int> *a; a->at(0)=0; printf("%d\n",a->at(0)); } Something wrong with t...
[1 reply] : no memory has been allocated to your pointer a. This is how you should... (by quirkyusername)
reading a .txt file help
 
hello, I need to make a program that reads a .txt file and assigns the words to a string in one line. For example in the .txt file i have something this: ...
[2 replies] Last: [quote=BruteCOder]I want to assign it to a string... Well, it's quite... (by closed account zb0S216C)
problem with include
 
hello guy's I'm new here and i need some help. my c++ programing is borland c++ version 5.02. my problem is with include. my program not reconnaissance this i...
[10 replies] Last: tanks I'm sorry Duoas i need just some help for my program what comp... (by knight0black)
my first effort with template functions...
 
...is producing a compile error. I've defined a function: template <class R> void UtilGain::cycle( R gainInpI, R gainInpQ, long hostGain, ...
[19 replies] Last: Thanks for the clarification. I will take your suggestion; I can't see... (by mzimmers)
How to developing puzzle game
 
I just started a C++ class a few days ago, and I already have some questions I'm stuck with. If anyone can give me hints or help out in any way it would be grea...
[no replies]
May 2011 Pages: 12345... 32
  Archived months: [apr2011] [jun2011]

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