556 Posted Topics

Member Avatar for donaloflanagain

The Visual C++ compiler is near Standard C++ compliant. The only things I am aware of it not doing are full support for exception lists and it has a little problem with really complex template notations used as friends. Microsoft C++ does have some extensions to C++ however I did …

Member Avatar for Banfa
0
171
Member Avatar for C Newbie

what is wrong with cout << oct << n; ? In this context trace is ambiguous. I would have thought it meant that you need to output what the function is doing on each iteration. And finally n is not a decimal number if you insist on assigning it a …

Member Avatar for C Newbie
0
264
Member Avatar for herrstarr

Your first error is, I think, because you have declared LENGTH with automatic scope. That is it is on the stack, since it is on the stack and gets created when the function is entered it is not a true constant but a variable and so can't be used for …

Member Avatar for mattjbond
0
133
Member Avatar for dondajr

All your #defines have a ; at the end of them which will be prducing invalid syntax, remember a #define is a text substitution. Also you should note define functions, like snapwrite, in a header. You should declare the function in the header [code=c]int snapwrite(char *_symbol, int _typeval, char *_val);[/code] …

Member Avatar for jephthah
0
152
Member Avatar for neodregan

I think you will find it very hard to code this sorting algorithm as anything other than single threaded. The problem is that every phase of your algorithm depends on the previous phase so no phase can be done independently of any other. If you want to use multiple threads …

Member Avatar for Banfa
0
174
Member Avatar for crimsonwave

Hmmm the only real way to know you have the right data is to compare it to the original. You could printf the data but then you would have to look inside the original file using something like a hexeditor and see if it was right. That could be a …

Member Avatar for Banfa
0
158

The End.