General C++ Programming - March 2010 (Page 10)

Assist explain 3 dimentional arrays.
 
Can any one explain to me in some details about 3 dimensional arrays please, and show me how I can apply it to a problem like. A ship with 3 level and 52 seats ...
[5 replies] Last: Disch digged out a very nice thread about lots of the evil things of M... (by imi)
can u solve this???
 
Hi, 1.i have a char * fileName ="myFile" and a array function pointer void (*fileptr )(void). 2. i have five function: void myFile1(); void myFile2(); vo...
[9 replies] Last: Ok, I got it. As you already know, you're current approach isn't go... (by kbw)
by scuzzo
recursive function
 
I am trying to write the body of a recursive function in pseudo code but it has been years since I've done any coding. a,b,a+b,a+2b,2a+3b,3a+5b... is the pa...
[1 reply] : The principle of recursive functions are: function (paramter) ... (by imi)
Outputing code to a pdf file
 
Hi, I need to out my results from my program into a pdf file, but I'm not sure how. Are there any easy to use libraries to do this ? And could you post step ...
[8 replies] Last: Generally it's much easier to create a pdf file than to display it. If... (by Danielsson)
by dkaip
A making file broblem.
 
Hello. From a utf-8 file reading a line with a file name, i must use that name to output stuff. Name converting from wstring to string. Here ALLFILE is the str...
[no replies]
Using I/O Streams
 
I have a problem with this source code. I would like to put a statement after the statement that executes if(inputName == boyName). I tried to an else after tha...
[no replies]
trying to find the rectangle's area and perimeter
 
#include <string> #include <cmath> #include "ccc_win.h" using namespace std; //define the Rectangle class class Rectangle { public: //construc...
[1 reply] : Since you managed to pull this one off twice, it's a sure sign that yo... (by tummychow)
find the area and perimeter of this triangle?
 
#include <iostream> #include <cmath> #include <string> using namespace std; #include "ccc_win.h" double perimeter(Triangle t); double area(Trian...
[1 reply] : So, got a question? (by tummychow)
The compilation process
 
Hi all, i have been searching the net for definitions of the compilation stage. I know that the 3 stages are pre-processing, compilation and linking. However ...
[5 replies] Last: "Compiling" and "Assembling" are two sides to the same step: compiling... (by Duthomhas)
difference between ios::ate and ios::trunc
 
Can anyone explain what the difference between using flag trunc and ate is? It'd be nice if you could give some examples to show the difference. By the wa...
[3 replies] Last: Oops. I completely misread that. std::ios::trunc ensures that the f... (by helios)
length-counted xltypeStr
 
I am working on a project to register a c++ xll into Excel via the xlfregister function. I have successfully registered the c++ xll add-in in Excel 2007. ...
[no replies]
I did everything that is required but I can't make the code work
 
I did everything that is required but I can't make the code work. Here is the requirements: In the windows main.cpp (in the while loop of Win Main and rig...
[3 replies] Last: //Here is the CGfxOpenGL.cpp for teh last step// // undo the previ... (by NumberOne)
I almost got it but just need to refine it.
 
Okay I just need a little assistance with my code. I have made a few adjustments to what is needed. Here is what I need to do In the windows main loop (in the...
[1 reply] : Was there a question somewhere? The code you've posted seems alright,... (by hamsterman)
by jkigen
inline functions
 
hi people please somebody tell me like 2 yr old how inline function is implemented.
[3 replies] Last: ++imi - that was pretty funny. Thanks for the laugh. (by kempofighter)
Can I use multiple keys on the "SET" container?
 
1) Can I use a struct/class in a "SET" container? For example, see following structure: struct myClass { int key1; uint8 key2 ; int otherfields...
[8 replies] Last: 2) std::set has no keys and no multiple entries. It kicks out all ent... (by kempofighter)
Program that estimates the value of mathematical pi.
 
Hi, I need some help. I need to write a program that estimates the value of the mathematical constant pi. The infinite series used to approximate it is show...
[1 reply] : If anyone could give me a full working program for this http://www.cp... (by Bazzy)
by cshong
Write and read configuration file
 
I can see that some open source software's configuration file were written in the following format: "<setting name> = <value>". For my program, it is not ...
[2 replies] Last: A very simple configuration file handler: #include <iostream> ... (by Duthomhas)
Writing Small OS
 
Before anything, I'd like to throw a couple things out there. Firstly, by OS, I'm not talking a Windows/Linux/Mac sized OS. I'm talking about writing a boot loa...
[12 replies] Last: Thank all of you for all the information. I'm starting with looking... (by shadowayex)
Why am i getting HEAP allocation error ?
 
I am new to C++. I am getting HEAP CORRUPTION ERROR. Any help will be highly appreciated. Below is my code class CEntity { //some...
[4 replies] Last: Finally, after two days of debugging, I was able to fix up the crash. ... (by AtulVaidya8)
problem with enum
 
#include <iostream> using namespace std; enum WORKDAY { SUN, MON, TUE, WED, THU, FRI, SAT}; void main(void) { WORKDAY date; date = static_ca...
[3 replies] Last: The way enumeration works is a little bit different. The enumerator... (by Danielsson)
March 2010 Pages: 1... 89101112... 23
  Archived months: [feb2010] [apr2010]

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