First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
A question about structures
I'm in the process of teaching myself C++ (with the help of several good books) so I can develop some DLL's for another application. Looking through an example of one of these, there's a line that defines a structure as follows: struct ParameterDefinition primaryParams[]= { {"x position =", kXpos, 1.0} {... 20 Apr 2008 11:36
Idea: Working past compile failures (TryCompileOnFailure-Block)
Hello, For testing purposes and maybe even development purposes it might be handy to let the compiler try compiling some sections of code, if it fails compiling those sections, the compiler will just continue after the "TryCompileOnFailure" block. The compiler might even set some pre-defined variables in prog... 18 Apr 2008 23:08
Lesson 8, Structures, Unions, Fields, Pointers to Structures, Enums (Don't worry, Be happy: VS IDE 2008: WORSE CRAP than D2007 IDE :))
Jim P wrote: Skybuck under a different name Did you have to quote the entire rant just to add that? -- Ian Collins. ... 17 Apr 2008 18:56
chop log files
Hi, in my C++ application i use LOG-Files. At the moment i have no idea how to chop them efficiently if they exceed a size (or linecount) limit. Surely has been many times implemented and is used on linux (/var/logs/messages). How can i do that efficiently? ... 16 Apr 2008 13:13
Inheriting from built-in types
I'd like to create a new type which is polymorphic to int but has some different characteristics, something like this: struct ModuloInt : int { // <-- Note: class derives from int ModuloInt(int Value) : int(Value) {}; }; int main(void) { ModuloInt i = 10; } Neit... 21 Apr 2008 10:06
A Question about ##
hi,all I have a program about ## ,which is the following. ========================================================= #include <iostream> using namespace std; class CMyClass { public: static int m_i; public: CMyClass(){ m_i++; } }; #define NEWW(i) CMyClass *a_##i=new CMyClass(); #define PPR(... 15 Apr 2008 11:32
Lesson 7, Condition Evaluation, Full vs Partial.
Hello, See comments or website for details. http://members.home.nl/hbthouppermans/VS2008Analysis/Index.htm // *** Begin of Main.cpp *** #include <stdio.h> #include <windows.h> typedef char int8; typedef short int int16; typedef int int32; typedef long long int64; typedef unsigned char uint8; type... 14 Apr 2008 20:13
Lesson 6: Strings. (Performance Killer?!?)
Hello, See assembly in IDE (not provided in message, would be too long) See comments or see website: http://members.home.nl/hbthouppermans/VS2008Analysis/Index.htm // *** Begin of Main.cpp *** /* 14 april 2008 Lesson 6, Strings The C++ Standard Template Library (STL) contains a string class. ... 15 Apr 2008 01:47
Array Return
There is an array: int a[MAX]; and the function will return a[MAX] value: int* return_a_value(){ return a; } Is this code correct? ... 14 Apr 2008 07:05
First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16