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

by patci
Function pointer Template
 
Hello, I am learning C++ so please excuse any errors. I have to code the following search function for a Linked List template. Node<NODEDATA>* find(c...
[4 replies] Last: oh ya cursornode->nxtptr in the while loop. and semi-colons after the ... (by patci)
Data structures to use within DLL
 
I need some guidance regarding the architecture and data types to use within a DLL that I have been assigned to write. I apologize since it will lead me to aski...
[4 replies] Last: I just used new and delete within the DLL and it seems to work fine ... (by tfcoder)
just can't figure out where the error is
 
I just can't figure out why my codes can't be compiled successfully . Anyone can help ? The main : #include <iostream> #include "header.h" #include <ctim...
[4 replies] Last: You can download the express beta version: http://www.microsoft.com/ex... (by Bazzy)
overloading function
 
Hi everyone, i was just wondering how to overload this function where the first number is an int, and the second number is a fraction, thanks for any help. ...
[2 replies] Last: thank ya, my brain was done last night, very easy lol. (by chewykb24)
The reverse procedure
 
I am trying to write a program that reverses integers. And the number must be positive. I almost have to program done however, when the input is 537 the outpu...
[8 replies] Last: i'm glad it helped you.. (by blackcoder41)
Referring 2D sub array in C++
 
Hi all, I am trying to create a recursive solution to a problem which takes a lower-triangular matrix (basically a 2D array in which all elements where colum...
[1 reply] : While the first one is easily possible, the second one requires you to... (by jsmith)
Nameless Union+Struct grants Friends access to Private BaseClass Members?
 
I'm compiling the following code segment under Visual C++ 2008 Express Edition, and I'm at a loss as to why MEOW and BARK can be accessed, that is, don't cause ...
[9 replies] Last: can anyone try this using Borland? also please try to replace the inne... (by blackcoder41)
by cppcpp
Copy Constructor related
 
Hii all can any buddy explain... what will happen when reference of an object is passed in a copy constructor?
[2 replies] Last: http://www.cplusplus.com/forum/articles/18749/ (by Bazzy)
why i can't use array of references
 
hi, yesterday i read about arrays, and surprised when i read that C++ doesn't support array of references. my main question is why, is there any reasons?
[5 replies] Last: It all screams "abuse" to me, anyway. (by helios)
by w0ot
C++ checking errors
 
Hi all, i have this average grade code. My input is only Letter (A/B/C/D/F), is it possible that anyone can help me input lines that shows error message if th...
[2 replies] Last: hi blackcoder41, thanks for the reply. as i am new to c++, can i know ... (by w0ot)
by yp7311
For loop application
 
& & & & & & & & & & ...
[3 replies] Last: is this what you're trying to do? #include <iostream> using names... (by blackcoder41)
by Kartik
Structure of a C++ file
 
Hi all, I'm not sure what topic this question falls under so I'm forced to post it as a general C++ programming item. If there is somewhere else I should be ...
[4 replies] Last: Hi, i want to share tip relating to C++.Hope you find it useful. ... (by elizas)
Getting error C2259 "cannot instantiate abstract class"
 
Ok this is so bloody simple that it hurts me that I’m asking. I’m getting "error C2259: 'AdapterStack<T>' : cannot instantiate abstract class" The three ...
[7 replies] Last: Thanks, I got it worked out. (by DyslexicDan)
Math and Variable question. (1,2)
 
I am coding a elapsed time calculator which uses julian dates. It is pretty much done except for the fact that my formula is messed up. The formula JDN = (14...
[37 replies] Last: No, it won't. This subject has already been discussed to death on thi... (by helios)
printing out weird negative number(read last post)
 
Header File: /*#include <iostream> #include <string> using namespace std; class heartRates { string first; string last; int month; int day; ...
[5 replies] Last: i've tweaked it a bit in the header by changing double hi and double l... (by butterflyze)
local Static C++
 
Hi Experts, As all statics are getting created before the main() execution, i wanted to particular about static data that is local to function. As per the te...
[4 replies] Last: Storage is allocated prior to main. (by jsmith)
IdE with 39dll
 
Hi I'm making a game with gameMaker but only the client, the server I'm trying to make in c++. I use the 39dll for the online part but I can't get it to work wi...
[1 reply] : I tried using the 39DLL with C++ a while ago, I couldn't get it to wor... (by NGen)
Syntax Problems with " "
 
Hey guys, i am having problem in putting the str i want to search for using find(). I have a text file which hold data like this : "ewcwecwcdwecwewewe"<ed...
[1 reply] : cout << "use escape characters to have \"quotes\" in a string"; --... (by Bazzy)
Static Methods
 
Good afternoon all ( at least from where I live :P ) Working today, when implementing a static methods to calculate an Identity matrix of order "n", I had a ...
[10 replies] Last: Well, making a little testing I've discovered that the static local ob... (by JohnDoe362)
can someone solve this ?
 
months | $ jan 78 feb 67 mar 82 apr 55 may 73 jun 69 jul 76 aug 81 ...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ How about you show us w... (by Warnis)
January 2010 Pages: 1234... 17
  Archived months: [dec2009] [feb2010]

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