- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
7 Posted Topics
You can replace all three headers with #include <iostream>
First off, are you ending that bit of code with ReleaseDC()? If not that might be a GDI memory leak causing the issue
This is all off the top of my head, I didn't compile it or anything so it may need some fixing, but I'm pretty sure it'll work... cout<<"Enter your boundary:"<<endl; int bounds=cin.get(); int a,b; bool first=0; for(int i=1;i<bounds;i++){ if(first==0){ a=i; first=1; } else{ b=i; i=a+b; cout<<i<<endl; first=0; } }
[QUOTE=pigg;805288]sorry, "failed" was printed. and here is my code, i can not understand why... [code] #include "stdafx.h" #include <windows.h> #include <iostream> #include <CString> using namespace std; int main() { SHFILEOPSTRUCT sf; memset(&sf,0,sizeof(sf)); sf.hwnd = 0; sf.wFunc = FO_COPY; string from = "D:\\testfrom\\*.*"; string to = "D:\\testto"; sf.pFrom = from.c_str(); sf.pTo …
This is my library for win32 apps.
The End.
wavsyntax