Start with the hint that jschell gave, look at that line of code and see what it is doing if anything, or better yet step though each line of code with a debugger.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
Your second loop makes no sense as you are using two index varaibles when you only need one, and you never compare the values to see which is largest, or keep a note of the largest value you have found so far.
Yes, because your code is still wrong, mainly because there is no logic to it. I gave you the answer in a previous comment, which should at least give you an idea of the logic involved in such a simple task.
using namespace std ;
string in = " ";
while ( in != "" )
cout <<"Whatisyourname?\n";cout<<"[Presentertoendthis.]\n";cin>> in ;
usingnamespace std ;
stringin = " ";
while ( in != "" )
cout << "What is your name ? \n" ;
cout << "[ Pres enter to end this .]\n" ;
getline(cin, in );
cout << "Hello " << in << " .\n" ;
cout << "n\n\n\[ GAME OVER ]\n" ;
Please help: I cannot find the header file for GetTickCount64()
I am using GetTickCount() but that is only good for about 49 days and my program runs forever..maybe.
Anyway, I am using C++ with MFC
I even tried this:
#if (_WIN32_WINNT >= 0x0600)
WINBASEAPI ULONGLONG WINAPI GetTickCount64(void);
But that only declares it so the compiler doesn't complain and don't need the header file but its not in any library or DLL that I can find.
I have tried searching everywhere on the computer and the internet, what am I doing wrong?
I am using both MSVC2005 and MSVC2015 with very bad luck.
Use MFC in a Static Library
Use of ATL: Static Link to ATL
Use Multi-Byte Character Set
No Common Language Runtime support
#define WINVER 0x0601
You did not give enough information... what compiler are you using?
What is the target platform?
It sounds like you are using an old compiler. If you are on an older compiler then you may need to download the "Platform SDK" or "Windows SDK"[^] to obtain more recent LIB and headers.
If these older SDK are critical for your business then I highly recommend downloading and keeping an archived copy before the Windows 7 SKU reaches EOL of the 2020 extended support. Once those operating systems reach EOL the SDK download links may disappear.
Hi and thank you for the help.
The compiler is Microsoft visual Studio 2005 and 2015, (MSVC).
I run the program on these OS's: Windows 7, 8, and 10.
I search both compilers for any header file that contains GetTickCount64 but its not hear, Yes, I google the internet but nothing suggest where it is defined.
Microsoft defines it in Winbase.h but not in my compilers from Microsoft.
Most importantly, what is the LIB that has this function?
Its also helpful if I can find the header file but really not that important, just want the LIB and maybe a file date of the LIB to make sure I have the right one.
I can assure you that both of those compilers were distributed with headers and libs that include the GetTickCount64 function. If you are using VS2015 and cannot compile/link with the GetTickCount64 function then you need to fix your headers and compiler macro/defines.
Search all your files for _WIN32_WINNT and WINVER.
The documentation is clear: GetTickCount64 function (Windows)[^]. If you cannot find it then there must be something corrupted in your installation. Your original message says you are using VS 2005 and 2015; are you sure you have the latest SDK connected?
Last Visit: 17-Dec-18 9:01 Last Update: 17-Dec-18 9:01