| View previous topic :: View next topic |
| Author |
Message |
maxuer Newbie cheater
Reputation: 0
Joined: 07 Dec 2007 Posts: 20
|
Posted: Wed Jan 16, 2008 10:26 am Post subject: More one question |
|
|
| What is the code to show a letter for 20 seconds?
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Jan 16, 2008 10:31 am Post subject: Re: More one question |
|
|
| maxuer wrote: | | What is the code to show a letter for 20 seconds? |
Please signify what language you are asking for help with..
_________________
- Retired. |
|
| Back to top |
|
 |
maxuer Newbie cheater
Reputation: 0
Joined: 07 Dec 2007 Posts: 20
|
Posted: Wed Jan 16, 2008 10:35 am Post subject: |
|
|
| C++
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Jan 16, 2008 10:41 am Post subject: |
|
|
Ok show a letter as in a console app that stays open for so long then closes?
| Code: | #include <windows.h>
#include <iostream>
int main()
{
std::cout << "What ever you want to show here.\r\n";
Sleep( 20000 );
return ERROR_SUCCESS;
} |
_________________
- Retired. |
|
| Back to top |
|
 |
maxuer Newbie cheater
Reputation: 0
Joined: 07 Dec 2007 Posts: 20
|
Posted: Wed Jan 16, 2008 11:02 am Post subject: |
|
|
Don't work. When I compile the program says : A error has occurred...
Why? If help, I use Visual C++ 0.9 2008 Express Edition.
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Wed Jan 16, 2008 11:11 am Post subject: |
|
|
| What you're asking is for the delay function, there's no code that shows 20 seconds.
|
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Wed Jan 16, 2008 1:31 pm Post subject: |
|
|
| maxuer wrote: | Don't work. When I compile the program says : A error has occurred...
Why? If help, I use Visual C++ 0.9 2008 Express Edition. | You probably need a platform SDK, because you're using the "EE" edition.
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Wed Jan 16, 2008 1:40 pm Post subject: |
|
|
1>.\erm.cpp(2) : warning C4627: '#include <iostream>': skipped when looking for precompiled header use
nevermind, forgot to add a namespaceing ^^
using namespace System;
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Jan 16, 2008 4:15 pm Post subject: |
|
|
| Naablet wrote: | 1>.\erm.cpp(2) : warning C4627: '#include <iostream>': skipped when looking for precompiled header use
nevermind, forgot to add a namespaceing ^^
using namespace System; |
The code I posted does not require a namespace. Try turning off precompiled headers.
_________________
- Retired. |
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
|
| Back to top |
|
 |
|