General C++ Programming - August 2010 (Page 2)

Searching HARD for a Specific C++ Tutorial (With Quicktime Videos)
 
i used to have a Fantastic C++ Tutorial that used Quicktime videos. and Exercises After Each Chapter (With answers) to Practice what he was Teachin...
[2 replies] Last: I think i found it. it is taught by an expert C programmer, Mark V... (by deanslama)
by LB
Class Content Flipping?
 
I have a couple classes, A and B, and they are used in a map with A being the key. The map is dynamically allocated (I have to do it this way) and the map is al...
[9 replies] Last: Just some new info on this, it WAS my fault. It turns out that the par... (by LB)
by pizet
linked list
 
Hi! I'am trying to make my own function which creates linked list. I've already managed to do this function which creates the list from back to start, but now ...
[1 reply] : Oh, am I an idiot? Well, the problems are my silly condition in the l... (by pizet)
eliminating temporaries
 
I have two objects, basically multidimensional arrays class obj1 { public: double& operator ()(unsigned, unsigned); // ... private: double *data;...
[5 replies] Last: How do I do that? If I add some output to the constructor, that would... (by Athar)
Maximum number of cases in switch?
 
The question is simple but the answer may not be? Please reply only if you are very sure of the answeer How many maximum number of cases can be there in a sw...
[2 replies] Last: From a doc i have, it is said that Standard C specifies that a switc... (by bartoli)
aumming the digits
 
* Philippine currency is broken down into 1000,500,100,50,20,10 peso bills and 1 peso coin. Write a program that would input an integer amount in peso and outp...
[12 replies] Last: The second uses integer division as well, although the amounts to divi... (by Kyon)
Handling Large Numbers
 
Hi. I need to find some way to handle very large numbers (1000+ digits). I know there are some libraries like GMP, but all the ones I have found are only for Li...
[3 replies] Last: http://cs.nyu.edu/exact/core/gmp/ Boy, that was hard! (by helios)
Pointer
 
i just want to seek help. i just want to know what is Pointer in C++ i also want to see some sample program of Pointer in C++. thanks.. Ü
[9 replies] Last: oh thank you so much!!!firefly431.. 3 more to go and i will understan... (by ahniger)
Strings
 
I was wondering if you can include a period in a string? If not then what variable can you inlcude a period in?
[3 replies] Last: //stateMachine.cpp : Defines the entry point for the console applicati... (by SHUNEYTZ)
Unable to Understand the declaration
 
extern void (*set_new_handler (void (*))) (); I hope some of you guys have used above function. However I am not able to understand the way it is dec.lared...
[7 replies] Last: void(*(*funcPtr)(char))(); (Usually you just add more typedefs inst... (by helios)
expected constructor, destructor, or type conversion before ‘*’ token
 
So i've been working on learning openGL ( alongside with SFML ) .. i keep getting this error and its driving me mad expected constructor, destructor, or t...
[6 replies] Last: oh i found my issue... it was one of those F***ING VISUAL C++ TUTORIAL... (by closed account y8h7M4Gy)
by LB
__int128 - What??
 
Why does VC++ have an __int128 type but no way to use it? Apparently there are no official references to it at all. If I try to use it, it gives me errors about...
[1 reply] : Because the IDE can be used with a compiler that can produce code for ... (by helios)
HI! [win32 API] error?
 
Hi this is my first post so HI! anyway i have a access violation segmentation fault in my program and i cant figure it out. its in the line with DialogBox(hThi...
[no replies]
Validating the user input
 
I want to validate the input entered by the user, especially in case of int type..So that user should enter an integer value only not characters.. I found a so...
[1 reply] : You can verify myStream.rdbuf()->in_avail() == 0 after the conversio... (by PanGalactic)
by Null
dll and shared object differences
 
Hello, I'm writing a cross-platform disk IO library and I decided to make it a separate module. On Windows this is a DLL and on Linux this is called a shared o...
[6 replies] Last: Thanks! (by Null)
dont know whats wrong
 
#include <iostream> #include <tchar.h> #include <stdio.h> int main () { int num; //for integer number int wives; //for number of wives int child; //for...
[3 replies] Last: #include <iostream> // #include <tchar.h> Not needed in here, remove... (by Kyon)
by akemi
alien
 
Once upon the time, there were aliens come to the earth. In the earth, the reproduction of the alien is by fission on the next day. There are two kinds of the a...
[9 replies] Last: Yes, it's completely broken. At no point does the problem state that a... (by helios)
vector iterators
 
If I have a vector vector<int> incoming; and I create an iterator vector<int>::iterator in_it; and set in_it = incoming.begin(); and th...
[2 replies] Last: However, this would do the job: in_it=incoming.erase(incoming.begi... (by m4ster r0shi)
More File Creation Trouble
 
I was wondering how to create a file with multiple vars and text, for instance: int number; number = 1; ofstream file; file.open ("file"number.c_str()".txt...
[2 replies] Last: Thanks SO much!! (by D Technodude)
by LB
Get the WHOLE command line
 
I am experimenting with command lines. I can successfully get and use all the command lines passed to my program. But, I can't get the whole command line. Sa...
[7 replies] Last: Oh heh, I'm an idiot. Thanks. (by LB)
August 2010 Pages: 1234... 20
  Archived months: [jul2010] [sep2010]

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