General C++ Programming - November 2009 (Page 6)

by mnunez
array
 
#include <iostream> int main() { using namespace std; int i, numbers , max; int c, n...
[4 replies] Last: ha i missed that thanks. (by mnunez)
reading in file and displaying fields
 
So i started off on the wrong foot with this assignment, i started by using a set ammount of student...
[3 replies] Last: Well you have just read in the number of students, the number of gra... (by Galik)
by aas029
Friendship is not inherited
 
Hello, The common/classical explanation for the statement "c++ friendship is not inherited" is t...
[5 replies] Last: Hello Beta, Thanks for you help. Btw, I asked the question on anoth... (by aas029)
Sound Application
 
I have a question. I've been researching sound APIs and libraries to realise that I don't seem to un...
[5 replies] Last: Alright. I'll be posting an example after school. There are plenty of ... (by closed account S6k9GNh0)
by helios
Data compatibility across compilers
 
I have this code that just won't compile on VC++, so what I'm going to do is generate a DLL with Min...
[4 replies] Last: It uses FFmpeg. The problem isn't really that it doesn't compile. It's... (by helios)
by mogha
Container in STL
 
Is there is any container in STL which can accept three parameters. Like for e.g. container<int,int...
[10 replies] Last: I think OP is looking for something that would allow for log N lookups... (by jsmith)
main() never executing. an academic exercise
 
Frequently I have heard the question, "Can you write a program without main()?" The answer is yes......
[14 replies] Last: You are confusing layers of abstraction. Everything has an entry ... (by Duthomhas)
by depak
getch()
 
hey guys i want to enter an array element with getch(), with followig statement name =getch();...
[1 reply] : The end of line is two characters on Windows, carrage return (13) then... (by kbw)
by mar11
object instance
 
hi, please consider this code: ============== // file1.h #ifndef C_1 #define C_1 clas...
[8 replies] Last: any suggestion please!!! (by mar11)
template class
 
Hello, how to make a template class with an array of X items So far I have: template <clas...
[4 replies] Last: Thanks for the help! (by binarysolo)
Binary search on an array of doubles
 
Question Details: I'm not sure if this is right or not. Can someone please check this for me? Wr...
[2 replies] Last: Got it! Thanks. (by binarysolo)
.* and ->* operators
 
Just a quick Q: is obj.*memberVariable ptr->*memberVariable Equivalent to: *(o...
[2 replies] Last: They are the the pointer to class member dereference operators. Bu... (by guestgulkan)
by b33p
Input validation multiples of 100??
 
Hi guys, I am suppose to write a code to make sure the users input is between 0 and 4000 and also a ...
[5 replies] Last: (a && b || c) is the same as ((a && b) || c), not (a && (b || c)). (by helios)
FILE * to istream??
 
I am using popen(3) in cstdio. it returns a FILE * can I somehow convert that to an istream o...
[3 replies] Last: #include <cstdio> #include <string> #include <iostream> #include <... (by PanGalactic)
by NGen
Static Variables in DLL
 
Is it possible to use them? In my DLL, I have a static vector defined in the global scope, and wh...
[9 replies] Last: I have a feeling that the whole problem is just because I accidentally... (by NGen)
array of one class in another, both children of same abstract class
 
Hello, Suppose I sell thingy's online. I accept orders of one or 10 thingy's. If the order is f...
[1 reply] : I would question if inheritance is the right solution to this problem.... (by Disch)
Java to VC++-MFC conversion
 
Does anybody know if its possible using any tool/software to convert a Java project into a project i...
[5 replies] Last: Thank you guys, I decided to learn Java. Its honestly lot more easier ... (by luckycusp)
by giro82
Proper releasing dynamic allocated memory
 
Hi, I have allocated memory for 3-dimensinonal array in this way: Matrix ***channel_coefficient...
[2 replies] Last: Thanks for help. (by giro82)
Inheritance Problems
 
Hello you guys...well I've been working on this project now for six days...I'm totally exhausted...c...
[14 replies] Last: YES! PM OR POST WHAT WORKED! I'M INTO THAT SORT OF THING! Studen... (by herbert1910)
Writing a game
 
int compturn(int sticks) { int choice; //Represents computer's choice do { srand(time(0)...
[18 replies] Last: 1) note that you check their answer AFTER you call gameplay(), which ... (by Disch)
November 2009 Pages: 1... 45678... 16
  Archived months: [oct2009] [dec2009]

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