Click here to Skip to main content
15,881,812 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionhInstance / Win32 Pin
Fareed Rizkalla5-Apr-10 6:19
Fareed Rizkalla5-Apr-10 6:19 
AnswerRe: hInstance / Win32 Pin
Chris Meech5-Apr-10 6:27
Chris Meech5-Apr-10 6:27 
AnswerRe: hInstance / Win32 Pin
Joe Woodbury5-Apr-10 6:31
professionalJoe Woodbury5-Apr-10 6:31 
QuestionRe: hInstance / Win32 Pin
Fareed Rizkalla5-Apr-10 6:44
Fareed Rizkalla5-Apr-10 6:44 
AnswerRe: hInstance / Win32 Pin
Joe Woodbury5-Apr-10 7:02
professionalJoe Woodbury5-Apr-10 7:02 
Questionsort CListCtrl specially Pin
includeh105-Apr-10 6:18
includeh105-Apr-10 6:18 
QuestionRe: sort CListCtrl specially Pin
David Crow5-Apr-10 16:36
David Crow5-Apr-10 16:36 
Questionc progrmng code help for the following algo Pin
abhijit.hzrk5-Apr-10 5:38
abhijit.hzrk5-Apr-10 5:38 
actually i want the c code for the following algo......

for(i=Len-1;i>=0;i--) if (Elem[i] is a logical expression) PC = PC U{Elem[i]}; else /* Elem[i] is an assignment */ substitute(PC,Elem[i]);

Given a path P, let PCp denote the set of path conditions. P is a sequence of logical expressions and assignment statements. We use Elem P [i] to denote the i'th element of the sequence, and use Len P to denote P's length (i.e., the number of logical expressions and assignments in P). The subscriptP may be omitted when no confusion occurs. Then PC can be obtained in the following way: for(i=Len-1;i>=0;i--) if (Elem[i] is a logical expression) PC = PC U{Elem[i]}; else /* Elem[i] is an assignment */ substitute(PC,Elem[i]);

The procedure substitute() changes the PC using an assignment. Firstly we consider the trivial case when the left-hand side of the assignment is a simple variable x. In this case, every occurrence of x in PC is replaced by the right-hand side of the assignment.

Example 1. Suppose we need input data such that the procedure qr executes along Path 2. We may specify the path as follows: int m, n, q, r; { r = m; q = 0;

1. r >= n;

r = r-n; q = q+1;

1. r < n;

}

Here we use the symbol `@' to distinguish logical expressions from assignment statements. Our tool PAT generates the following constraints: m-n >= 0; m-2n < 0;
AnswerRe: c progrmng code help for the following algo Pin
Chris Losinger5-Apr-10 8:07
professionalChris Losinger5-Apr-10 8:07 
Questioncode page Pin
Member 5903105-Apr-10 2:28
Member 5903105-Apr-10 2:28 
AnswerRe: code page Pin
Emilio Garavaglia5-Apr-10 20:42
Emilio Garavaglia5-Apr-10 20:42 
QuestionNeed to get .obj file names of Executable(which one is crrently executing) at runtime programatically in VC++? [modified] Pin
glitteringsound5-Apr-10 2:09
glitteringsound5-Apr-10 2:09 
AnswerRe: Need to get .obj file names of Executable(which one is crrently executing) at runtime programatically in VC++? Pin
enhzflep5-Apr-10 2:41
enhzflep5-Apr-10 2:41 
GeneralRe: Need to get .obj file names of Executable(which one is crrently executing) at runtime programatically in VC++? Pin
glitteringsound5-Apr-10 3:03
glitteringsound5-Apr-10 3:03 
GeneralRe: Need to get .obj file names of Executable(which one is crrently executing) at runtime programatically in VC++? Pin
enhzflep5-Apr-10 3:28
enhzflep5-Apr-10 3:28 
AnswerRe: Need to get .obj file names of Executable(which one is crrently executing) at runtime programatically in VC++? Pin
Chris Meech5-Apr-10 4:54
Chris Meech5-Apr-10 4:54 
Questionlocalization issue Pin
Member 5903105-Apr-10 0:14
Member 5903105-Apr-10 0:14 
QuestionCListCtrl SortGroups by name Pin
Abinash Mohanty4-Apr-10 23:14
Abinash Mohanty4-Apr-10 23:14 
AnswerRe: CListCtrl SortGroups by name Pin
David Crow2-Jan-11 15:01
David Crow2-Jan-11 15:01 
QuestionC++ socket and thread [modified] Pin
canard294-Apr-10 22:29
canard294-Apr-10 22:29 
AnswerRe: C++ socket and thread Pin
Moak4-Apr-10 23:29
Moak4-Apr-10 23:29 
GeneralRe: C++ socket and thread Pin
canard295-Apr-10 2:14
canard295-Apr-10 2:14 
GeneralRe: C++ socket and thread Pin
Moak5-Apr-10 3:04
Moak5-Apr-10 3:04 
GeneralRe: C++ socket and thread Pin
canard295-Apr-10 4:47
canard295-Apr-10 4:47 
GeneralRe: C++ socket and thread Pin
Moak5-Apr-10 8:25
Moak5-Apr-10 8:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.