General C++ Programming - March 2011 (Page 16)

vector of friend class objects
 
It dawned on me today that since learning how to use friend classes I've never had a need for them, now however, I do. I'd like to store a vector of friend c...
[2 replies] Last: D'oh! Thanks Disch, shows how little I actually remember about friend ... (by quirkyusername)
stack with variable size
 
Good day people, I would like to have a couple of arrays of doubles with variable sizes, it could be 20, it could be 500 000. I need access to each item ind...
[4 replies] Last: Ok thanks. I need so many elements because the vector will be containi... (by dirtcrusher)
Switch within Switch Problem
 
I am trying to put a switch within a switch and I'm getting the error "Duplicate case value" Why am I getting this error? Why does it matter that I'm using the ...
[4 replies] Last: A bit of decent formatting might show the problem: s = getch(); sw... (by hamsterman)
cout doesn't work after a while
 
Hi, I'm writing a program that separates strings. It needs to separate a string first by pipes ("|") and then by spaces. After the do-while loop which generates...
[3 replies] Last: Framework - I've solved the problem. Even with a normal while loop, t... (by ddownpour)
by toll
Encrypt text in video
 
Hi all I'm beginner in C++ but I have big big problem I'm trying for long long time in searching in web to find open source project but no way, I need open ...
[2 replies] Last: ok many thanks for you but can you give open source project able to hi... (by toll)
"scope" rules and problems
 
hi, The scope rules for pointers r becoming bit of a concern for me as my code crashes randomly..answers to the following should help me out:: <1> <a> voi...
[3 replies] Last: [quote=ustulation]2.a was a stupid error by me...i meant int* f() {in... (by coder777)
by sever
Reach methods...
 
My app has a main class (MainClass), which contains two objects, class MainClass { [...] Class1 m_object_1; Class2 m_object_2; [...] }; In a m...
[1 reply] : You can't, or rather you shouldn't. Can say in more real terms what t... (by kbw)
Computing an average on a project
 
I earlier made a 2-d array called grades and now I'm trying to find out the average on a specific column of the array (i.e. project 1 that has Num_of_Students...
[5 replies] Last: Ok I'll see what I can do about initializing a 2-d array to zero... I'... (by closed account 9hv4jE8b)
Flowers Problem
 
We have n children that have gathered k flours each.The flours are numbered from 0 to 100.One girl can join a group if she has at least one flour of the same ty...
[7 replies] Last: Why not ask rapidcoder about his idea instead of ignoring it? Were you... (by closed account D80DSL3A)
by KaiL
How to solve this problem C++ OpenCV?
 
This is the source code I got but I got an Runtime error .[It build successfully] /****************************************************************************...
[no replies]
by venot
i've done the syntax errors but there is still one more error in line 10..
 
#include<iostream> #include<string> using namespace std; int main() { const int SZ=5; const char QUIT = 'z'; char answers ={'a','b','c','d...
[5 replies] Last: perfect . i got it ..thanks a lot.. (by venot)
by qabil
Ask C++ Ebook/Reference
 
Hy, May I know what c++ book you read? I have learn All C++ lesson from this site (http://cplusplus.com/doc/tutorial/) After that, What must I learn about c++...
[no replies]
by PiZero
Assignment Program Crashing
 
I have an assignment for my university programming course which reads meetings from a file and assigns them to rooms using a given algorithm. The meetings in th...
[no replies]
Using CPPunit for unit testing MFC applications
 
Hello, I found CppUnit a useful tool for unit testing of cpp code. I was able to do unit testing of some console applications and some functions which I used...
[no replies]
loop quoting , why error happens
 
I have two class as below: I want to test how class to work: #include <iostream> using namespace std; class A { private: B bInstance; public: A() ...
[4 replies] Last: Thank you all, especially firedraco , I got (by misserwell)
C++ problems
 
Hi, I'm working on some C++ projects and was having some problems, any help would be greatly appreciated. First issue, class Mortgage{ private : ...
[2 replies] Last: The first class looks fine. I believe the compilers create default des... (by mof)
by KaiL
What is color byte-image in openCV?
 
New to openCV so I am not really sure what it is.
[no replies]
by Brain7
How to create vector of vector to handle data list
 
I want to use a vector of vector for my data handling in c++. The data str uctre which i want to create is like: 1 234,345, 342, 12 2 12, 321, 210 3 ...
[1 reply] : I think you just need to: vector<vector<int>> var; but I'm not that... (by mof)
std cout myArray (error)
 
Hi all, still practicing to work up to my program. :) Why is this line not working I have the cout correct, is it the end? #include <iostream> ...
[3 replies] Last: Thats what hamsterman is saying. It is not 'end1' it is 'endl' and lin... (by buffbill)
Getting an average word count
 
For this program I have to take an input file, and get the average word count. So far I have the word count correctly and my function removes all special chara...
[7 replies] Last: When I plug that in I just get a bunch of errors though, and a warning... (by closed account GL1Rko23)
March 2011 Pages: 1... 1415161718... 31
  Archived months: [feb2011] [apr2011]

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