|
Write a calendar program to find out the day of a given date in a particular year.
|
|
|
|
|
Why not just return one of the days of the week? You'd still have a 14% chance of being correct. That's a good return in anyone's ledger.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Write a program, which will read a string and rewrite it in the alphabetical order.
|
|
|
|
|
Write a program to encrypt a string and decrypt it using your own method of encryption and decryption.
|
|
|
|
|
Write a program to determine and print the sum of the following harmonic series for a given value if n 1+1/2+1/3+….1/n
|
|
|
|
|
Write a program to print the Pascal triangle for 10 rows.
|
|
|
|
|
Write a program to extract a portion of a character sting and print the extracted string. Assume that m characters are extracted, starting with nth character.
|
|
|
|
|
|
Given an array of sorted list of integer numbers, write a function to search for a particular item using the method of binary search. And also show how this function may be used in a program. Use pointers and pointer arithmetic.
|
|
|
|
|
Using pointers, write a function that receives a character string and a character as argument and
deletes all occurrences of this character in the string. The function should return the corrected string
with no holes.
|
|
|
|
|
We ususally don't do homework. Read carefully forum guidelines before posting.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
|
|
thanks for your response... unfortunately those links don't actually help me with what i want to do, but interesting all the same.
I've managed to sort it now anyway, cheers.
|
|
|
|
|
Did you use a lot of swearing and bad language in your original question?
It's bad manners to remove questions - other people might learn from them. We live in hope, anyway.
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
I sort of deleted it by mistake to be honest, and didnt know how to undo it.
Sorry.
|
|
|
|
|
As subject, no worries. Glad your problem was resolved.
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
Hello,
I tried a lot... but I cannot create a transparent topmost window on a wince based PNA.
SetLayeredWindowAttributes an other stuff were not suported on wince
If I use this
hwnd = CreateWindow(L"testerClass",L"tester Program", WS_OVERLAPPEDWINDOW, -25,-25, 65, 65, NULL, NULL, ghInstance, NULL);
I get a topmost window, titlebar is not visible (thats ok) and a white rectangle....
Is it possible to get the white region transparent?
Thats all I want
Michael
|
|
|
|
|
You can use the AlphaBlend[^] function which is available in Win CE.
Here is an article in CodeProject on Using the AlphaBlend function[^]
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi,
do you mean this works also with a window?
I tried this
BLENDFUNCTION bf;
dcOld = GetDC(NULL);
hwnd = CreateWindow(L"testerClass",L"tester Program", WS_OVERLAPPEDWINDOW, -25,-25, 65, 65, NULL, NULL, ghInstance, NULL);
SetWindowPos(hwnd, HWND_TOPMOST, -25, -25, 65,65,SWP_NOOWNERZORDER| SWP_SHOWWINDOW);
dcNew = GetDC(hwnd);
bf.BlendOp = AC_SRC_OVER;
bf.BlendFlags = 0;
bf.SourceConstantAlpha = 120;
bf.AlphaFormat = AC_SRC_ALPHA;
AlphaBlend(dcOld, -25, -25, 65, 65, dcNew, -25, -25, 65,65, bf);
UpdateWindow(hwnd);
but I allways get the window, like without alphablend.....
It sounds very well, if it will work.....
Any suggestions? Waht I did wrong?
Michael
|
|
|
|
|
|
mhh...
the last link, I think, will not work on a WinCE powered PNA, cause the article says that the newest Win32 Api from Win2000 and above is requiered. Also there is no stdafx.h for wince
It looks very interesting but I didnot found something thar could help me.
The first thing, will work on WinCe (btw. I didnot get an Error while compiling) but I do not understand all...
With the first suggestion, I tried this...
BLENDFUNCTION bf;
hwnd = CreateWindow(L"testerClass",L"tester Program", WS_POPUP, -25,-25, 65, 65, NULL, NULL, ghInstance, NULL);
bf.BlendOp = AC_SRC_OVER;
bf.BlendFlags = 0;
bf.SourceConstantAlpha = 120;
bf.AlphaFormat = AC_SRC_ALPHA;
AlphaBlend(destHDC, -25,-25,65,65,srcHDC,-25,-25,65,65,bf);
hwnd is "my" window and stays ontop of the other window , lets say hwnd2.
How should I use dstHDC and scrHDC?
It is enough to call it like
HDC dstHDC = GetDC(hwnd);
HDC srcHDC = GetDC(hwnd2);
This do not change anything... The window (hwnd) is still visible, full visible.
Michael
|
|
|
|
|
Hello:
I need to use WinInet.dll for HTTP in Asynchronous mode.
Right now, I have it working fine but using InternetOpenURL().
As eventually I would need to use POST commands, I would like to work using HttpOpenRequest() and HttpSendRequestEx().
When I use HttpSendRequest() (or HttpSendRequestEx()), I get False as a response, but GetLastError() gives 997 which means 'I/O Pending', what I interpret is Ok as I'm using the function asynchronously. After this, the callback function received the Code 100 which means 'INTERNET_STATUS_REQUEST_COMPLETE', which would mean the request was sent succefully.
However, reading the data, the buffer is empty. Also, I use a sniffer and I can see that there is no HTTP request sent out to the server, so I don't know why the callback receive the 'INTERNET_STATUS_REQUEST_COMPLETE' message but the function apparently failed.
Using the sniffer with the InternetOpenURL() function, I an see the request and the response from the server..
Any idea? What else can I check in order to detect why is not working?
Thanks in advance
Gus
|
|
|
|
|
Is it possible to copy settings from one project to the other.
If so how to do it?
|
|
|
|
|