I guess, to modify the code could bring into effect... Plus, to check/uncheck the option may be implemented by an API function, for it seems like a block.. Stroking five times can activate the dialog, is there some service on guard? So if to configure something can make the dialog inactive all along? -- modified at 10:15 Monday 21st November, 2005
FlyingDancer
Posts
-
Sticky keys -
Sticky keysI have known that way, however, implementing it by progamming is my favorate.:) Have you other ways, by means of coding or offer an API function? Such as in WinCE(Only my program need run in windows XP): =============================== STICKYKEYS skf; BOOL bSuccess; // Fill in the members of the STICKYKEYS structure. skf.cbSize = sizeof(STICKYKEYS); skf.dwFlags = (SKF_AVAILABLE | SKF_STICKYKEYSON | SKF_AUDIBLEFEEDBACK); // Call SystemParametersInfo with the SPI_SETSTICKYKEYS flag. bSuccess = SystemParametersInfo(SPI_SETSTICKYKEYS, sizeof(STICKYKEYS), (LPVOID) &skf, 0); -- modified at 6:34 Monday 21st November, 2005
-
Sticky keysAfter stroking SHIFT key five times, one dialog pops up to notify if to enable the sticky keys. Do you know some way to disalbe this function and let it not shown when stroking the SHIFT key? Thanks in advance!
-
Test your C++ knowledge with these questions!Maybe those problems are concerned with as folloing: 1.Overflow 2.Reference ... and I can't understand the last problem. :)
-
Interesting problemsGreat! Full and clear!! Thank you very much!!! :laugh:
-
Interesting problemsProblem: "slice[j][i]=(float)(slice[j][i]+0.01F);" is executed faster than "slice[i][j]=(float)(slice[i][j]+0.01F);" I think it should be answered from two aspects 1. In VC, A two-dimension array is stored according to its row first, then its col,... 2. Virtual memory technology. Paging and Swaping In this problem every row of that array couldn't get enough free space so when accessing to any data of another row a swapping action will happen therefore one runs faster than the other Am I right?
-
Interesting problemsYeah It can work well, not considering its run speed Your way is to adopt an array pointer, that seems a little different but what has been solved regarding to a big array slice[N][N] by adopting a array pointer? This is a difficult problem, really. Is it related with OS, compiling way? Or maybe it is a memory allocating problem... How do you think about this?
-
Interesting problemsProgram Code:
#include #include#define N 1024
int i,j,k; float slice[N][N]; void main() { time_t start,end; float s; start=time(NULL); for(k=0;k<100;k++) { for(j=0;j slice[i][j]=(float)(slice[i][j]+0.01); slice[j][i]=(float)(slice[j][i]+0.01); } printf("%d\n",k); } end=time(NULL); s=difftime(end,start); printf(" The total time is %f:",s); }Questions or problems(Compiled by Visual C++ 6.0):
1.If N equals 1022,1023,1025 or 1026, its run time is about 13 seconds, else if N=1024 that will be about 56 seconds. that is, the speed is very different. 2. "slice[j][i]=(float)(slice[j][i]+0.01)" is executed over two times faster than "slice[i][j]=(float)(slice[i][j]+0.01);". You can have a try by cutting off one of these sentences. 3. An exception will happen if "int i,j,k; float slice[N][N];" is moved into function main() that says "test.exe has encountered a problem and needs to close. We are sorry for the inconvenience.". In addition, my program is named by "test.cpp" Have you known these problems? and could you give me an explanation and how to avoid these bad results please Any is appreciated! Thanks! -
SorthThanks! It sounds reasonable. Thanks again! :rose::rose::rose::rose:
-
SorthIs it south? Have you ever seen sorth or known the word was used long time ago? :)
-
SorthHello, everybody I saw a word "sorth" once a time Do you know its meaning? I have looked it up in my English dictionary But I can not find it Is it an English word or another word or not a word? Could you tell me, please Thanks!
-
How to enable ctrl+alt+del under window 2000Well, I had tried WinKey+L but nothing had happened to my computer : ) Thanks
-
How to enable ctrl+alt+del under window 2000Once a time my computer was started by a CDROM that could start any computer and then run its window 2000 as an administrator, meantime my administrator's password under my OS had been changed Now I havn't logged on my computer as an administrator for quite several months Any other critical problems have not been found Thanks!
-
How to enable ctrl+alt+del under window 2000My computer could be locked by pressing down three keys: ctl+alt+del but now its screen becomes blue for about a second and at once restores to its desktop, that is to say my computer can't be locked by pressing the keys. Could you tell me how to enble the keys' function? Thanks!:(
-
colon operationYeah! C++ is very fun and it is abundant in perfect thinking!
-
colon operationThe code is extracted from the function below: inline ilist_item* ilist:: next_iter() { ilist_item *next =_current <<_current = _current->next() :_current; } Mavbe the right is as you said, that is a conditional operator: inline ilist_item* ilist:: next_iter() { ilist_item *next =_current ? _current = _current->next() : _current; } Do you think so? Thanks for your answer!!! Happy 2004!!! :)
-
colon operationThe code is extracted from the function below: inline ilist_item* ilist:: next_iter() { ilist_item *next =_current <<_current = _current->next() :_current; } Mavbe the right is as Mr. Ted Ferenc said: inline ilist_item* ilist:: next_iter() { ilist_item *next =_current ? _current = _current->next() : _current; } Do you think so? Thanks for your answer!!! Happy 2004!!!
-
colon operationYes It is Only my book is translated into chinese. Those code may be found in A Linked List Example of chapter 5 Statements Great! Thanks!!!
-
colon operationI don't know if it is right I only got it from a book "C++ Primer 3rd" It is in sector 5.11.1 :(
-
colon operationilist_item *next = _current << _current = _current->next() : _current; I don't know the meaning of the above sentence extracted from book "C++ primer 3rd" Could somebody tell me its meaning? Thanks in advance!