Saturday, October 29, 2016
C union in C#
C union in C#
- How to: Create a C/C++ Union Using Attributes (C# Programming Guide)
- GOOD READ::C++ union in C#
- Adding Unions to C#
- How to convert a C++ Struct with Union into C#?
- Marshall a C++ structure with union to C#
- C# equivalent to C "union"?
- Unions in C#
- Unions (or an equivalent) in C# - Sairama's Tip of the Day
- Simple union conversion example - C to C#
- C# equivalent to C union [duplicate]
- How can I simulate a C++ union in C#?
- Marshaling Unions
- UNION in struct
- Callback from an unmanaged code
C union examples
C union examples
- MSDN::Structure and Union Members
- MSDN::Structure and Union Members
- Member Access Operators: . and ->
- Unions in C : A less used but a powerful feature of C
- C – Union
- Why do we need C Unions?
- C union declaration
- Unions in C Language
- C Programming Unions
- Union
- How to Use C Structures, Unions and Bit Fields with Examples
- How to pass structure to a function in C programming?
- C pointer to union
- C accessing union members
- C structure bit manipulation
- R-Value of Expression : C Programming
Thursday, October 27, 2016
bit field in C and C#
bit field in C and C#
- Masks and flags using bit fields in .NET
- Bit Field in C# using struct
- BitFields and BitStrings in .NET
- https://users.cs.cf.ac.uk/Dave.Marshall/C/node13.html
- Working with bits and bitfields
- Bitfield manipulation in C
- Lobel level bit field
- Joy of Programming: Understanding Bit-fields in C
- Bit Fields in C
- PPT]Bitwise Shift Operators
- The 64 bit OS Architecture
- Flood Fill Algorithms in C# and GDI+
- 夫子拍卖网 -->全部拍卖 -->线装古旧书 --> 语言文字 --> 正在进行的拍卖(共84件拍品)夫子拍卖网 -->全部拍卖 -->线装古旧书 --> 语言文字 --> 正在进行的拍卖(共84件拍品)
- ancient idiom
the first two articles are good library to combine to build my own customized library. the third one is good to reference.
Wednesday, October 26, 2016
steps to C
critical steps to C. three most important concepts: score, duration and linkage of variables.
- 4.1 local variables, scope, durations
- 4.2 — Global variables and linkage
- 4.3 — Static duration variables
- 4.3a — Scope, duration, and linkage summary
good starting point to learn special topic. good labs also.
Saturday, October 22, 2016
how to output a C char
how to output a C char
- Output single character in C
- Printing a Char *
- Printing chars and their ASCII-code in C
- Strings and character with printf
- How To Print A Character
- C program print string
- C Program to Display Characters from A to Z Using Loop
- Printing the contents of a string array using pointers
- printing char* strings
C error message
C error message
- error in running a simple C code in visual studio [closed]
- Compiler Error C2085
- unable to use inline in declaration get error C2054
- Examples do not build under VS2013 #581
- Error C2085: (identifier) : not in formal parameter list
- Unresolved external symbol in object files
- What is an undefined reference/unresolved external symbol error and how do I fix it?
- What is an undefined reference/unresolved external symbol error and how do I fix it?
Friday, October 21, 2016
NSE india market
India has two markets: NSE STOCK MARKET and BSE stock market.
-
Getbhavcopy
Getbhavcopy is a FREE data downloader for Indian Stock Exchanges, NSE (National Stock Exchange) and BSE (Bombay Stock Exchange).
It downloads daily EOD (End Of Day) data as well as historical data (past EOD data) for equities and indices. The data is directly downloaded from NSE and BSE servers and is 100% authentic. The downloaded data can be directly imported into all leading technical analysis software like Metastock and Amibroker.
Now download data at your will, from NSE and BSE servers directly. Get total control and that too for FREE.
- How to Receive NSE Feed Using UDP
- NSE EOD data downloader
- Security-wise Archives (Equities)
- Historical Index Data
- Extracting EOD Data from NSE
- NSE BSE Data downloader
- How to Automatically Download Index Data from NSE – Part One
- NSE EOD Data Downloader
- NSE EOD Data Downloader
- Historical Stock Data
Saturday, October 15, 2016
C program file dependency
C program file dependency
- DRW company
- Writing Larger Programs
- Compiling, linking, Makefile, header files
- Walkthrough: Compiling a C Program on the Command Line
- visual c++: #include files from other projects in the same solution
- Top 10 C++ header file mistakes and how to fix them
- Displaying the #include hierarchy for a C++ file in Visual Studio
- Multiple source files in C- How exactly do makefiles work?
- How should I detect unnecessary #include files in a large C++ project?
- Projects in Visual C++ 2010 – Part 2: Project Dependencies
- Tool to track #include dependencies [closed]
- Why you should care about include dependencies in C/C++ and how to keep them at a minimum
- How to: Organize Project Output Files for Builds
- C Programming Boot Camp
- Fixing header file dependencies
- Modules, Separate Compilation, Make Files
- Writing Make Files
- Chapter 2. Compiling a Program
- Makefiles
- C++ header dependency tricks
- MS Visual C++ #include dependencies
C program file organization and dependency
C program file dependency: how to organize C project in Visual C++ with Visual Studio 2008.
- DRW company
- Writing Larger Programs
- Compiling, linking, Makefile, header files
- Walkthrough: Compiling a C Program on the Command Line
- visual c++: #include files from other projects in the same solution
- Top 10 C++ header file mistakes and how to fix them
- Displaying the #include hierarchy for a C++ file in Visual Studio
- Multiple source files in C- How exactly do makefiles work?
- How should I detect unnecessary #include files in a large C++ project?
- Projects in Visual C++ 2010 – Part 2: Project Dependencies
- Tool to track #include dependencies [closed]
- Why you should care about include dependencies in C/C++ and how to keep them at a minimum
- How to: Organize Project Output Files for Builds
- C Programming Boot Camp
- Fixing header file dependencies
- Modules, Separate Compilation, Make Files
- Writing Make Files
- Chapter 2. Compiling a Program
- Makefiles
- C++ header dependency tricks
- MS Visual C++ #include dependencies
CString in C++
CString in C++
- What is `CString`?
- Using CString
- Basic CString Operations
- String Data Management
- CString Semantics
- CString Operations Relating to C-Style Strings
- CString Argument Passing
- CString::operator LPCTSTR
- initializing a LPCTSTR /LPCWSTR [duplicate]
- What does LPCWSTR stand for and how should it be handled with?
- LPCSTR, LPCTSTR and LPTSTR
- What are TCHAR, WCHAR, LPSTR, LPWSTR, LPCTSTR (etc.)?
- Use of TCHAR in Visual C++
- TCHAR
C boolean type
C boolean type is not defined in standard C language before C99. the option 3) is my choice.
Option 1 typedef int bool; #define true 1 #define false 0 Option 2 typedef int bool; enum { false, true }; Option 3 typedef enum { false, true } bool; Option 4 (C99) #include <stdbool.h> Explanation Options 1, 2 and 3 will have in practice the same identical behavior. #2 and #3 don't use #defines though, which in my opinion is better. Option 4 will work only if you use C99 and it's the "standard way" to do it. Choose this if possible. If you are undecided, go with #3!
- Using boolean values in C
- Use of bool in C
- Boolean Values
- True and False in C
- 3.3 Boolean Expressions
- Boolean type support library
dynamic memory allocation
search "c allocate memory"
- Dynamic Memory Allocation and Dynamic Structures
- C – Dynamic memory allocation
- Dynamic Memory Allocation
- Chapter 11: Memory Allocation
- Advanced Memory Management: Dynamic Allocation, Part 1
- Dynamic Memory Allocation and Virtual Memory
- Customized Allocators with Operator New and Operator Delete
- Dynamic memory allocation for pointer arrays
- Dynamic Memory Allocation and Fragmentation in C and C+
Friday, October 14, 2016
extension methods
extension methods
- .NET Extensions Methods Library for C#
- Extension Methods in .NET
- Util Library and Extension Methods
- Extension methods in C# .NET part 1: the basics
- Extension methods in C# .NET part 2: arrays, collections, portability
- Understanding Extension Methods in C#
- Custom Collection in C# - Part 1
- Custom Collection in C# - Part 2
- Nullable Types in C#
- Iterators in C#
- Parameters in C#(For both beginners & experts) – Part 1
- DotNetText in C# Extension Methods
- All c# extension methods
Flow diagram tool and Layout algorithms
Flow diagram tool and Layout algorithms
- FlowSharp
- BoxPlanner - Simple Layout Algorithm
- Layout Manager for Dialogs, Formviews, DialogBars and PropertyPages
- Customizable Window Layouts
- How to: Implement a Custom Layout Engine
- Providing Custom Layout Engines for Windows Forms
- .Net windows forms custom layout engine
- WinForms Layout Control
- C# Window Forms, what a Custom Layout should return on his LayoutEngine#Layout method
- Custom panel with layout engine
- Microsoft Automatic Graph Layout
Wednesday, October 12, 2016
C dynamic array
- Dynamic arrays in C
- Advanced Memory Management: Dynamic Allocation, Part 1
- Dynamic Memory Allocation and Virtual Memory
- Implementing a dynamically sized array in C
- C Dynamic Memory Allocation
- C dynamically growing array
- How to make a dynamic sized array in C?
- Dynamic arrays in C
- Dynamic Arrays: Using malloc() and realloc()
- Arrays in C
- How to dynamically allocate a 2D array in C?
- Implementing a Dynamic Vector (Array) in C
- a tutorial on ‘dynamic’ arrays in C
Saturday, October 8, 2016
size_t topic in C
size_t topic in C
- size_t
- What is size_t in C?
- C data types
- what is size_t
- size_t
- What is size_t for? ...and some other variable type questions.
- Dynamic Memory Allocation
- INT01-C. Use rsize_t or size_t for all integer values representing the size of an object
- C's Standard Libraries
- What is Type size_t in C?
- C Programming Examples on Numerical Problems & Algorithms
- why you always use size_t for array indices
- unsigned integral type
- The perils of unsigned iteration in C/C++
- Interfacing with C and C++
- size_t 编辑
Saturday, October 1, 2016
C header file
C header file
- Redundant Include Guards
- Experiments With Includes
- Are redundant include guards necessary?
- is “Redundant #include Guards” necessary on Visual Studio?
- about include header file with guards
- include guard
- Physical Structure and C++ – Part 2: Build Times
- The Quest for the Perfect Build System
C variable name length limit
Original C dictates that
- The first 31 chars of an internal (i.e. not an external variable) variable name is significant.
- The first 6 characters of an function name or external variable is significant
For C++ (GCC 1024, MS 2048)
another posting says:
- Microsoft C++: 2048 characters
- Intel C++: 2048 characters
- g++: No limit, as answered in this question: is there a length limit on g++ variable names?
another posting says:
-
Annex B of the C++ Standard says that an implementation should support identifiers at least 1024 characters long, but this is not mandatory.
The C standard, section 5.2.4.1 says:
- 63 significant initial characters in an internal identifier or a macro name (each universal character name or extended source character is considered a single character)
- 31 significant initial characters in an external identifier (each universal character name specifying a short identifier of 0000FFFF or less is considered 6 characters, each universal character name specifying a short identifier of 00010000 or more is considered 10 characters, and each extended source character is considered the same number of characters as the corresponding universal character name, if any)
Implementations should avoid imposing fixed translation limits whenever possible. So you should check your documentation to see if your compiler supports a greater number of significant characters in identifiers.
-
Rules For Constructing Variable Name
Characters Allowed :
- Underscore(_)
- Capital Letters ( A – Z )
- Small Letters ( a – z )
- Digits ( 0 – 9 )
- Blanks & Commas are not allowed
- No Special Symbols other than underscore(_) are allowed
- First Character should be alphabet or Underscore
- Variable name Should not be Reserved Word
-
Naming Rules for Variables
- Variable names in Visual C++ can range from 1 to 255 characters. To make variable names portable to other environments stay within a 1 to 31 character range.
- All variable names must begin with a letter of the alphabet or an underscore( _ ). For beginning programmers, it may be easier to begin all variable names with a letter of the alphabet.
- After the first initial letter, variable names can also contain letters and numbers. No spaces or special characters, however, are allowed.
- Uppercase characters are distinct from lowercase characters. Using all uppercase letters is used primarily to identify constant variables.
- You cannot use a C++ keyword (reserved word) as a variable name.
- C/C++ – Variable and method name length limit
- What is max length for an C/C++ identifier on common (build) systems?
- Identifiers (C++)
- Max identifier length
-
Variable Names
In C the length of a variable name is unlimited (although the first 31 characters must be unique). So variable names like these:
disk_name total_count last_entry
are legal. - File Basics, Comments, and Program Headings
- Style and Program Organization
- Statement Formatting
- Statement Details
- Preprocessor
- Directory Organization and Makefile Style