hi, again.. sorry if I was a bit rude earlier.. nothing personal and I hope it doesn't intimidate you from posting again.. :)
The answer above is good so I'm just going to point out one little...
Type: Posts; User: d00-asu
hi, again.. sorry if I was a bit rude earlier.. nothing personal and I hope it doesn't intimidate you from posting again.. :)
The answer above is good so I'm just going to point out one little...
This is my personal preference for using constants:
Const:
Numerical constants and similar
Why?
Strong typechecking.
Can limit scope of const. ( to eg. a function )
Enum:
Logical...
This sound like a typical homework problem... witch means _you_ are suposed to solve it! So my advice is that you realy try to solve the problem, and then if you encounter a problem you post here...
Yepp, that's probably it.. but:
>allocate enought space before e.g.\
>>> char temp[100]; <<<
might not be the best fix.. (what if the files are >100byte) .. bye, bye..
First rule of array...
Ok, I'm not sure what it is you wan't help with.. displaying the content of a vector? / a 2D vector? or just generaly how a vector works?
Here is a smal example:
#include <vector>
ostream&...
Hi,
I've encountered a problem concerning templates, perhaps someone knows how to fix this..
I have a template class "template<class T> class myclass"
this class has a memberfunction that is...
Oki.. I know how it's suposed to work.. but I just can't get it to link.. so I decided to surender and rethink my design.. perhaps I don't _need_ that much static constants.. I think I can move a...
Allright.. fair enough.. I'm still a bit puzzled by the whole header files / included files part.. perhaps you would like to clarify some things..
I have a class, separated in classheader...
Oki.. thanx for all your help, I'll get stareted on those tutorials right away..
- Anders
Ok, I think I've got it.. there is one problem though..
The file that I'm trying to break up is one class, that is: class definition and memberfunctions.. but when I try to compile the...
Hi again,
Thanx for the quick answers. I tried to break up the code in multiple files: one containing the class header and the data, and a bunch of others containing memberfunctions. This seemed...
Hi,
I'm trying to learn some Win programming but I got stuck directly...
I've downloaded a toturial and a sample source code for a very simple program, but when I try to run it I get an error...
Hi,
I'm writing a rather large 16-bit app. but I have encountered some problems.
I need some constats in a class ( aprox. 24K ) so I have made them const and static. However the compiler gives...