Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~4K People Reached
Favorite Tags
Member Avatar for hqt

I'm using Entity Framework. Here is my code to update data : public bool UpdateProblem(Problem problem) { if (problem == null) { throw new ArgumentException("Cannot add a null entity"); } MathHubModelContainer ctx = new MathHubModelContainer(); ctx.Configuration.LazyLoadingEnabled = false; ctx.Configuration.ProxyCreationEnabled = false; DbEntityEntry attachtedEntrys = ctx.Entry(problem); // Find Currently Entity Entry …

Member Avatar for Ketsuekiame
0
469
Member Avatar for hqt

Who can teach me the purpose of stringStream, and how to use it, please. I have read some paper about this, but I still have something don't understand.

Member Avatar for raptr_dflo
0
139
Member Avatar for hqt

I'm reading Fibonacci Heap and need code to know more clearer. I have programming some of path of fibonacci heap but some path I still cannot programming. So, who can help me please :)

Member Avatar for hqt
-1
105
Member Avatar for hqt

I'm reading "fibonacci Heap" of Dr R.Tarjan. Basically, I know what he say. But, I don't know why he do that. For example: He define a potential function is: [code] p(Hi)=t(Hi)+2m(Hi) //t(Hi) and m(Hi) is number of roots and number of marked Node, respectively at Heap Hi[/code] 1) I don't …

Member Avatar for hqt
0
211
Member Avatar for hqt

I have two declare of pointer: [code] Pointer *a,*b,*c; int i=5; *b=i; a=b; c=&b; [/code] at line (a=b) mean a will point to what b point (mean point to int i) at line (c=&b) mean c will have address of b, mean c will be pointer to pointer b. So, …

Member Avatar for keshvari
0
140
Member Avatar for hqt

I have something that I don't know how to use the Pointer, this is my code: [CODE] struct node{ int data; struct node* next; } struct node* BuildWithLocalRef() { //give a list with: 1 2 3 4 5 //and your work is import this list in to Linked List with …

Member Avatar for Narue
0
157
Member Avatar for ksm092

I am making a program (new to c++) which lets you save contacts and then allow you to list them and remove them. I am lost to how I would number each contact, for example: 1. Sam 21340223 2. Jessica 21020303

Member Avatar for jinhao
0
125
Member Avatar for hqt

I have 2 codes. (that I had read in one book). the explanation under each code is true (because my book say that !!!). But in my thinking, if one code is true, so the other will be wrong. (wrong mean it will not have result same with the explanation). …

Member Avatar for hqt
0
197
Member Avatar for hqt

I am trying to use Code::Block, But I still get some problem like when I'm using DevC++. In Watch Windows, I want to see A array. (example: int A[5][5]). but in debug windows, I will appear from top to down: [CODE]A[1][1] A[1][2] ... A[5][5] [/CODE]This style is to difficult for …

Member Avatar for hqt
0
340
Member Avatar for hqt

I recently change Code:Block. But I don't know, when I compile, at line 1: [CODE]#define <stdio.h> or #define<cstdio>[/CODE] I see an error:macro names must be identifier. When I compiled on DevC++, I saw no error. the second question I want to ask is, who have link or documents.etc.. that teach …

Member Avatar for sergent
0
172
Member Avatar for hqt

I use Code::Block 10.05 I'm starting with some lines of code. No error found when I compiled it. But although I ("run", "Compile this current File","Build") in menu Build, I still cannot debug my program because in menu Debug, ("start", "stop Debug", "next",etc) cannot active :( I have read on …

Member Avatar for hqt
0
159
Member Avatar for hqt

I have this problem and haven't solve it, yet. who has any idea, please give me :) the problem is: give a sequence with n elements (n<=10^6), for example 4 3 2 1 and 2 number L,R (left and right) count how many pair (i,j), i<=j that: [CODE]L<=A[i]+A[i+1]+..+A[j]<=R[/CODE] someone will …

Member Avatar for TrustyTony
0
406
Member Avatar for hqt

I'm using DevC++ 4.9.9 and have a problem while I'm debugging: I want to view array C so I will: press F4 and type C. but for my example: if my code is: [CODE]for(i=1;i<=10;i++) for(j=1;j<=10;j++) c[i][j]=10;[/CODE] the left panel (that I saw value) will have 100 line of C. (each …

Member Avatar for pseudorandom21
0
140
Member Avatar for hqt

I'm sorry because I think this is a popular fault but I haven't found why it happened yet. this is a code that has that fault: [CODE] void readfile(){ FILE *f; int u,v; f=fopen(fi,"r"); fscanf(f,"%d%d%d%d",&n,&m,&s,&t); for (int i=1;i++;i<=n) for (int j=1;j++;j<=n) c[i][j]=(i!=j)? Oo:0; for(int i=1;i++;i<=m) fscanf(f,"%d%d%d",&u,&v,&c[u,v]); fclose(f); } [/CODE] when …

Member Avatar for hqt
0
573
Member Avatar for hqt

Hi, I want to download multiple files from the server/web to the folder I choose before (I already know the exactly link and know parser), but I don't know how to "download a file" with Perl. So, anyone helps me how to download file with Perl (give me detail about …

Member Avatar for erezschatz
0
115
Member Avatar for hqt

I want to make a Desktop Effect (for example: fallen leave, snow,... on Desktop) but I don't know how to do that (one of these problem is: how can I do "something" on Desktop, because every program that I had programed run in a window) Who can discuss this problem …

Member Avatar for nbaztec
0
98
Member Avatar for hqt

sorry to post this stupid question here. I'm just learning Assembler and a problem from my book is: input: a string from a user. output:character in that string. for example: input: DANI so output is: D A N I I just can received a string from user. thanks. :)

Member Avatar for thines01
0
78