Friday, March 17, 2017

computer science

finite state machine design

we can use state machine to control drawing sequence of chart control. an action item in future plan.

  1. The State Machine Compiler
  2. Ragel State Machine Compiler
  3. An Object-oriented Approach to Finite State Automata
  4. Finite State Machine and Multithreading using .NET
  5. XML Finite State Machine in C#
  6. steed.net download
  7. A .NET State Machine Toolkit - Part I
  8. A .NET State Machine Toolkit - Part II
  9. A .NET State Machine Toolkit - Part III
  10. State Machine Design in C++
  11. A Simple State Machine
  12. The State Design Pattern vs. State Machine
  13. State Machine Design in C++
  14. Generic Finite State Machine (FSM)
  15. StateProto - Interacting State Machines
  16. State Machines, in C++
  17. An XML- and State Machine-based Design of a WinForms Control
  18. State Machine - state pattern vs. classic approach
  19. Controlling Multiple Forms with a Finite State Machine
  20. State Machine Complier And Asp.net
  21. A Generic State Machine and Attempt to Generic Component
  22. StateProto - Saving and Restoring the State Machine
  23. A C# Turing Machine
  24. Another Generic State Machine
  25. Design Patterns 1 of 3 - Creational Design Patterns
  26. Design Patterns 2 of 3 - Structural Design Patterns
  27. Design Patterns 3 of 3 - Behavioral Design Patterns
  28. Generic DFA State Machine for .NET
  29. qf4net
  30. Finite State Machine with Sub-state
  31. Turn an Enum into a Simple State Machine
  32. StateProto Beta - State Chart Designer for Qf4Net
  33. A Deterministic Finite Automaton Class in C#
  34. akka : state machines
  35. Function Plotter, Playing with design patterns

c programming language specification

Friday, March 3, 2017

reading csv file

reading csv file

instructions:
<1>You only need to add a reference in your project to the file: FileHelpers.dll.
<2>Tip: remember to also copy the FileHelpers.xml file to get Intellisense support.

  1. download the zip package : FileHelper directly
  2. FileHelper 3.1v download
  3. FileHelpers v3.1 - Delimited (CSV) or Fixed Data Import/Export Framework

Saturday, February 11, 2017

*p++ understanding

*p++ understanding

The expression ++*p has two operators of same precedence, so compiler looks for assoiativity. Associativity of operators is right to left. Therefore the expression is treated as ++(*p). Therefore the output of first program is “arr[0] = 11, arr[1] = 20, *p = 11“.

The expression *p++ is treated as *(p++) as the precedence of postfix ++ is higher than *. Therefore the output of second program is “arr[0] = 10, arr[1] = 20, *p = 20“.

The expression *++p has two operators of same precedence, so compiler looks for assoiativity. Associativity of operators is right to left. Therefore the expression is treated as *(++p). Therefore the output of second program is “arr[0] = 10, arr[1] = 20, *p = 20“.

  1. 3.1 — Operator precedence and associativity
  2. C Operator Precedence Table
  3. Operators in C and C++
  4. Does *p++ increment after dereferencing? [duplicate]
  5. ++ on a dereferenced pointer in C?
  6. How does “while(*s++ = *t++)” copy a string?
  7. C++ Operator Precedence
  8. C Operator Precedence
  9. Do you know what *p++ does in C?
  10. Subject: Re: *p++
  11. The pre- and postfix versions of incr/decr have different precedence levels.
  12. Operators, with Precedence and Associativity
  13. Precedence and Order of Evaluation
  14. C/Precedence
  15. CS223
  16. KernighanRitchie
  17. C Operator Precedence

command line library