|
Hey! congratulations for your third !!!
Is always a bless
|
|
|
|
|
Thanks. It was not planned, but I'm realy stoked about it.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Hey Christian, Congratulations, Always is good to read about you.
Cheers!!!
Carlos Antollini.
|
|
|
|
|
here is the code so far, i am so stuck, this is my third and he was two months premie...
I got the psuedocode from another studend bt do not know what to do, all my teacher will say is read the book and that is no help
//
# Include <iostream.h>
# include <string.h>
struct weather
{
char month[12];
float total_rainfall;
float high_temp;
float low_temp
float average_temp:
};
Void main ()
{
weather year [12]
{"January", 0.0, 0.0, 0.0, 0.0},
{"February", 0.0, 0.0, 0.0, 0.0},
{"March", 0.0, 0.0, 0.0, 0.0},
{"April", 0.0, 0.0, 0.0, 0.0},
{"May", 0.0, 0.0, 0.0, 0.0},
{"June", 0.0, 0.0, 0.0, 0.0},
{"July", 0.0, 0.0, 0.0, 0.0},
{"August", 0.0, 0.0, 0.0, 0.0},
{"September", 0.0, 0.0, 0.0, 0.0},
{"October", 0.0, 0.0, 0.0, 0.0},
{"November", 0.0, 0.0, 0.0, 0.0},
{"December", 0.0, 0.0, 0.0, 0.0},
float total_year rain=0
float accumulated_avgtemp=0
float highest_temp=-100
float lowest_temp=140
char calender[12][10]
};
for (int x = 0; x < 12; x++)
{
cout << "Please enter the following
data for " << month[x]<< ": \n\n";
cout << "High temperature: ";
cin >> month[x].high_temp;
cout << "Low temperature: ";
cin >> month[x].low_temp;
psudocode for the rest so far
Prompt user for data entries for the month of calendar[a]:
Input total_rain
If total_rain is less than zero, prompt user for re-entry and loop back to input.
Add total_rain to accumulated_yearly_rain.
Call Function One (get_temp)
Return new value for high_temp.
Call Function One (get_temp)
Return new value for low_temp.
If high_temp is less than low_temp, prompt user for
re-entry and loop back to first call of Function One.
Calculate average_temp for the month using high_temp and low_temp.
Add average_temp to accumulated_average_temp.
If high_temp is higher than overall_high_temp
then replace overall_high_temp with high_temp.
If low_temp is higher than overall_low_temp
then replace overall_low_temp with low_temp
Output the following:
Average Monthly Rainfall = accumulated_yearly_rain / 12
Yearly High Temp = overall_high_temp
Yearly Low Temp = overall_low_temp
Average Temperature = accumulated_average_temp / 12
Average Total Yearly Rainfall = accumulated_yearly_rain
Begin Function One
(zero arguments, one return)
Define local float temp = 0
Prompt user to input temp.
If temp is not within standard range,
prompt user for re-entry and loop back to input.
Return temp to main.
help please
|
|
|
|
|
Just wanting some feedback on different video capture techniques. I have used AVICap, VisionSDK, and the DirectShow exaamples to test different way of video capture. All work great, but the problem I have with all of them is that they eat cpu time like crazy. The web cam software I use now is written in Delphi(did not write nor have source) and uses VFW and it only takes about 10-15% cpu time on my PIII600mhz capturing about 20 fps, but all the samples I've tried using the above options take about 40-50% cpu time on the same machine with the same frame rate. Just wondering of any optimizations or opinions on the above mentioned methods.
Thanks for comments,
Joshua
BTW: The web cam software I use now is ConquerCam. Good no nag shareware. Let me know if you know of any better web cam software.
|
|
|
|
|
If you slap a CListCtrl on top of a dialog in the resource view and then you want to add WM_HSCROLL and WM_VSCROLL programatically, how would you do it?
I noticed that you can add the extended styles programmatically, but how would you scroll styles when there is no Create calls needed?
|
|
|
|
|
ModifyStyle and ModifyExStyle
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
In what conditions a delete can make a debug assertion fail
with this message:
_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
________________________________________________
Those that have really found the meaning, dont find it meaningful
|
|
|
|
|
Possibly when you call delete twice on the same pointer.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Could anybody tell me how to handle EN_SETFOCUS in a CRichEditCtrl???
I've tried it in a CEdit and it works fine but when I use it in a CRichEditCtrl it doesn't work.
Thanks in advance,
|
|
|
|
|
|
Gracias, ya me habia supuesto que era algún tipo de bug de Microsoft.
|
|
|
|
|
Hi...
I have a webserver on which I use a Perl Script to do WebBased file upload.
The script is called upload.pl. If I call the script http://server/cgi-bin/upload.pl is shows 3 EditBoxes...
1. UID
2. Password
3. Path of the file to upload !!!
I want to call the script with a Dialog-Based Application (Visual C++)...
first I tried to simply call the upload-script by
http://server/cgi-bin/upload.pl?uid=xxx&pwd=yyy&file=C:\autoexec.bat&submit=Upload
But this won't work... I sniffed on my Ethernet Card to look what my PC sends to the WebServer !!!
Then I see that the client sends not the FileName c:\autoexec.bat but the DATA of c:\autoexec.bat to the webserver !!!
The upload Script calls a
How could I send the File to the WebServer with Visual C++ (binaries,text) ???
Have anyone an idea ??? or knows sources on the www where I will find a solution ???
Please help...
cu Agent_White
|
|
|
|
|
does really nobody have a tip for me
cu Agent_White
|
|
|
|
|
You need to do a HTTP POST operation containing the file data. See the HTML standard to see how the response should be formatted.
|
|
|
|
|
Thanx for your answer... the URL was is a good place to look at !!!
But there are still problems left... because I have no experience with wininet at all !!!
In my opinion... to solve the problem...
I must read the Data of the file in a buffer (no problem) and then send it with the HTTP request (big problem) !!!
Maybe someone knows a source which posts a file to a server ???
cu Agent_White
|
|
|
|
|
May I know the algorithm or the procedure to combine two different TIFF Images into one single TIFF Image?? ALso I'm specific in combining the two pages of single TIFF image into one single Page...so, i would appreciate if someone could reply me
thanks
sukesh sabbani
|
|
|
|
|
From memory GDI+ will read and write TIFF. Then it's a case of using BitmapData to step through both bitmaps and combine the data as you see fit.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Try www.6ixsoft.com. FreeImage has a MergeImages function (or something like that).
|
|
|
|
|
hi all,
i am in a situation that there is a higher priority thread for wait event from a transmission bus. the bus will receive large amount of data in short period and go back to silent. it will miss data if i put too much processing code in that thread. so, i put the processing code in a new thread.
so, could anyone tell me any method to pass data to other thread savely ( make sure all data is received by the processing thread. if i use filemapping or global variable, i can't sure the processing thread can received b4 new data is received from receiving thread but i can't wait for processing thread to finish its work ) anyone can help?
thanks,
jim
|
|
|
|
|
Derive a new class from stl::queue and put in locking in push_front and pop_back. Make the queue known to both your threads. Rock'n'Roll.
|
|
|
|
|
How to find the end points of all lines (hatch) filling a polygon?. The lines are inclined with an angle and have a constant spacing between them.
|
|
|
|
|
Rotate and scale your polygon so that the hatching is transformed to a horizontal hatching with spacing 1. Then, for each segment of your polygon, points within it with integer y are hatching end points. Transform them back and you're done.
For a hatching angle θ and a spacing s, the resulting transformation is:
x' = ( x cos θ + y sin θ) / s,
y' = (-x sin θ + y cos θ) / s.
And the reverse transformation is:
x = ( x' cos θ - y' sin θ) · s,
y = ( x' sin θ + y' cos θ) · s.
Good luck.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
combobox has no getitemtext function?
i must save its copy as item's data?
t!
|
|
|
|
|
You must use GetLBText method:
CComboBox combo;
CString str;
combo.GetLBText( combo.GetCurSel(), str );
in "str" you have items data.
|
|
|
|
|